src/dispatchRouteActions.js
Function resolveActionSets
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
export function resolveActionSets(routeComponents, dispatchActions, initParamFuncName, isLifecycleMethod, actionFilter) {
const actionSets = parseDispatchActions(dispatchActions);
const resolvedActionSets = [];
actionSets.forEach(actionSet => {
Function dispatchClientActions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
export function dispatchClientActions(location, actionNames, routeConfig, props) {
const { routes, routeComponentPropNames } = routeConfig;
const actionParams = Object.assign({}, defaultParams); // used for internal action parameters
const clientActionSets = standardizeActionNames(actionNames);
Function createActionSetPromise
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
function createActionSetPromise(resolvedActionSet, location, actionParams, props) {
const {
routeActions,
actionSuccessHandler,
actionErrorHandler,
Function dispatchRouteActions
has 7 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
export function dispatchRouteActions(location, actions, routeConfig, props, initParamFuncName, isLifecycleMethod, actionFilter) {
Function addRouteComponent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
function addRouteComponent(component, match, route, routeComponentKey, target) {
Function resolveActionSets
has 5 arguments (exceeds 4 allowed). Consider refactoring. Confirmed
Confirmed
export function resolveActionSets(routeComponents, dispatchActions, initParamFuncName, isLifecycleMethod, actionFilter) {
TODO found Confirmed
Confirmed
// TODO: Remove the need for any default parameters
- Exclude checks