FarmBot/Farmbot-Web-App

View on GitHub
frontend/redux/generate_reducer.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function generateReducer has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function generateReducer<State>(initialState: State) {
  /** A function that is passed the state, action and action handler.
   * This is useful if you have custom business logic that needs to exit early
   * or trigger alternative action handlers. Example: Not triggering
   * INIT_RESOURCE when UI is set to "read-only" mode. */
Severity: Minor
Found in frontend/redux/generate_reducer.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status