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,
        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 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 (
              <div>
                {pageHeader}
                <SingleFacilityEligibilityCheckMessage
                  eligibility={eligibility}

          Avoid too many return statements within this function.
          Open

              return (
                <PageLayout showNeedHelp>
                  <BackLink appointment={appointment} />
                  <div className="vads-u-margin-y--2p5">
                    <VaAlert status="error" visible>

            Avoid too many return statements within this function.
            Open

              return {
                appointmentDetails: '',
                appointmentType: '',
                icon: '',
              };

              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,
                        clinics,
                        eligibility: {
                          ...state.eligibility,
                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,
                            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,
                              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,
                                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 (
                                <div>
                                  {pageHeader}
                                  <SingleFacilityAvailable
                                    facility={selectedFacility}

                            Avoid too many return statements within this function.
                            Open

                                return (
                                  <PageLayout showNeedHelp isDetailPage>
                                    <CancelWarningPage
                                      {...{
                                        appointment,

                              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 <ErrorMessage />;

                                  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,
                                            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 {
                                              ...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,
                                                data,
                                                pages: {
                                                  ...state.pages,
                                        Severity: Major
                                        Found in src/applications/vaos/new-appointment/redux/reducer.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language