department-of-veterans-affairs/vets-website

View on GitHub

Showing 4,177 of 14,709 total issues

Avoid too many return statements within this function.
Open

  return (
    <ITFBanner status="error" router={router}>
      {children}
    </ITFBanner>
  );
Severity: Major
Found in src/applications/appeals/testing/sc/containers/ITFWrapper.jsx - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return showLoading(
          'Submitting a new Intent to File...',
          'submitting a new intent to file',
        );
    Severity: Major
    Found in src/applications/appeals/995/containers/ITFWrapper.jsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return (
            <ITFBanner
              status={status}
              currentExpDate={currentExpDate}
              router={router}
      Severity: Major
      Found in src/applications/appeals/testing/sc/containers/ITFWrapper.jsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return questionLabels[key][ans];
        Severity: Major
        Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                    return;
          Severity: Major
          Found in src/applications/discharge-wizard/utilities/page-navigation.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return;
            Severity: Major
            Found in src/applications/discharge-wizard/utilities/page-navigation.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return {
                      ...state,
                      institutionQuery,
                      institutions,
                      pagesCount,
              Severity: Major
              Found in src/applications/edu-benefits/feedback-tool/reducers/schoolSelect.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return `the ${abbr}. If you’ve applied before, you must re-apply to the ${abbr} for reconsideration.`;
                Severity: Major
                Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return state;
                  Severity: Major
                  Found in src/applications/edu-benefits/feedback-tool/reducers/schoolSelect.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                      return boardObj;
                    Severity: Major
                    Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        return null;
                      Severity: Major
                      Found in src/applications/mhv-supply-reordering/containers/Alerts.jsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                          return boardObj;
                        Severity: Major
                        Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return `the ${abbr} for the ${serviceBranch}. This is because the Board handles all cases from 15 or more years ago.`;
                          Severity: Major
                          Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return initialState;
                            Severity: Major
                            Found in src/applications/edu-benefits/feedback-tool/reducers/schoolSelect.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return answer;
                              Severity: Major
                              Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  return '';
                                Severity: Major
                                Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return answer;
                                  Severity: Major
                                  Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return {
                                            ...state,
                                            searchInputValue: action.searchInputValue,
                                          };
                                    Severity: Major
                                    Found in src/applications/edu-benefits/feedback-tool/reducers/schoolSelect.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return `the ${abbr} for the ${serviceBranch}. This is because your discharge was the result of a general court-martial.`;
                                      Severity: Major
                                      Found in src/applications/discharge-wizard/helpers/index.jsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return { ...state };
                                        Severity: Major
                                        Found in src/applications/third-party-app-directory/reducers/index.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language