Showing 3 of 9 total issues
Function getAst
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getAst = (before, after) => {
const keys = _.union(Object.keys(before), Object.keys(after));
return keys.reduce((acc, item) => {
const beforeItem = before[item];
Avoid too many return
statements within this function. Open
Open
return [...acc, {
type: 'added',
key: item,
value: afterItem,
}];
Avoid too many return
statements within this function. Open
Open
return [...acc, {
type: 'deleted',
key: item,
value: beforeItem,
}];