MrFSP/backend-project-lvl2

View on GitHub
src/formatters/plain.js

Summary

Maintainability
A
1 hr
Test Coverage
A
94%

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

const getRendering = (data, ancestry = '') => data.map((item) => {
  const {
    key, type, children, newValue, oldValue,
  } = item;
  const currentKey = ancestry === '' ? key : `${ancestry}.${key}`;
Severity: Minor
Found in src/formatters/plain.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return `Property '${currentKey}' was not changed`;
    Severity: Major
    Found in src/formatters/plain.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status