andreirk/project-lvl2-s341

View on GitHub

Showing 2 of 7 total issues

Function build has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const build = (data1, data2) => {
  const data = _.union(Object.keys(data1), Object.keys(data2));
  return data.map((key) => {
    if ((isObject(data1[key]) && isObject(data2[key]))) {
      return {
Severity: Minor
Found in src/lib/ast.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return {
            type: 'changed',
            key,
            valBefore: data1[key],
            valAfter: data2[key],
    Severity: Major
    Found in src/lib/ast.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language