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 {
        ...state,
        eligibilityStatus: FETCH_STATUS.loading,
      };
Severity: Major
Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return VA_FACILITY_V2_KEY;
    Severity: Major
    Found in src/applications/vaos/new-appointment/newAppointmentFlow.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return {
              ...state,
              data,
              pages: {
                ...state.pages,
      Severity: Major
      Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return {
                ...state,
                data,
                pages: {
                  ...state.pages,
        Severity: Major
        Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return (
                <div>
                  {pageHeader}
                  <SingleFacilityAvailable
                    facility={selectedFacility}

            Avoid too many return statements within this function.
            Open

                  return {
                    ...state,
                    appointmentSlotsStatus: FETCH_STATUS.succeeded,
                    availableSlots: action.availableSlots,
                    fetchedAppointmentSlotMonths: action.fetchedAppointmentSlotMonths,
            Severity: Major
            Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return {
                      ...state,
                      requestStatus: FETCH_STATUS.succeeded,
                      communityCareProviders: {
                        ...state.communityCareProviders,
              Severity: Major
              Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return {
                        ...state,
                        hideUpdateAddressAlert: true,
                      };
                Severity: Major
                Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return {
                          ...state,
                          requestLocationStatus: FETCH_STATUS.failed,
                        };
                  Severity: Major
                  Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                              return 'typeOfCare';
                    Severity: Major
                    Found in src/applications/vaos/new-appointment/newAppointmentFlow.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return (
                            <Section heading={heading}>
                              <p className="vads-u-margin-y--0p5">
                                You've already filed a claim for this appointment.
                              </p>
                      Severity: Major
                      Found in src/applications/vaos/components/TravelReimbursementSection.jsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return {
                                ...state,
                                childFacilitiesStatus: FETCH_STATUS.loading,
                              };
                        Severity: Major
                        Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return {
                                  ...state,
                                  ccProviderPageSortMethod: action.sortMethod,
                                  requestLocationStatus,
                                };
                          Severity: Major
                          Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return {
                                    ...state,
                                    data,
                                    pages: {
                                      ...state.pages,
                            Severity: Major
                            Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return {
                                      ...state,
                                      requestStatus: FETCH_STATUS.loading,
                                    };
                              Severity: Major
                              Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return {
                                        ...state,
                                        requestLocationStatus: FETCH_STATUS.loading,
                                      };
                                Severity: Major
                                Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          header: '', // intentionally empty
                                          events: [
                                            {
                                              title: 'The Board will make a decision',
                                  Severity: Major
                                  Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return {
                                            title:
                                              'This appeal is eligible for the Rapid Appeals Modernization Program',
                                            description: (
                                              <div>
                                    Severity: Major
                                    Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return {
                                              title: 'What if I disagree with my decision?',
                                              description: (
                                                <div>
                                                  <p>
                                      Severity: Major
                                      Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                          return <ErrorMessage />;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language