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/offlinemetercarbon.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/spaceefficiency.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/combinedequipmentenergycategory.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/metercarbon.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/virtualmeterplan.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/spaceenergycategory.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/shopfloorplan.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/spacestatistics.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/meterenergy.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/shopfloorsaving.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/metersaving.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/energystoragepowerstationreportingparameters.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/shopfloorstatistics.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/shopfloorcarbon.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/combinedequipmentenergyitem.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/shopfloorenergyitem.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/equipmentenergycategory.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/spaceplan.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/metercost.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/equipmentoutput.py - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language