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,
        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,
            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 (
          <FormLayout pageTitle={crumb}>
            <Switch>
              <Route
                path={
      Severity: Major
      Found in src/applications/vaos/covid-19-vaccine/index.jsx - 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 <CancelWarningPage {...data} />;

            Avoid too many return statements within this function.
            Open

                return (
                  <div>
                    {title}
                    <VAFacilityInfoMessage
                      facility={selectedFacility}

              Avoid too many return statements within this function.
              Open

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

                Avoid too many return statements within this function.
                Open

                      return {
                        ...initialState,
                      };
                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 facilityName ? `At ${facilityName}` : 'At VA facility';
                  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, 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,
                                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.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 `${
                                  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 (
                                  <PageLayout showNeedHelp isDetailPage>
                                    <CancelWarningPage
                                      {...{
                                        appointment,

                              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,
                                        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 (
                                        <CancelConfirmationPage
                                          appointment={appointment}
                                          cancelInfo={cancelInfo}
                                        />

                                    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,
                                              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,
                                                appointmentDetailsStatus: FETCH_STATUS.failed,
                                              };
                                        Severity: Major
                                        Found in src/applications/vaos/appointment-list/redux/reducer.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language