bokuweb/tuna_pasta

View on GitHub
src/reducers/menu.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function menu has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function menu(state={}, action) {
  switch(action.type){
    case types.INITIALIZE_KEYWORD :
      state.keywords = action.keywords;
      state.activeKeyword = 'all';
Severity: Minor
Found in src/reducers/menu.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return Object.assign({}, state);
    Severity: Major
    Found in src/reducers/menu.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return Object.assign({}, state);
      Severity: Major
      Found in src/reducers/menu.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return Object.assign({}, state);
        Severity: Major
        Found in src/reducers/menu.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return Object.assign({}, state);
          Severity: Major
          Found in src/reducers/menu.js - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status