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 futureDates[0];
Severity: Major
Found in src/applications/static-pages/events/helpers/index.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return value;
    Severity: Major
    Found in src/applications/disability-benefits/686c-674/config/utilities.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return wrapWithBreadcrumb(title, <MissingId title={title} />);
      Severity: Major
      Found in src/applications/disability-benefits/all-claims/Form526EZApp.jsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return (
                <ITFBanner
                  title={title}
                  status={status}
                  currentExpDate={currentExpDate}

          Avoid too many return statements within this function.
          Open

              return wrapWithBreadcrumb(title, <AddPerson title={title} />);
          Severity: Major
          Found in src/applications/disability-benefits/all-claims/Form526EZApp.jsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return wrapWithBreadcrumb(title, <MissingServices title={title} />);
            Severity: Major
            Found in src/applications/disability-benefits/all-claims/Form526EZApp.jsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return wrapWithBreadcrumb(title, <MissingDob title={title} />);
              Severity: Major
              Found in src/applications/disability-benefits/all-claims/Form526EZApp.jsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  return savedData;

                  Avoid too many return statements within this function.
                  Open

                    return wrapWithBreadcrumb(
                      title,
                      <article id="form-526" data-location={`${location?.pathname?.slice(1)}`}>
                        <RequiredLoginView serviceRequired={serviceRequired} user={user} verify>
                          <ITFWrapper location={location} title={title}>
                  Severity: Major
                  Found in src/applications/disability-benefits/all-claims/Form526EZApp.jsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return this.showLoading(
                            title,
                            'Submitting a new Intent to File...',
                            'submitting a new intent to file',
                          );

                      Avoid too many return statements within this function.
                      Open

                          return (
                            <ITFBanner title={title} status="error">
                              {this.props.children}
                            </ITFBanner>
                          );

                        Avoid too many return statements within this function.
                        Open

                              return wrapWithBreadcrumb(
                                title,
                                <Missing526Identifiers
                                  title={title}
                                  form526RequiredIdentifiers={identifiers}
                        Severity: Major
                        Found in src/applications/disability-benefits/all-claims/Form526EZApp.jsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                            return value;
                          Severity: Major
                          Found in src/applications/disability-benefits/all-claims/utils/submit.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                              return content;
                            Severity: Major
                            Found in src/applications/disability-benefits/686c-674/containers/App.jsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                        return {
                                          chapterKey: 'disabilities',
                                          pageKey: `additional-exposure-other`,
                                        };
                              Severity: Major
                              Found in src/applications/disability-benefits/all-claims/reviewErrors.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return null;
                                Severity: Major
                                Found in src/applications/disability-benefits/all-claims/reviewErrors.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                    return null;
                                  Severity: Major
                                  Found in src/applications/simple-forms/21-0966/config/helpers.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return 'It may take us a few days to process your intent to file for pension claims. Then you’ll have 1 year to file your claim.';
                                    Severity: Major
                                    Found in src/applications/simple-forms/21-0966/config/helpers.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return {
                                                chapterKey: 'disabilities',
                                                pageKey: `herbicideLocations`,
                                              };
                                      Severity: Major
                                      Found in src/applications/disability-benefits/all-claims/reviewErrors.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return {
                                                  chapterKey: 'disabilities',
                                                  pageKey: `additional-exposures`,
                                                };
                                        Severity: Major
                                        Found in src/applications/disability-benefits/all-claims/reviewErrors.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language