GKoil/frontend-project-lvl2

View on GitHub

Showing 2 of 2 total issues

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

const getAST = (before, after) => {
  const keys = _.union(Object.keys(before), Object.keys(after));
  return keys.map((key) => {
    if (!_.has(before, key)) {
      return {
Severity: Minor
Found in src/getAST.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

        return {
          key, status: 'unchanged', value: after[key],
        };
    Severity: Major
    Found in src/getAST.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language