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;

    Avoid too many return statements within this function.
    Open

            return mockStatusResponse(0, 10, 20, 20); // IN PROGRESS
    Severity: Major
    Found in src/applications/mhv-medical-records/util/testHelper.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return {
              ...state,
              saveError: action.response?.error ?? action.response?.errors ?? true,
              ui: {
                ...state.ui,
      Severity: Major
      Found in src/applications/personalization/profile/reducers/directDeposit.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return <EkgDetails record={labAndTestDetails} />;
        Severity: Major
        Found in src/applications/mhv-medical-records/containers/LabAndTestDetails.jsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return (
                <div className="vads-u-margin-y--8">
                  <va-loading-indicator
                    message="We’re loading your records. This could take up to a minute."
                    setFocus
          Severity: Major
          Found in src/applications/mhv-medical-records/containers/Vitals.jsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return {
                    ...state,
                    loadError: null,
                  };
            Severity: Major
            Found in src/applications/personalization/profile/reducers/directDeposit.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                return state;

                Avoid too many return statements within this function.
                Open

                      return mockStatusResponse(0, 80, 70, 70); // STALE
                Severity: Major
                Found in src/applications/mhv-medical-records/util/testHelper.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return {
                        ...state,
                        dependentsState: {
                          ...state.dependentsState,
                          [action.stateKey]: {

                    Avoid too many return statements within this function.
                    Open

                      return facilityID;
                    Severity: Major
                    Found in src/applications/personalization/appointments/actions/utils.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return mockStatusResponse(0, 80, 70, 70); // STALE
                      Severity: Major
                      Found in src/applications/mhv-medical-records/util/testHelper.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return newState;

                          Avoid too many return statements within this function.
                          Open

                              return refreshPhases.FAILED;
                          Severity: Major
                          Found in src/applications/mhv-medical-records/util/helpers.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return {
                                    ...state,
                                    saveError: null,
                                    ui: {
                                      ...state.ui,
                            Severity: Major
                            Found in src/applications/personalization/profile/reducers/directDeposit.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return refreshPhases.CURRENT;
                              Severity: Major
                              Found in src/applications/mhv-medical-records/util/helpers.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return (
                                      <RadiologyDetails record={labAndTestDetails} fullState={fullState} />
                                    );
                                Severity: Major
                                Found in src/applications/mhv-medical-records/containers/LabAndTestDetails.jsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                    return (
                                      <>
                                        <ProfileInfoCard
                                          data={serviceHistory.map(item =>
                                            transformServiceHistoryEntryIntoTableRow(item),

                                    Avoid too many return statements within this function.
                                    Open

                                            return mockStatusResponse(0, 10, 5, 5); // CURRENT
                                    Severity: Major
                                    Found in src/applications/mhv-medical-records/util/testHelper.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                        return (
                                          <div className="vads-u-margin-y--8">
                                            <va-loading-indicator
                                              message="Loading..."
                                              setFocus
                                      Severity: Major
                                      Found in src/applications/mhv-medical-records/containers/LabAndTestDetails.jsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return {
                                                ...state,
                                                listState: action.payload,
                                              };
                                        Severity: Major
                                        Found in src/applications/mhv-medical-records/reducers/vaccines.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language