elen-oz/frontend-project-46

View on GitHub

Showing 2 of 2 total issues

Function getDifference has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getDifference = (object1, object2) => {
  const keys1 = _.keys(object1);
  const keys2 = _.keys(object2);
  const sortedKeys = _.sortBy(_.union(keys1, keys2));

Severity: Minor
Found in src/getDifference.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

        return {
          key,
          type: 'changed',
          val1: value1,
          val2: value2,
    Severity: Major
    Found in src/getDifference.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language