Showing 5,781 of 10,536 total issues

Consider simplifying this complex logical expression.
Open

            if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || el.attr('target'))) {
                // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
                var transition_1 = $timeout(function () {
                    if (!el.attr('disabled')) {
                        $state.go(target.uiState, target.uiStateParams, target.uiStateOpts);
Severity: Major
Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

    Function MessageFormatParser has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function MessageFormatParser(text, startIndex, $parse, pluralCat, stringifier,
                                 mustHaveExpression, trustedContext, allOrNothing) {
    Severity: Major
    Found in myems-admin/js/angular/angular-message-format.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

        "pluralCat": function(n, opt_precision) {  var vf = getVF(n, opt_precision);  if (n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19 || vf.v == 2 && vf.f % 100 >= 11 && vf.f % 100 <= 19) {    return PLURAL_CATEGORY.ZERO;  }  if (n % 10 == 1 && n % 100 != 11 || vf.v == 2 && vf.f % 10 == 1 && vf.f % 100 != 11 || vf.v != 2 && vf.f % 10 == 1) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}
      Severity: Major
      Found in myems-admin/js/angular/i18n/angular-locale_lv-lv.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

          "pluralCat": function(n, opt_precision) {  var vf = getVF(n, opt_precision);  if (n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19 || vf.v == 2 && vf.f % 100 >= 11 && vf.f % 100 <= 19) {    return PLURAL_CATEGORY.ZERO;  }  if (n % 10 == 1 && n % 100 != 11 || vf.v == 2 && vf.f % 10 == 1 && vf.f % 100 != 11 || vf.v != 2 && vf.f % 10 == 1) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}
        Severity: Major
        Found in myems-admin/js/angular/i18n/angular-locale_lv.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                              if (isNaN(kval)) {
          
                                  (kc !== 13)         // enter
                                      && (kc !== 8)       // bs
                                      && (kc !== 9)       // tab
          Severity: Major
          Found in myems-admin/js/plugins/jsKnob/jquery.knob.js - About 1 hr to fix

            Function $get has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                  function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce, $browser) {
            Severity: Major
            Found in myems-admin/js/angular/angular-route.js - About 1 hr to fix

              Function plotPoints has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                          function plotPoints(datapoints, radius, fillStyle, offset, shadow, axisx, axisy, symbol) {
              Severity: Major
              Found in myems-admin/js/plugins/flot/jquery.flot.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                                        if (series[i].bars.horizontal ?
                                            (mx <= Math.max(b, x) && mx >= Math.min(b, x) &&
                                             my >= y + barLeft && my <= y + barRight) :
                                            (mx >= x + barLeft && mx <= x + barRight &&
                                             my >= Math.min(b, y) && my <= Math.max(b, y)))
                Severity: Major
                Found in myems-admin/js/plugins/flot/jquery.flot.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if (r.raise(s.rowDetailUpdating, {
                                      row: i,
                                      detail: o
                                  }), i.find("> td:hidden").each(function() {
                                      var t = e(this).index(),
                  Severity: Major
                  Found in myems-admin/js/plugins/footable/footable.all.min.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                              if ((u = za(a, c + b.options.indent, u, e))) {
                                e = 0;
                                var d;
                                if (b.isItemExpanded(a)) {
                                  var h = a[b.options.dataFields.items];
                    Severity: Major
                    Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                      Function export has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def export(report,
                      Severity: Major
                      Found in myems-api/excelexporters/spacesaving.py - About 1 hr to fix

                        Function generate_excel has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def generate_excel(report,
                        Severity: Major
                        Found in myems-api/excelexporters/shopfloorcost.py - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                              if "child_space" not in report.keys() or "energy_category_names" not in report['child_space'].keys() or \
                                      len(report['child_space']["energy_category_names"]) == 0 \
                                      or 'child_space_names_array' not in report['child_space'].keys() \
                                      or report['child_space']['energy_category_names'] is None \
                                      or len(report['child_space']['child_space_names_array']) == 0 \
                          Severity: Major
                          Found in myems-api/excelexporters/spacecarbon.py - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                if 'values_saving' not in reporting_period_data.keys() or \
                                        reporting_period_data['values_saving'] is None or \
                                        len(reporting_period_data['values_saving']) == 0 or \
                                        'timestamps' not in reporting_period_data.keys() or \
                                        reporting_period_data['timestamps'] is None or \
                            Severity: Major
                            Found in myems-api/excelexporters/spacesaving.py - About 1 hr to fix

                              Function generate_excel has 8 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              def generate_excel(report,
                              Severity: Major
                              Found in myems-api/excelexporters/combinedequipmentsaving.py - About 1 hr to fix

                                Function generate_excel has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def generate_excel(report,
                                Severity: Major
                                Found in myems-api/excelexporters/equipmentload.py - About 1 hr to fix

                                  Function export has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def export(report,
                                  Severity: Major
                                  Found in myems-api/excelexporters/storeenergyitem.py - About 1 hr to fix

                                    Function generate_excel has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    def generate_excel(report,
                                    Severity: Major
                                    Found in myems-api/excelexporters/storeenergyitem.py - About 1 hr to fix

                                      Function generate_excel has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      def generate_excel(report,
                                      Severity: Major
                                      Found in myems-api/excelexporters/spacesaving.py - About 1 hr to fix

                                        Function generate_excel has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def generate_excel(report,
                                        Severity: Major
                                        Found in myems-api/excelexporters/spacecarbon.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language