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 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 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 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 (
              <ITFBanner title={title} status="error">
                {this.props.children}
              </ITFBanner>
            );

          Avoid too many return statements within this function.
          Open

            return 'It may take us a few days to process your intent to file. 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 'It may take us a few days to process your intent to file for pension claims for survivors. 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 '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 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 value;
                  Severity: Major
                  Found in src/applications/disability-benefits/686c-674-v2/config/utilities.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 disability compensation. 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 data.flatMap(dataPoint =>
                            Object.entries(uiSchema.items).flatMap(([arrKey, arrVal]) =>
                              fieldEntries(
                                arrKey,
                                arrVal,

                        Avoid too many return statements within this function.
                        Open

                          return reviewEntry(description, key, uiSchema, label, refinedData);

                          Avoid too many return statements within this function.
                          Open

                              return <ReviewField {...reviewProps} />;

                            Avoid too many return statements within this function.
                            Open

                                return Object.entries(uiSchema).flatMap(([objKey, objVal]) =>
                                  fieldEntries(
                                    objKey,
                                    objVal,
                                    data[objKey],

                              Avoid too many return statements within this function.
                              Open

                                  return null;

                                Avoid too many return statements within this function.
                                Open

                                    return reviewEntry(description, key, uiSchema, label, confirmData);

                                  Avoid too many return statements within this function.
                                  Open

                                    return showFSR ? (
                                      <RoutedSavableApp formConfig={formConfig} currentLocation={location}>
                                        <MetaTags>
                                          {/* TODO: used to prevent staging form being indexed remove once merged to prod */}
                                          <meta name="robots" content="noindex" />
                                  Severity: Major
                                  Found in src/applications/financial-status-report/containers/App.jsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return goToPath(`/spouse-employment-history`);

                                      Avoid too many return statements within this function.
                                      Open

                                          return goToPath(`/employment-history`);

                                        Avoid too many return statements within this function.
                                        Open

                                          return 'err-submission'; // Default error type if no matching conditions
                                        Severity: Major
                                        Found in src/applications/financial-status-report/config/submitForm.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language