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 specialtyMap && specialtyMap[rawServiceType];
Severity: Major
Found in src/applications/facility-locator/components/SearchResultsHeader.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/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="error" router={router}>
              {children}
            </ITFBanner>
          );
        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 <div>{renderResultItems(query, resultsData)}</div>;
          Severity: Major
          Found in src/applications/facility-locator/components/ResultsList.jsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return (
                  <div className="vads-u-margin-bottom--4">
                    <h4 className="highlight">Appointments</h4>
                    <p>
                      Current as of{' '}
            Severity: Major
            Found in src/applications/facility-locator/components/AppointmentInfo.jsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return healthServices.All;
              Severity: Major
              Found in src/applications/facility-locator/components/SearchResultsHeader.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 benefitsServices.All;
                  Severity: Major
                  Found in src/applications/facility-locator/components/SearchResultsHeader.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 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 { 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 false;
                            Severity: Major
                            Found in src/applications/education-letters/containers/InboxPage.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 { ...state };
                                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 { 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 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,
                                                error: action.error,
                                              };
                                        Severity: Major
                                        Found in src/applications/third-party-app-directory/reducers/index.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language