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 goToPath(`/employment-history`);

    Avoid too many return statements within this function.
    Open

        return goToPath(`/spouse-employment-history`);

      Avoid too many return statements within this function.
      Open

            return null;

        Avoid too many return statements within this function.
        Open

                return (
                  <>
                    <ThreadsList
                      threadList={threadList}
                      folder={folder}

          Avoid too many return statements within this function.
          Open

                        return a.name.localeCompare(b.name);

            Avoid too many return statements within this function.
            Open

                  return;

              Avoid too many return statements within this function.
              Open

                        return a.recipientName.toLowerCase() > b.recipientName.toLowerCase()
                          ? 1
                          : -1;

                Avoid too many return statements within this function.
                Open

                    return null;
                Severity: Major
                Found in src/applications/mhv-secure-messaging/containers/ThreadDetails.jsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return 0;

                    Avoid too many return statements within this function.
                    Open

                          return;

                      Avoid too many return statements within this function.
                      Open

                                return a.recipientName.toLowerCase() < b.recipientName.toLowerCase()
                                  ? 1
                                  : -1;

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

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

                                    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 (
                                            <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 {
                                                ...state,
                                                newBooking: {
                                                  ...state.newBooking,
                                                  showEligibilityModal: true,
                                        Severity: Major
                                        Found in src/applications/vaos/covid-19-vaccine/redux/reducer.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language