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 `${firstname} ${lastname}`;
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 STALE_AND_TIMED_OUT;
    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 null;
      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 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 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 (
                <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 (
                    <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 (
                          <va-loading-indicator
                            message="We're checking our system for new records."
                            data-testid="new-records-loading-indicator"
                          />

                  Avoid too many return statements within this function.
                  Open

                        return {
                          ...state,
                          vaccineDetails: undefined,
                        };
                  Severity: Major
                  Found in src/applications/mhv-medical-records/reducers/vaccines.js - 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/labsAndTests.js - 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/careSummariesAndNotes.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return labTypes.OTHER;
                        Severity: Major
                        Found in src/applications/mhv-medical-records/reducers/labsAndTests.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return {
                                  ...state,
                                  medications: convertMedications(action.payload),
                                };
                          Severity: Major
                          Found in src/applications/mhv-medical-records/reducers/selfEnteredData.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return <></>;

                              Avoid too many return statements within this function.
                              Open

                                    return {
                                      ...state,
                                      careSummariesAndNotesDetails: undefined,
                                    };
                              Severity: Major
                              Found in src/applications/mhv-medical-records/reducers/careSummariesAndNotes.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return null;
                                Severity: Major
                                Found in src/applications/mhv-medical-records/reducers/selfEnteredData.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return (
                                          <va-card
                                            background
                                            aria-live="polite"
                                            data-testid="new-records-last-updated"

                                    Avoid too many return statements within this function.
                                    Open

                                          return {
                                            ...state,
                                            dateFilter: action.response,
                                          };
                                    Severity: Major
                                    Found in src/applications/mhv-medical-records/reducers/downloads.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return { ...state };
                                      Severity: Major
                                      Found in src/applications/mhv-medical-records/reducers/downloads.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

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