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,
        data: {
          ...state.data,
          selectedDates: action.selectedDates,
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.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 (
              <div>
                {pageHeader}
                <SingleFacilityEligibilityCheckMessage
                  eligibility={eligibility}

          Avoid too many return statements within this function.
          Open

            return 'calendar_today';
          Severity: Major
          Found in src/applications/vaos/components/AppointmentCard/AppointmentCardIcon.jsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return {
                    ...state,
                    showEligibilityModal: false,
                  };
            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,
                      appointmentSlotsStatus: 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,
                        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,
                          pageChangeInProgress: false,
                          previousPages: updatedPreviousPages,
                          currentPageKey:
                  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,
                            showPodiatryAppointmentUnavailableModal: true,
                            pageChangeInProgress: false,
                          };
                    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,
                              showPodiatryAppointmentUnavailableModal: false,
                            };
                      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,
                                ccEnabledSystems: action.ccEnabledSystems,
                                parentFacilities: action.parentFacilities,
                                parentFacilitiesStatus: FETCH_STATUS.succeeded,
                        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,
                                  isCCEligible: action.isEligible,
                                };
                          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,
                                      currentLocation: {
                                        latitude: action.location?.coords.latitude,
                                        longitude: action.location?.coords.longitude,
                            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,
                                        selectedCCFacility: action.location,
                                        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 (
                                    <div>
                                      {pageHeader}
                                      {requestingLocation && (
                                        <div className="vads-u-padding-bottom--2">

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          ...state,
                                          data: {
                                            ...state.data,
                                            facilityType: action.facilityType,
                                  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,
                                            showEligibilityModal: 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 null;
                                      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,
                                                pages,
                                                childFacilitiesStatus: FETCH_STATUS.failed,
                                              };
                                        Severity: Major
                                        Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language