akuimov/project-lvl2-s341

View on GitHub
src/ast.js

Summary

Maintainability
A
1 hr
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status