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 null;
Severity: Major
Found in src/platform/user/profile/vap-svc/util/contact-information/formValues.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return formatGenderIdentity(data[fieldName]);
    Severity: Major
    Found in src/platform/user/profile/vap-svc/components/ProfileInformationView.jsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return formatMultiSelectAndText(data, fieldName) || unsetFieldTitleSpan;
      Severity: Major
      Found in src/platform/user/profile/vap-svc/components/ProfileInformationView.jsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return true;
        Severity: Major
        Found in src/applications/pact-act/utilities/display-logic-results.js - 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 formattedOperatingHours;
            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 'Other';

                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 'Closed';
                  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 <Alert.Error />;
                    Severity: Major
                    Found in src/applications/combined-debt-portal/combined/components/MCPAlerts.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 (
                            <>
                              <h3>Latest debt letters</h3>
                              <ul
                                className="no-bullets vads-u-padding-x--0"

                          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 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 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 '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 (
                                        <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/testing/sc/containers/ITFWrapper.jsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return <SearchResultMessage />;
                                      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">Veteran-reported Satisfaction Scores</h4>
                                              <div className="vads-u-margin-bottom--4">
                                                <p>
                                        Severity: Major
                                        Found in src/applications/facility-locator/components/AccessToCare.jsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language