Showing 5,781 of 10,536 total issues

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

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

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

    def generate_excel(report, name, reporting_start_datetime_local, reporting_end_datetime_local,
    Severity: Major
    Found in myems-api/excelexporters/meterenergy.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/spacestatistics.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/spaceenergycategory.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/virtualmeterplan.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/metercarbon.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/metercarbon.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/spaceefficiency.py - About 1 hr to fix

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

                  def generate_excel(report, name, reporting_start_datetime_local, reporting_end_datetime_local,
                  Severity: Major
                  Found in myems-api/excelexporters/microgridreportingrevenue.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/shopfloorplan.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/spacestatistics.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/metersaving.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/tenantcost.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/storeplan.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/shopfloorsaving.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/offlinemetercarbon.py - About 1 hr to fix

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

                                  def export(report, name, reporting_start_datetime_local, reporting_end_datetime_local, base_period_start_datetime,
                                  Severity: Major
                                  Found in myems-api/excelexporters/meterenergy.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/combinedequipmentenergycategory.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/spaceenergycategory.py - About 1 hr to fix

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

                                        def export(report, name, reporting_start_datetime_local, reporting_end_datetime_local, base_period_start_datetime,
                                        Severity: Major
                                        Found in myems-api/excelexporters/microgridreportingenergy.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language