src/formatters/plain.js
Function getRendering
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getRendering = (data, ancestry = '') => data.map((item) => {
const {
key, type, children, newValue, oldValue,
} = item;
const currentKey = ancestry === '' ? key : `${ancestry}.${key}`;
Avoid too many return
statements within this function. Open
Open
return `Property '${currentKey}' was not changed`;