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,
        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 {
            ...state,
            pages: {
              ...state.pages,
              vaFacilityV2: schema,
    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,
                  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,
                      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,
                      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,
                        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,
                          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.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 {
                              ...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 'typeOfFacility';
                        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,
                                  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,
                                    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 {
                                      header: '', // intentionally empty
                                      events: [
                                        {
                                          title: `You’ll have your ${getHearingType(details.type)} hearing`,
                              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 {
                                        ...state,
                                        uploading: false,
                                        uploadError: true,
                                        uploader: null,
                                Severity: Major
                                Found in src/applications/claims-status/reducers/uploads.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          ...state,
                                          uploading: false,
                                          uploader: null,
                                        };
                                  Severity: Major
                                  Found in src/applications/claims-status/reducers/uploads.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return {
                                            header: 'What happens next depends on whether you submit new evidence.',
                                            events: [
                                              {
                                                title: 'Your appeal will be returned to the Board',
                                    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 {
                                              header: '', // intentionally empty
                                              events: [
                                                {
                                                  title:
                                      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 {
                                                ...state,
                                                uploader: action.uploader,
                                              };
                                        Severity: Major
                                        Found in src/applications/claims-status/reducers/uploads.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language