af83/chouette-core

View on GitHub

Showing 922 of 922 total issues

Avoid too many return statements within this function.
Open

      if(alreadyPresent){ return state }
Severity: Major
Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return _.assign({}, state, {modalProps: newModalProps})
    Severity: Major
    Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return {
              type: 'create',
              modalProps: window.jpOrigin ? {selectedJPModal: selectedJP} : {},
              confirmModal: {}
            }
      Severity: Major
      Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return _.assign({}, state, {queryString: queryString})
        Severity: Major
        Found in app/packs/src/vehicle_journeys/reducers/filters.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return {
                  ...state,
                  modalProps: {
                    ...state.modalProps,
                    vehicleJourney: {
          Severity: Major
          Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return _.assign({}, state, {modalProps: newModalProps})
            Severity: Major
            Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return assign({}, state, {modalProps: newModalProps})
              Severity: Major
              Found in app/packs/src/time_tables/reducers/modal.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return _.assign({}, state, {modalProps: newModalProps})
                Severity: Major
                Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return 0.0001
                  Severity: Major
                  Found in app/packs/src/shape_editor/shape.helpers.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return assign({}, state, {modalProps: newModalProps})
                    Severity: Major
                    Found in app/packs/src/time_tables/reducers/modal.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return assign({}, state, {current_month: newCM, time_table_dates: newDates})
                      Severity: Major
                      Found in app/packs/src/time_tables/reducers/timetable.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return _.assign({}, state, {modalProps: newModalProps})
                        Severity: Major
                        Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return state
                          Severity: Major
                          Found in app/packs/src/vehicle_journeys/reducers/filters.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return _.assign({}, state, {modalProps: newModalProps})
                            Severity: Major
                            Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return _.assign({}, state, {modalProps: newModalProps})
                              Severity: Major
                              Found in app/packs/src/vehicle_journeys/reducers/modal.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return concatArray.map((vj, i) => {
                                        vj.index = i
                                        return vj
                                      })
                                Severity: Major
                                Found in app/packs/src/vehicle_journeys/reducers/vehicleJourneys.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return 0
                                  Severity: Major
                                  Found in app/packs/src/shape_editor/shape.helpers.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return assign({}, state, {current_month: newCM, time_table_dates: newDates})
                                    Severity: Major
                                    Found in app/packs/src/time_tables/reducers/timetable.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return assign({}, newState, {current_month: actions.updateSynthesis(newState)})
                                      Severity: Major
                                      Found in app/packs/src/time_tables/reducers/timetable.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return assign({}, state, {modalProps: newModalProps})
                                        Severity: Major
                                        Found in app/packs/src/time_tables/reducers/modal.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language