department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-medical-records/reducers/refresh.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function refreshReducer has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const refreshReducer = (state = initialState, action) => {
  switch (action.type) {
    case Actions.Refresh.SET_INITIAL_FHIR_LOAD: {
      return {
        ...state,
Severity: Minor
Found in src/applications/mhv-medical-records/reducers/refresh.js - About 1 hr 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

      There are no issues that match your filters.

      Category
      Status