cloudfoundry/stratos

View on GitHub
src/frontend/packages/store/src/reducers/auth.reducer.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function authReducer has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function authReducer(state: AuthState = defaultState, action): AuthState {
  switch (action.type) {
    case LOGIN:
      return { ...state, loggingIn: true, loggedIn: false, error: false };
    case LOGIN_SUCCESS:
Severity: Major
Found in src/frontend/packages/store/src/reducers/auth.reducer.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status