Showing 5,781 of 10,536 total issues

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/equipmentincome.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/equipmentefficiency.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/combinedequipmentcost.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/virtualmetercost.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/spaceload.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/storeload.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/virtualmetersaving.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/equipmentcarbon.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/virtualmetercarbon.py - About 2 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                        if 'parameters2' not in report.keys() or \
                                report['parameters2'] is None or \
                                'names' not in report['parameters2'].keys() or \
                                report['parameters2']['names'] is None or \
                                len(report['parameters2']['names']) == 0 or \
                    Severity: Critical
                    Found in myems-api/excelexporters/metercomparison.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/combinedequipmentload.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/equipmentsaving.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/metersubmetersbalance.py - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                if 'parameters1' not in report.keys() or \
                                        report['parameters1'] is None or \
                                        'names' not in report['parameters1'].keys() or \
                                        report['parameters1']['names'] is None or \
                                        len(report['parameters1']['names']) == 0 or \
                            Severity: Critical
                            Found in myems-api/excelexporters/metercomparison.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/equipmentenergyitem.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/tenantplan.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/storecarbon.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/storestatistics.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/combinedequipmentstatistics.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/spaceenergyitem.py - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language