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 'Results';
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 [];
    Severity: Major
    Found in src/applications/facility-locator/hooks/useServiceType.jsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return 0;
      Severity: Major
      Found in src/applications/facility-locator/hooks/useServiceType.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 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 operatingHours;
            Severity: Major
            Found in src/applications/facility-locator/utils/helpers.jsx - About 30 mins to fix

              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 (
                      <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 (
                            <UnderReviewChapter1606
                              claimantName={claimantName}
                              confirmationDate={confirmationDate}
                              confirmationError={confirmationError}
                  Severity: Major
                  Found in src/applications/my-education-benefits/containers/ConfirmationPage.jsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                      return prefillTransformerV1(pages, formData, metadata, state);
                    Severity: Major
                    Found in src/applications/my-education-benefits/helpers.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return benefitsServices[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 (
                                <LoadingIndicator
                                  className="meb-confirmation-page meb-confirmation-page_loading vads-u-margin-bottom--6"
                                  message="Loading your results"
                                />
                        Severity: Major
                        Found in src/applications/my-education-benefits/containers/ConfirmationPage.jsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return operatingHours;
                          Severity: Major
                          Found in src/applications/facility-locator/utils/helpers.jsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return <SearchResultMessage searchStarted={currentQuery.searchStarted} />;
                            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 healthServices[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 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 (
                                        <ITFBanner
                                          status={status}
                                          currentExpDate={currentExpDate}
                                          router={router}
                                  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 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 false;
                                        Severity: Major
                                        Found in src/applications/education-letters/containers/InboxPage.jsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language