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 {
        ...state,
        results:
          state.sortByPropertyName === FAF_OPTION_CLOSEST_MATCH
            ? state.closestMatchSearchResults
Severity: Major
Found in src/applications/find-forms/reducers/findVAFormsReducer.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return {
            ...state,
            institutionQuery,
            institutions,
            pagesCount,
    Severity: Major
    Found in src/applications/edu-benefits/feedback-tool/reducers/schoolSelect.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return indexRemainsInPlace;
      Severity: Major
      Found in src/applications/find-forms/helpers/index.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return {
                ...state,
                manualSchoolEntryChecked: action.manualSchoolEntryChecked,
              };
        Severity: Major
        Found in src/applications/edu-benefits/feedback-tool/reducers/schoolSelect.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return { ...state };
          Severity: Major
          Found in src/applications/find-forms/reducers/findVAFormsReducer.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return (
                  <p
                    className="vads-u-font-size--base vads-u-line-height--3 vads-u-font-family--sans
                    vads-u-margin-top--1p5 vads-u-font-weight--normal va-u-outline--none"
                    data-forms-focus
            Severity: Major
            Found in src/applications/find-forms/containers/SearchResults.jsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                return (
                  <VerifyEnrollments
                    currentProgressBarSegment={currentMonth + 1}
                    onBackButtonClick={onBackButtonClick}
                    onFinishVerifyingLater={onFinishVerifyingLater}

                Avoid too many return statements within this function.
                Open

                  return true;
                Severity: Major
                Found in src/applications/verify-your-enrollment/helpers.jsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return 'Results';

                    Avoid too many return statements within this function.
                    Open

                      return null;

                      Avoid too many return statements within this function.
                      Open

                            return set({}, fieldName, data?.[fieldName]?.code);

                        Avoid too many return statements within this function.
                        Open

                            return transformInitialFormValues({
                              ...transformBooleanArrayToFormValues(data?.[fieldName]),
                              ...(data?.[notListedTextKey] &&
                                set({}, notListedTextKey, data?.[notListedTextKey])),
                            });

                          Avoid too many return statements within this function.
                          Open

                            return fallbackForm;
                          Severity: Major
                          Found in src/applications/_mock-form-ae-design-patterns/App.jsx - 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 <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 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 <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 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 <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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language