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,
      };
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,
            providers: convertHealthcareProviders(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 (
          <div className="vads-u-margin-y--8">
            <va-loading-indicator
              message="We’re loading your records. This could take up to a minute."
              setFocus

        Avoid too many return statements within this function.
        Open

              return {
                ...state,
                labsAndTestsDetails: undefined,
              };
        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/vitals.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

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

              Avoid too many return statements within this function.
              Open

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

                Avoid too many return statements within this function.
                Open

                  return `${monthName} ${day}, ${year}`;
                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 {
                          ...state,
                          medicalEvents: convertMedicalEvents(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 {
                            ...state,
                            downloadSuccess: false,
                          };
                    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,
                              militaryHistory: convertMilitaryHistory(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 labTypes.RADIOLOGY;
                        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,
                                    labsAndTestsList: state.updatedList,
                                    updatedList: undefined,
                                  };
                          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,
                                    healthInsurance: convertHealthInsurance(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 {
                                      ...state,
                                      activityJournal: convertActivityJournal(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 refreshPhases.CURRENT;
                                Severity: Major
                                Found in src/applications/mhv-medical-records/reducers/refresh.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          ...state,
                                          apiError: true,
                                        };
                                  Severity: Major
                                  Found in src/applications/mhv-medications/reducers/prescriptions.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return filterCount.nonActive;

                                      Avoid too many return statements within this function.
                                      Open

                                              return (
                                                <>
                                                  <p data-testid="status">Discontinued</p>
                                                  <va-additional-info
                                                    uswds
                                      Severity: Major
                                      Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return (
                                                  <>
                                                    <p data-testid="status">Unknown</p>
                                                    <va-additional-info
                                                      uswds
                                        Severity: Major
                                        Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language