Showing 5,781 of 10,536 total issues

Avoid too many return statements within this function.
Open

      return orderBy(state, sortBy, order);
Severity: Major
Found in myems-web/src/reducers/arrayReducer.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return None
    Severity: Major
    Found in myems-normalization/meter.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return "Error in step 3.2 virtual meter worker " + str(e) + " for '" + virtual_meter['name'] + "'"
      Severity: Major
      Found in myems-normalization/virtualmeter.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return error_string
        Severity: Major
        Found in myems-aggregation/microgrid_energy_discharge.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return error_string
          Severity: Major
          Found in myems-aggregation/combined_equipment_energy_output_category.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return error_string
            Severity: Major
            Found in myems-aggregation/tenant_energy_input_category.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return None
              Severity: Major
              Found in myems-aggregation/equipment_energy_input_item.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return error_string
                Severity: Major
                Found in myems-aggregation/equipment_energy_input_item.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return error_string
                  Severity: Major
                  Found in myems-aggregation/shopfloor_energy_input_item.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return state.filter(item => item.id !== id);
                    Severity: Major
                    Found in myems-web/src/reducers/arrayReducer.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return state;
                      Severity: Major
                      Found in myems-web/src/reducers/arrayReducer.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return state.map(item => (item.id === id ? payload : item));
                        Severity: Major
                        Found in myems-web/src/reducers/arrayReducer.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return error_string
                          Severity: Major
                          Found in myems-normalization/meter.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return
                            Severity: Major
                            Found in myems-normalization/virtualpoint.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return None
                              Severity: Major
                              Found in myems-aggregation/combined_equipment_energy_output_category.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return error_string
                                Severity: Major
                                Found in myems-aggregation/tenant_energy_input_category.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return
                                  Severity: Major
                                  Found in myems-normalization/virtualpoint.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                        return "variable point type should not be DIGITAL_VALUE " + " for '" + virtual_point['name'] + "'"
                                    Severity: Major
                                    Found in myems-normalization/virtualpoint.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return error_string
                                      Severity: Major
                                      Found in myems-aggregation/microgrid_energy_discharge.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                            return "variable point type should not be None " + " for '" + virtual_point['name'] + "'"
                                        Severity: Major
                                        Found in myems-normalization/virtualpoint.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language