department-of-veterans-affairs/vets-website

View on GitHub

Showing 3,724 of 12,675 total issues

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 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 field.value;
      Severity: Major
      Found in src/applications/burial-poc-v6/pages/ReviewPage.jsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return `I'm not sure if my discharge was the outcome 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 `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 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 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 `${field.value.replace(/(\d{3})(\d{3})(\d{4})/, '($1) $2-$3')}`;
                Severity: Major
                Found in src/applications/burial-poc-v6/pages/ReviewPage.jsx - 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 `the ${abbr} for the ${serviceBranch}. This is because you want to change information other than your characterization of discharge, re-enlistment code, separation code, and narrative reason for discharge.`;
                    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 (
                            <>
                              {/* Table of Results */}
                              <ul
                                className="search-results vads-u-margin-top--2 vads-u-padding--0"

                        Avoid too many return statements within this function.
                        Open

                                return `I'm not sure what kind of discharge upgrade application I previously made.`;
                        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 `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,
                                      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 (
                                    <>
                                      <div className="find-forms-search-metadata vads-u-display--flex vads-u-flex-direction--column medium-screen:vads-u-flex-direction--row medium-screen:vads-u-justify-content--space-between">
                                        <h2
                                          className="vads-u-font-size--md vads-u-line-height--3 vads-u-font-family--sans vads-u-font-weight--normal vads-u-margin-y--1p5 va-u-outline--none"
                                Severity: Major
                                Found in src/applications/find-forms/containers/SearchResults.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 { ...state, page: action.page, startIndex: action.startIndex };
                                    Severity: Major
                                    Found in src/applications/find-forms/reducers/findVAFormsReducer.js - 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 moment(date2Formatted).format(FORM_MOMENT_PRESENTATION_DATE_FORMAT);
                                        Severity: Major
                                        Found in src/applications/find-forms/components/SearchResult.jsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language