Showing 5,781 of 10,536 total issues

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/storestatistics.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/storecarbon.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if has_sub_averages_data_flag:
                              # line
                              line = LineChart()
                              line.title = _('Base Period Average Load') + ' / ' \
                                  + _('Reporting Period Average Load') + ' - ' \
      Severity: Major
      Found in myems-api/excelexporters/spaceload.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if has_sub_maximums_data_flag:
                                # line
                                line = LineChart()
                                line.title = _('Base Period Maximum Load') + ' / ' \
                                    + _('Reporting Period Maximum Load') + ' - ' \
        Severity: Major
        Found in myems-api/excelexporters/spaceload.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if has_sub_maximums_data_flag:
                                  current_col_number += 1
                                  col = format_cell.get_column_letter(current_col_number)
          
                                  ws[col + str(current_row_number)].fill = table_fill
          Severity: Major
          Found in myems-api/excelexporters/combinedequipmentload.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/equipmentincome.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if has_sub_averages_data_flag:
                                      current_col_number += 1
                                      col = format_cell.get_column_letter(current_col_number)
              
                                      ws[col + str(current_row_number)].fill = table_fill
              Severity: Major
              Found in myems-api/excelexporters/spaceload.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if has_sub_averages_data_flag:
                                        ws[col + str(current_row_number)].font = title_font
                                        ws[col + str(current_row_number)].alignment = c_c_alignment
                                        ws[col + str(current_row_number)].border = f_border
                                        ws[col + str(current_row_number)] = round2(reporting_period_data['sub_averages'][j][i], 2) \
                Severity: Major
                Found in myems-api/excelexporters/storeload.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/storeload.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/equipmentincome.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if has_sub_averages_data_flag:
                                              ws[col + str(current_row_number)].font = title_font
                                              ws[col + str(current_row_number)].alignment = c_c_alignment
                                              ws[col + str(current_row_number)].border = f_border
                                              ws[col + str(current_row_number)] = round2(reporting_period_data['sub_averages'][j][i], 2) \
                      Severity: Major
                      Found in myems-api/excelexporters/spaceload.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/combinedequipmentcost.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/combinedequipmentcost.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/equipmentcarbon.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/tenantplan.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/tenantplan.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/combinedequipmentcost.py - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if has_sub_maximums_data_flag:
                                                            ws[col + str(current_row_number)].font = title_font
                                                            ws[col + str(current_row_number)].alignment = c_c_alignment
                                                            ws[col + str(current_row_number)].border = f_border
                                                            ws[col + str(current_row_number)] = round2(reporting_period_data['sub_maximums'][j][i], 2) \
                                    Severity: Major
                                    Found in myems-api/excelexporters/combinedequipmentload.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/equipmentsaving.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/equipmentsaving.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language