jmeas/redux-simple-resource

View on GitHub

Showing 2 of 2 total issues

Function createResource has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createResource(resourceName, options = {}) {
  const {initialState = {}, idAttribute, actionReducers, pluralForm, supportedActions} = options;
  const defaultInitialState = generateDefaultInitialState();
  const initial = {
    ...defaultInitialState,
Severity: Minor
Found in src/index.js - About 1 hr to fix

    Function readManySucceed has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function readManySucceed(idAttribute, state, action) {
      const resources = action.resources;
      const ids = resources.map(r => r[idAttribute]);
      const replace = typeof action.replace !== 'undefined' ? action.replace : true;
    
    
    Severity: Minor
    Found in src/default-reducers/read-many.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language