WikiEducationFoundation/WikiEduDashboard

View on GitHub

Showing 1,672 of 1,672 total issues

Avoid too many return statements within this function.
Open

      return { ...state, blocks };
Severity: Major
Found in app/assets/javascripts/reducers/timeline.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return {
            ...state,
            articles: newStateArticles,
            fetchState: 'REVISIONSCORE_RECEIVED',
          };
    Severity: Major
    Found in app/assets/javascripts/reducers/article_finder.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return {
              ...state,
              all: state.all.concat(action.data),
              loading: false
            };
      Severity: Major
      Found in app/assets/javascripts/reducers/tickets.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return {
                ...state,
                articles: newStateArticles,
                fetchState: 'PAGEASSESSMENT_RECEIVED',
              };
        Severity: Major
        Found in app/assets/javascripts/reducers/article_finder.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return newState;
          Severity: Major
          Found in app/assets/javascripts/reducers/revisions.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return { ...state, currentPage: action.page };
            Severity: Major
            Found in app/assets/javascripts/reducers/articles.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return {
                      ...state,
                      templates: {
                        ...state.templates,
                        include: action.templates
              Severity: Major
              Found in app/assets/javascripts/reducers/scoping_methods.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return initialState;
                Severity: Major
                Found in app/assets/javascripts/reducers/validations.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return newState;
                  Severity: Major
                  Found in app/assets/javascripts/reducers/notifications.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return {
                            ...state,
                            averageViews: views,
                          };
                    Severity: Major
                    Found in app/assets/javascripts/reducers/uploads.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return { ...state, newnessFilter: action.newness };
                      Severity: Major
                      Found in app/assets/javascripts/reducers/articles.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return { ...state, weeks };
                        Severity: Major
                        Found in app/assets/javascripts/reducers/timeline.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return {
                                  ...state,
                                  articles: newStateArticles,
                                  fetchState: 'REVISION_RECEIVED',
                                };
                          Severity: Major
                          Found in app/assets/javascripts/reducers/article_finder.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return {
                                    ...state,
                                    all: sorted.newModels,
                                    sort: {
                                      sortKey: sorted.newKey,
                            Severity: Major
                            Found in app/assets/javascripts/reducers/tickets.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return newState;
                              Severity: Major
                              Found in app/assets/javascripts/reducers/revisions.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return { ...state, activeIndex: state.activeIndex - 1 };
                                Severity: Major
                                Found in app/assets/javascripts/reducers/wizard.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          ...state,
                                          selectedFilters: action.selectedFilters,
                                        };
                                  Severity: Major
                                  Found in app/assets/javascripts/reducers/uploads.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return { ...state, loading: true };
                                    Severity: Major
                                    Found in app/assets/javascripts/reducers/assignments.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return {
                                              ...state,
                                              averageViews: initialState.averageViews,
                                            };
                                      Severity: Major
                                      Found in app/assets/javascripts/reducers/uploads.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return {
                                                ...state,
                                                uploadMetadata: action.data,
                                              };
                                        Severity: Major
                                        Found in app/assets/javascripts/reducers/uploads.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language