department-of-veterans-affairs/vets-website

View on GitHub

Showing 3,945 of 13,747 total issues

Avoid too many return statements within this function.
Open

  return fallbackForm;

    Avoid too many return statements within this function.
    Open

        return content;

      Avoid too many return statements within this function.
      Open

          return content;

        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

                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 {
                  formData: newFormData,
                  metadata: metadata.prefill
                    ? metadata
                    : set('returnUrl', '/va-benefits/basic-information', metadata),
            Severity: Major
            Found in src/applications/hca/config/migrations.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 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

                    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 (
                              <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 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 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 <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 {
                                        formData: set('vaCompensationType', 'pension', newFormData),
                                        metadata,
                                      };
                                Severity: Major
                                Found in src/applications/hca/config/migrations.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 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 (
                                              <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 (
                                                <UnderReviewConfirmation
                                                  user={claimantName}
                                                  confirmationError={confirmationError}
                                                  confirmationLoading={confirmationLoading}
                                        Severity: Major
                                        Found in src/applications/toe/containers/ConfirmationPage.jsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language