SergeiKiss/frontend-project-46

View on GitHub
src/formatters/plain.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function iter has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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];
Severity: Minor
Found in src/formatters/plain.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return acc;
    Severity: Major
    Found in src/formatters/plain.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status