UnnamedHero/project-lvl2-s201

View on GitHub

Showing 2 of 2 total issues

Function getDifferenceAst has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getDifferenceAst = (before, after) => {
  const keysUnion = _.union(_.keys(before), _.keys(after));
  const ast = keysUnion.map((key) => {
    const beforeValue = before[key];
    const afterValue = after[key];
Severity: Minor
Found in src/index.js - About 1 hr to fix

    Function ast has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const ast = keysUnion.map((key) => {
        const beforeValue = before[key];
        const afterValue = after[key];
        const isBothObjectsHaveKey = () => _.has(before, key) && _.has(after, key);
        const isBothValuesAreObjects = () =>
    Severity: Minor
    Found in src/index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language