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 (
      <FullWidthLayout>
        <va-loading-indicator
          set-focus
          message="Canceling your appointment..."

    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 {
              ...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,
                  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

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

            Avoid too many return statements within this function.
            Open

              return null;

              Avoid too many return statements within this function.
              Open

                    return {
                      ...state,
                      newBooking: {
                        ...state.newBooking,
                        requestLocationStatus: 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.failed,
                      };
                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 'Not defined';

                    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,
                              requestStatus: FETCH_STATUS.succeeded,
                              communityCareProviders: {
                                ...state.communityCareProviders,
                      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,
                                ccProviderPageSortMethod: action.sortMethod,
                                requestLocationStatus,
                              };
                        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 {
                                    ...state,
                                    showEligibilityModal: true,
                                  };
                            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}
                                    {requestingLocation && (
                                      <div className="vads-u-padding-bottom--2">

                                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 (
                                        <PageLayout showNeedHelp isDetailPage>
                                          <CancelConfirmationPage
                                            {...{
                                              appointment,

                                    Avoid too many return statements within this function.
                                    Open

                                          return {
                                            ...state,
                                            hideUpdateAddressAlert: true,
                                          };
                                    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,
                                                selectedCCFacility: action.location,
                                                ccProviderPageSortMethod: action.sortMethod,
                                                requestLocationStatus,
                                      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,
                                                childFacilitiesStatus: 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