ivan-nor/frontend-project-lvl2

View on GitHub
src/formatters/recursive.js

Summary

Maintainability
A
1 hr
Test Coverage

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

const astToRecursive = (ast) => {
  const iter = (tree, depthIndent = 1) => {
    const nodes = tree.map(({
      name, type, nextValue, prevValue, children,
    }) => {
Severity: Minor
Found in src/formatters/recursive.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

              return `${indent}  ${name}: ${stringify(nextValue, depthIndent + 2)}`;
    Severity: Major
    Found in src/formatters/recursive.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status