MrFSP/backend-project-lvl2

View on GitHub
src/formatters/simple.js

Summary

Maintainability
A
1 hr
Test Coverage
A
95%

Function getRendering has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getRendering = (data, lvl = 0) => data.map((item) => {
  const currentLvl = lvl + 2;
  const {
    type, key, newValue, oldValue, children,
  } = item;
Severity: Minor
Found in src/formatters/simple.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return `${oldItem}\n${newItem}`;
    Severity: Major
    Found in src/formatters/simple.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status