Showing 2 of 2 total issues
Function getAST
has 27 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.map((key) => {
if (!_.has(before, key)) {
return {
Avoid too many return
statements within this function. Open
Open
return {
key, status: 'unchanged', value: after[key],
};