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 newState;
Severity: Major
Found in src/applications/vaos/appointment-list/redux/reducer.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return {
            ...state,
            newBooking: {
              ...state.newBooking,
              appointmentSlotsStatus: FETCH_STATUS.succeeded,
    Severity: Major
    Found in src/applications/vaos/covid-19-vaccine/redux/reducer.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return (
            <FullWidthLayout>
              <va-loading-indicator
                set-focus
                message="Canceling your appointment..."

        Avoid too many return statements within this function.
        Open

            return (
              <div>
                {title}
                <SingleFacilityEligibilityCheckMessage
                  clinicsStatus={clinicsStatus}

          Avoid too many return statements within this function.
          Open

            return `${isCommunityCare ? 'Community care' : 'VA appointment'}`;
          Severity: Major
          Found in src/applications/vaos/appointment-list/redux/selectors.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return {
                    ...state,
                    newBooking: {
                      ...state.newBooking,
                      clinicsStatus: FETCH_STATUS.failed,
            Severity: Major
            Found in src/applications/vaos/covid-19-vaccine/redux/reducer.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return (
                    <PageLayout showNeedHelp isDetailPage>
                      <CancelConfirmationPage {...{ appointment, cancelInfo }} />
                    </PageLayout>
                  );

                Avoid too many return statements within this function.
                Open

                      return {
                        ...state,
                        newBooking: {
                          ...state.newBooking,
                          requestLocationStatus: FETCH_STATUS.failed,
                Severity: Major
                Found in src/applications/vaos/covid-19-vaccine/redux/reducer.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return {
                          ...state,
                          newBooking: {
                            ...state.newBooking,
                            data: {
                  Severity: Major
                  Found in src/applications/vaos/covid-19-vaccine/redux/reducer.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                      if (isCommunityCare) return 'Community care';
                    Severity: Major
                    Found in src/applications/vaos/appointment-list/redux/selectors.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        return '';
                      Severity: Major
                      Found in src/applications/vaos/appointment-list/redux/selectors.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                          return 'Not defined';

                          Avoid too many return statements within this function.
                          Open

                                return {
                                  ...state,
                                  newBooking: {
                                    ...state.newBooking,
                                    facilities,
                          Severity: Major
                          Found in src/applications/vaos/covid-19-vaccine/redux/reducer.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                              if (isPhone) return 'Phone';
                            Severity: Major
                            Found in src/applications/vaos/appointment-list/redux/selectors.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

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

                                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,
                                          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,
                                            eligibilityStatus: 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 '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,
                                                appointmentSlotsStatus: 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