Vadimusss/project-lvl2-s413

View on GitHub

Showing 2 of 14 total issues

Function makeJSONRender has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const makeJSONRender = (ast) => {
  const nodeList = iter(ast);
  const addedList = nodeList
    .filter(value => value.type === 'added')
    .reduce((acc, data) => {
Severity: Minor
Found in src/renderers/jsonRender.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return acc.concat({ type: 'unmodified', name: key, value: secondData[key] });
    Severity: Major
    Found in src/gendiff.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language