src/formatters/plain.js
Function iter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const iter = (tree, currentPath) => {
const keys = Object.keys(tree);
const result = keys.reduce((acc, key, index) => {
const splitedKey = key.split(' ');
const sign = splitedKey[0];
Avoid too many return
statements within this function. Open
Open
return acc;