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 grayFormConfig;

    Avoid too many return statements within this function.
    Open

        return content;

      Avoid too many return statements within this function.
      Open

        return fallbackForm;

        Avoid too many return statements within this function.
        Open

              return (
                <UnderReviewConfirmation
                  user={claimantName}
                  confirmationError={confirmationError}
                  confirmationLoading={confirmationLoading}
        Severity: Major
        Found in src/applications/toe/containers/ConfirmationPage.jsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return (
                <a
                  className="vads-c-action-link--green"
                  href={this._toolUrl}
                  target={target}
          Severity: Major
          Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return {
                  cta1: '',
                  cta2: '',
                  featureLocation: '',
                };

              Avoid too many return statements within this function.
              Open

                    return {
                      cta1: 'view lab and test results from',
                      cta2: 'health records',
                      featureLocation: 'HealtheVet',
                    };

                Avoid too many return statements within this function.
                Open

                    return null;
                Severity: Major
                Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return sortedEvents?.filter(event =>
                          moment(
                            event?.fieldDatetimeRangeTimezone[0]
                              ? event.fieldDatetimeRangeTimezone[0].endValue * 1000
                              : event.fieldDatetimeRangeTimezone.endValue * 1000,
                  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 (
                            <va-loading-indicator
                              class="vads-u-margin-y--5"
                              label="Loading"
                              message="Loading your results..."
                    Severity: Major
                    Found in src/applications/toe/containers/ConfirmationPage.jsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return <VAOnlineScheduling featureToggles={this.props.featureToggles} />;
                      Severity: Major
                      Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              if (!options?.startsAtUnix || !options?.endsAtUnix) return events;
                        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 <HealthToolsDown />;
                          Severity: Major
                          Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return this.getInaccessibleHealthToolContent();
                            Severity: Major
                            Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return loggedOutComponent;
                              Severity: Major
                              Found in src/applications/static-pages/download-1095b/components/App/index.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return <MFA />;
                                Severity: Major
                                Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return (
                                          <DirectDeposit
                                            serviceDescription={this._serviceDescription}
                                            primaryButtonHandler={() =>
                                              this.goToTool({
                                  Severity: Major
                                  Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return (
                                            <ChangeAddress
                                              featureToggles={this.props.featureToggles}
                                              serviceDescription={this._serviceDescription}
                                              primaryButtonHandler={this.goToTool}
                                    Severity: Major
                                    Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return events?.filter(
                                              event =>
                                                moment(event?.fieldDatetimeRangeTimezone[0]?.value).isBetween(
                                                  options?.startsAtUnix,
                                                  options?.endsAtUnix,
                                      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 this.getMviErrorContent();
                                        Severity: Major
                                        Found in src/applications/static-pages/cta-widget/index.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language