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,
        newBooking: {
          ...state.newBooking,
          showEligibilityModal: false,
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, cannotReply: action.payload };
    Severity: Major
    Found in src/applications/mhv-secure-messaging/reducers/threadDetails.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 {
                ...state,
                showCancelModal: true,
                confirmed,
                pending,
        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 `${
                  isCommunityCare ? 'Community care' : 'VA'
                } appointment with ${practitioner}`;
          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 (
                  <CancelConfirmationPage
                    appointment={appointment}
                    cancelInfo={cancelInfo}
                  />

              Avoid too many return statements within this function.
              Open

                    return {
                      ...state,
                      newBooking: {
                        ...state.newBooking,
                        facilitiesStatus: FETCH_STATUS.loading,
              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,
                          appointmentSlotsStatus: 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

                          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 (
                            <div>
                              {title}
                              <SingleFacilityEligibilityCheckMessage
                                clinicsStatus={clinicsStatus}

                        Avoid too many return statements within this function.
                        Open

                              return {
                                ...state,
                                newBooking: {
                                  ...state.newBooking,
                                  facilitiesStatus: 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 (
                              <div>
                                {title}
                                <p>
                                  Here’s a list of VA facilities where you’re registered that offer{' '}

                            Avoid too many return statements within this function.
                            Open

                                  return {
                                    ...state,
                                    appointmentDetailsStatus: FETCH_STATUS.loading,
                                  };
                            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,
                                        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

                                      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 (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 {
                                            ...state,
                                            newBooking: {
                                              ...state.newBooking,
                                              clinicsStatus: FETCH_STATUS.loading,
                                    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

                                            return <CancelWarningPage {...data} />;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language