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,
        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 {
            ...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 (
          <>
            <ProfileInfoCard
              data={serviceHistory.map(item =>
                transformServiceHistoryEntryIntoTableRow(item),

        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 true;

            Avoid too many return statements within this function.
            Open

                return (
                  <Wrapper>
                    <VerifyIdentity useOAuth={useOAuth} />
                  </Wrapper>
                );

              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 newState;

                    Avoid too many return statements within this function.
                    Open

                        return (
                          <Wrapper>
                            <Ineligible />
                          </Wrapper>
                        );

                      Avoid too many return statements within this function.
                      Open

                            return newState;

                        Avoid too many return statements within this function.
                        Open

                          return state;

                          Avoid too many return statements within this function.
                          Open

                            return (
                              <div>
                                <Prompt
                                  message="Are you sure you want to leave? If you leave, your in-progress work won’t be saved."
                                  when={hasUnsavedFormEdits}

                            Avoid too many return statements within this function.
                            Open

                                  return 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 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 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 <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 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 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 (
                                              <RadiologyDetails record={labAndTestDetails} fullState={fullState} />
                                            );
                                        Severity: Major
                                        Found in src/applications/mhv-medical-records/containers/LabAndTestDetails.jsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language