Showing 5,781 of 10,536 total issues

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

def export(result, space_name, energy_category_name, reporting_start_datetime_local, reporting_end_datetime_local,
Severity: Minor
Found in myems-api/excelexporters/metertracking.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        for j in range(0, ca_len):
                            current_col_number += 1
                            col = format_cell.get_column_letter(current_col_number)
    
                            ws[col + str(current_row_number)].font = title_font
    Severity: Major
    Found in myems-api/excelexporters/shopfloorstatistics.py - About 45 mins to fix

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

      def generate_excel(report, space_name, energy_category_name, reporting_start_datetime_local,
      Severity: Minor
      Found in myems-api/excelexporters/metertracking.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            for j in range(len(line.series)):
                                line.series[j].marker.symbol = "circle"
                                line.series[j].smooth = True
                            line.x_axis.crosses = 'min'
        Severity: Major
        Found in myems-api/excelexporters/shopfloorstatistics.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              for j in range(len(line.series)):
                                  line.series[j].marker.symbol = "circle"
                                  line.series[j].smooth = True
                              line.x_axis.crosses = 'min'
          Severity: Major
          Found in myems-api/excelexporters/tenantcarbon.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                for j in range(0, base_period_data_ca_len):
                                    current_col_number += 1
                                    col = format_cell.get_column_letter(current_col_number)
            
                                    ws[col + str(current_row_number)].font = title_font
            Severity: Major
            Found in myems-api/excelexporters/tenantsaving.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  for j in range(0, base_period_data_ca_len):
                                      current_col_number += 1
                                      col = format_cell.get_column_letter(current_col_number)
              
                                      ws[col + str(current_row_number)].font = title_font
              Severity: Major
              Found in myems-api/excelexporters/tenantcarbon.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    for j in range(0, reporting_period_data_ca_len):
                                        current_col_number += 1
                                        col = format_cell.get_column_letter(current_col_number)
                
                                        ws[col + str(current_row_number)].font = title_font
                Severity: Major
                Found in myems-api/excelexporters/shopfloorcarbon.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      for j in range(len(line.series)):
                                          line.series[j].marker.symbol = "circle"
                                          line.series[j].smooth = True
                                      line.x_axis.crosses = 'min'
                  Severity: Major
                  Found in myems-api/excelexporters/shopfloorcarbon.py - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        for j in range(0, ca_len):
                                            current_col_number += 1
                                            col = format_cell.get_column_letter(current_col_number)
                    
                                            ws[col + str(current_row_number)].font = title_font
                    Severity: Major
                    Found in myems-api/excelexporters/spaceplan.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          for j in range(0, ca_len):
                                              current_col_number += 1
                                              col = format_cell.get_column_letter(current_col_number)
                      
                                              ws[col + str(current_row_number)].font = title_font
                      Severity: Major
                      Found in myems-api/excelexporters/tenantcarbon.py - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            for j in range(0, base_period_data_ca_len):
                                                current_col_number += 1
                                                col = format_cell.get_column_letter(current_col_number)
                        
                                                ws[col + str(current_row_number)].font = title_font
                        Severity: Major
                        Found in myems-api/excelexporters/storecost.py - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              for j in range(0, ca_len):
                                                  current_col_number += 1
                                                  col = format_cell.get_column_letter(current_col_number)
                          
                                                  ws[col + str(current_row_number)].font = title_font
                          Severity: Major
                          Found in myems-api/excelexporters/combinedequipmentincome.py - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                for j in range(0, reporting_period_data_ca_len):
                                                    current_col_number += 1
                                                    col = format_cell.get_column_letter(current_col_number)
                            
                                                    ws[col + str(current_row_number)].font = title_font
                            Severity: Major
                            Found in myems-api/excelexporters/combinedequipmentincome.py - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  for j in range(len(line.series)):
                                                      line.series[j].marker.symbol = "circle"
                                                      line.series[j].smooth = True
                                                  line.x_axis.crosses = 'min'
                              Severity: Major
                              Found in myems-api/excelexporters/combinedequipmentincome.py - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    for j in range(0, base_period_data_ca_len):
                                                        current_col_number += 1
                                                        col = format_cell.get_column_letter(current_col_number)
                                
                                                        ws[col + str(current_row_number)].font = title_font
                                Severity: Major
                                Found in myems-api/excelexporters/storesaving.py - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      for j in range(len(line.series)):
                                                          line.series[j].marker.symbol = "circle"
                                                          line.series[j].smooth = True
                                                      line.x_axis.crosses = 'min'
                                  Severity: Major
                                  Found in myems-api/excelexporters/shopfloorenergycategory.py - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        for j in range(0, base_period_data_ca_len):
                                                            if has_sub_averages_data_flag:
                                                                current_col_number += 1
                                                                col = format_cell.get_column_letter(current_col_number)
                                    
                                    
                                    Severity: Major
                                    Found in myems-api/excelexporters/shopfloorload.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          for j in range(0, base_period_data_ca_len):
                                                              current_col_number += 1
                                                              col = format_cell.get_column_letter(current_col_number)
                                      
                                                              ws[col + str(current_row_number)].font = title_font
                                      Severity: Major
                                      Found in myems-api/excelexporters/combinedequipmentincome.py - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            for j in range(0, reporting_period_data_ca_len):
                                                                current_col_number += 1
                                                                col = format_cell.get_column_letter(current_col_number)
                                        
                                                                ws[col + str(current_row_number)].font = title_font
                                        Severity: Major
                                        Found in myems-api/excelexporters/storesaving.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language