akuimov/project-lvl2-s341

View on GitHub

Showing 2 of 7 total issues

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

const getAST = (object1, object2) => {
  const unionObj = _.union(Object.keys(object1), Object.keys(object2));

  return unionObj.map((key) => {
    const value1 = object1[key];
Severity: Minor
Found in src/ast.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

        return {
          key, type: 'added', value: value2,
        };
    Severity: Major
    Found in src/ast.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language