lazycoder9/project-lvl2-s13

View on GitHub

Showing 2 of 13 total issues

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

const compareValues = (value1, value2) => {
  if (value1 === value2) {
    return {
      type: 'unchanged',
      data: value1,
Severity: Minor
Found in src/differ.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return {
        type: 'updated',
        data: [value2, value1],
      };
    Severity: Major
    Found in src/differ.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language