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 { name: 'Discharge Review Board (DRB)', abbr: 'DRB' };
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 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 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 {
                      ...state,
                      manualSchoolEntryChecked: action.manualSchoolEntryChecked,
                    };
              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 <AlertNoSuppliesForReorder reorderDate={reorderDate} />;
                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 handleDRBExplanation(boardToSubmit, serviceBranch, prevAppType);
                  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 `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 { name: 'Discharge Review Board (DRB)', abbr: DRB };
                      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 `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 {
                                  ...state,
                                  error: action.error,
                                };
                          Severity: Major
                          Found in src/applications/third-party-app-directory/reducers/index.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return {
                                    ...state,
                                    scopes: {
                                      ...state.scopes,
                                      [action.scopeCategory]: action.response.data,
                            Severity: Major
                            Found in src/applications/third-party-app-directory/reducers/index.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return (
                                    <p
                                      className="vads-u-font-size--base vads-u-line-height--3 vads-u-font-family--sans
                                      vads-u-margin-top--1p5 vads-u-font-weight--normal va-u-outline--none"
                                      data-forms-focus
                              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 { ...state };
                                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,
                                          results:
                                            state.sortByPropertyName === FAF_OPTION_CLOSEST_MATCH
                                              ? state.closestMatchSearchResults
                                  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, 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 (
                                          <>
                                            <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 format(date2Formatted, 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