ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/components/tree-view/reducers/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function reducers has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const reducers = (oncheck, onclick) => (state = {}, action) => {
  const node = action.nodeId !== undefined ? Tree.nodeSelector(state, action.nodeId) : undefined;

  switch (action.type) {
    case ACTIONS.CHECKED_DIRECTLY:
Severity: Minor
Found in app/javascript/components/tree-view/reducers/index.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status