Showing 5,781 of 10,536 total issues

Consider simplifying this complex logical expression.
Open

          if ( (0 <= r && r <= 6 && (c == 0 || c == 6) )
              || (0 <= c && c <= 6 && (r == 0 || r == 6) )
              || (2 <= r && r <= 4 && 2 <= c && c <= 4) ) {
            _modules[row + r][col + c] = true;
          } else {
Severity: Critical
Found in myems-admin/js/angular/qrcode.js - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

      "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && (i == 1 || i == 2 || i == 3) || vf.v == 0 && i % 10 != 4 && i % 10 != 6 && i % 10 != 9 || vf.v != 0 && vf.f % 10 != 4 && vf.f % 10 != 6 && vf.f % 10 != 9) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}
    Severity: Critical
    Found in myems-admin/js/angular/i18n/angular-locale_tl.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

        "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && (i == 1 || i == 2 || i == 3) || vf.v == 0 && i % 10 != 4 && i % 10 != 6 && i % 10 != 9 || vf.v != 0 && vf.f % 10 != 4 && vf.f % 10 != 6 && vf.f % 10 != 9) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}
      Severity: Critical
      Found in myems-admin/js/angular/i18n/angular-locale_fil-ph.js - About 2 hrs to fix

        Consider simplifying this complex logical expression.
        Open

          "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && (i == 1 || i == 2 || i == 3) || vf.v == 0 && i % 10 != 4 && i % 10 != 6 && i % 10 != 9 || vf.v != 0 && vf.f % 10 != 4 && vf.f % 10 != 6 && vf.f % 10 != 9) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}
        Severity: Critical
        Found in myems-admin/js/angular/i18n/angular-locale_fil.js - About 2 hrs to fix

          Consider simplifying this complex logical expression.
          Open

                          if 'slave_id' not in address.keys() \
                                  or 'function_code' not in address.keys() \
                                  or 'offset' not in address.keys() \
                                  or 'number_of_registers' not in address.keys() \
                                  or 'format' not in address.keys() \
          Severity: Critical
          Found in myems-modbus-tcp/acquisition.py - About 2 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                if 'parameters' not in report.keys() or \
                        report['parameters'] is None or \
                        'names' not in report['parameters'].keys() or \
                        report['parameters']['names'] is None or \
                        len(report['parameters']['names']) == 0 or \
            Severity: Critical
            Found in myems-api/excelexporters/spacesaving.py - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                  if 'parameters' not in report.keys() or \
                          report['parameters'] is None or \
                          'names' not in report['parameters'].keys() or \
                          report['parameters']['names'] is None or \
                          len(report['parameters']['names']) == 0 or \
              Severity: Critical
              Found in myems-api/excelexporters/equipmentload.py - About 2 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                    if 'parameters' not in report.keys() or \
                            report['parameters'] is None or \
                            'names' not in report['parameters'].keys() or \
                            report['parameters']['names'] is None or \
                            len(report['parameters']['names']) == 0 or \
                Severity: Critical
                Found in myems-api/excelexporters/shopfloorcost.py - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                      if 'parameters' not in report.keys() or \
                              report['parameters'] is None or \
                              'names' not in report['parameters'].keys() or \
                              report['parameters']['names'] is None or \
                              len(report['parameters']['names']) == 0 or \
                  Severity: Critical
                  Found in myems-api/excelexporters/spacecarbon.py - About 2 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                        if 'parameters' not in report.keys() or \
                                report['parameters'] is None or \
                                'names' not in report['parameters'].keys() or \
                                report['parameters']['names'] is None or \
                                len(report['parameters']['names']) == 0 or \
                    Severity: Critical
                    Found in myems-api/excelexporters/spaceincome.py - About 2 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                          if 'parameters' not in report.keys() or \
                                  report['parameters'] is None or \
                                  'names' not in report['parameters'].keys() or \
                                  report['parameters']['names'] is None or \
                                  len(report['parameters']['names']) == 0 or \
                      Severity: Critical
                      Found in myems-api/excelexporters/combinedequipmentsaving.py - About 2 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                            if 'parameters' not in report.keys() or \
                                    report['parameters'] is None or \
                                    'names' not in report['parameters'].keys() or \
                                    report['parameters']['names'] is None or \
                                    len(report['parameters']['names']) == 0 or \
                        Severity: Critical
                        Found in myems-api/excelexporters/storeenergyitem.py - About 2 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                              if 'parameters' not in report.keys() or \
                                      report['parameters'] is None or \
                                      'names' not in report['parameters'].keys() or \
                                      report['parameters']['names'] is None or \
                                      len(report['parameters']['names']) == 0 or \
                          Severity: Critical
                          Found in myems-api/excelexporters/metertrend.py - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                if 'parameters' not in report.keys() or \
                                        report['parameters'] is None or \
                                        'names' not in report['parameters'].keys() or \
                                        report['parameters']['names'] is None or \
                                        len(report['parameters']['names']) == 0 or \
                            Severity: Critical
                            Found in myems-api/excelexporters/virtualmeterenergy.py - About 2 hrs to fix

                              Consider simplifying this complex logical expression.
                              Open

                                  if 'parameters' not in report.keys() or \
                                          report['parameters'] is None or \
                                          'names' not in report['parameters'].keys() or \
                                          report['parameters']['names'] is None or \
                                          len(report['parameters']['names']) == 0 or \
                              Severity: Critical
                              Found in myems-api/excelexporters/equipmentcost.py - About 2 hrs to fix

                                Consider simplifying this complex logical expression.
                                Open

                                    if 'parameters' not in report.keys() or \
                                            report['parameters'] is None or \
                                            'names' not in report['parameters'].keys() or \
                                            report['parameters']['names'] is None or \
                                            len(report['parameters']['names']) == 0 or \
                                Severity: Critical
                                Found in myems-api/excelexporters/energystoragepowerstationreportingenergy.py - About 2 hrs to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                      if 'parameters' not in report.keys() or \
                                              report['parameters'] is None or \
                                              'names' not in report['parameters'].keys() or \
                                              report['parameters']['names'] is None or \
                                              len(report['parameters']['names']) == 0 or \
                                  Severity: Critical
                                  Found in myems-api/excelexporters/tenantload.py - About 2 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                        if 'parameters' not in report.keys() or \
                                                report['parameters'] is None or \
                                                'names' not in report['parameters'].keys() or \
                                                report['parameters']['names'] is None or \
                                                len(report['parameters']['names']) == 0 or \
                                    Severity: Critical
                                    Found in myems-api/excelexporters/storeplan.py - About 2 hrs to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                          if 'parameters' not in report.keys() or \
                                                  report['parameters'] is None or \
                                                  'names' not in report['parameters'].keys() or \
                                                  report['parameters']['names'] is None or \
                                                  len(report['parameters']['names']) == 0 or \
                                      Severity: Critical
                                      Found in myems-api/excelexporters/energystoragepowerstationreportingrevenue.py - About 2 hrs to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                            if 'parameters' not in report.keys() or \
                                                    report['parameters'] is None or \
                                                    'names' not in report['parameters'].keys() or \
                                                    report['parameters']['names'] is None or \
                                                    len(report['parameters']['names']) == 0 or \
                                        Severity: Critical
                                        Found in myems-api/excelexporters/tenantcost.py - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language