Showing 5,781 of 10,536 total issues

Function onload has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      img.onload = function () {
        var loadExif = function loadExif(callback) {
          return callback(1);
        };

Severity: Major
Found in myems-admin/js/plugins/dropzone/dropzone.js - About 2 hrs to fix

    Function FeedImageLightbox has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const FeedImageLightbox = () => {
      const images = [img1, img2, img3, img4, img5];
    
      return (
        <LightBoxGallery images={images}>
    Severity: Major
    Found in myems-web/src/components/feed/FeedImageLightbox.js - About 2 hrs to fix

      Function EmailDetailHeader has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const EmailDetailHeader = () => {
        const { isRTL } = useContext(AppContext);
      
        return (
          <Card className="mb-3">
      Severity: Major
      Found in myems-web/src/components/email/EmailDetailHeader.js - About 2 hrs to fix

        Function getOption has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const getOption = (data, dataBackground, isDark) => {
          const grays = getGrays(isDark);
          return {
            tooltip: {
              trigger: 'axis',
        Severity: Major
        Found in myems-web/src/components/MyEMS/Shopfloor/WeeklySales.js - About 2 hrs to fix

          Function getOption has 59 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          const getOption = (data, dataBackground, isDark) => {
            const grays = getGrays(isDark);
            return {
              tooltip: {
                trigger: 'axis',
          Severity: Major
          Found in myems-web/src/components/dashboard-alt/WeeklySales.js - About 2 hrs to fix

            Function getOption has 59 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            const getOption = (data, dataBackground, isDark) => {
              const grays = getGrays(isDark);
              return {
                tooltip: {
                  trigger: 'axis',
            Severity: Major
            Found in myems-web/src/components/MyEMS/Store/WeeklySales.js - About 2 hrs to fix

              Function getOption has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              const getOption = (data, dataBackground, isDark) => {
                const grays = getGrays(isDark);
                return {
                  tooltip: {
                    trigger: 'axis',
              Severity: Major
              Found in myems-web/src/components/MyEMS/Tenant/WeeklySales.js - About 2 hrs to fix

                File enterproduction.py has 265 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                import re
                from datetime import datetime, timedelta, timezone
                from decimal import Decimal
                import falcon
                import mysql.connector
                Severity: Minor
                Found in myems-api/reports/enterproduction.py - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                                    if (
                                      qa &&
                                      (D || (a && a.shiftKey)) &&
                                      "one" != b.options.selectionMode
                                    ) {
                  Severity: Critical
                  Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 2 hrs to fix

                    Function mutateEvent has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function mutateEvent(event, newStart, newEnd) {
                            var oldAllDay = event._allDay;
                            var oldStart = event._start;
                            var oldEnd = event._end;
                            var clearEnd = false;
                    Severity: Major
                    Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 2 hrs to fix

                      Function segDragMousedown has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          segDragMousedown: function(seg, ev) {
                              var _this = this;
                              var view = this.view;
                              var el = seg.el;
                              var event = seg.event;
                      Severity: Major
                      Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 2 hrs to fix

                        Function generate_excel has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        def generate_excel(report, space_name, reporting_start_datetime_local, reporting_end_datetime_local, language):
                        
                            trans = get_translation(language)
                            trans.install()
                            _ = trans.gettext
                        Severity: Major
                        Found in myems-api/excelexporters/storebatch.py - About 2 hrs to fix

                          File knowledgefile.py has 262 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          import base64
                          import os
                          import sys
                          import uuid
                          from datetime import datetime, timezone, timedelta
                          Severity: Minor
                          Found in myems-api/core/knowledgefile.py - About 2 hrs to fix

                            File energyitem.py has 262 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            import uuid
                            import falcon
                            import mysql.connector
                            import simplejson as json
                            from core.useractivity import user_logger, admin_control, access_control, api_key_control
                            Severity: Minor
                            Found in myems-api/core/energyitem.py - About 2 hrs to fix

                              Function format has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      UrlMatcher.prototype.format = function (values) {
                                          if (values === void 0) { values = {}; }
                                          // Build the full path of UrlMatchers (including all parent UrlMatchers)
                                          var urlMatchers = this._cache.path;
                                          // Extract all the static segments and Params (processed as ParamDetails)
                              Severity: Major
                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                Function _registerInvokeList has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function _registerInvokeList(args, moduleName) {
                                            var invokeList = args[2][0],
                                                type = args[1],
                                                newInvoke = false;
                                            if (angular.isUndefined(regInvokes[moduleName])) {
                                Severity: Major
                                Found in myems-admin/js/plugins/oclazyload/ocLazyLoad.js - About 2 hrs to fix

                                  Function link has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                                  link: function (scope, element, attrs, ctrl) {
                                                      if (!ctrl) {
                                                          return;
                                                      }
                                  
                                  
                                  Severity: Major
                                  Found in myems-admin/js/plugins/uiMask/masks.js - About 2 hrs to fix

                                    Function setScale has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      setScale: function(scale, anchorX, anchorY, isCentered, animate) {
                                        var viewportChangeEvent = jvm.$.Event('zoom.jvectormap'),
                                            interval,
                                            that = this,
                                            i = 0,
                                    Severity: Major
                                    Found in myems-admin/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js - About 2 hrs to fix

                                      Function handleTouchEvent has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              handleTouchEvent = function(e){
                                                var touches = e.originalEvent.touches,
                                                    offset,
                                                    scale,
                                                    transXOld,
                                      Severity: Major
                                      Found in myems-admin/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js - About 2 hrs to fix

                                        Function deps has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                                        function ($ocLazyLoad) {
                                                                            return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'daterangepicker', 'toaster']).then(
                                                                                function () {
                                                                                    return $ocLazyLoad.load([{
                                                                                        serie: true,
                                        Severity: Major
                                        Found in myems-admin/app/config.router.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language