adam-26/react-router-dispatcher

View on GitHub
src/createRouteDispatchers.js

Summary

Maintainability
A
0 mins
Test Coverage

Function createRouteDispatchers has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

export default function createRouteDispatchers(routeConfig, actionNames, options = {}) {
    invariant(Array.isArray(routeConfig), 'routeConfig expects an array of routes');

    const dispatchOpts = Object.assign(
        { routeComponentPropNames: DEFAULT_COMPONENT_PROP_NAMES },
Severity: Minor
Found in src/createRouteDispatchers.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status