brentburgoyne/only-nested

View on GitHub

Showing 2 of 2 total issues

Function only has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function only(whitelist, obj) {
  if (arguments.length === 1) {
    return only.bind(null, whitelist)
  }

Severity: Minor
Found in index.js - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

              if (val.length > 0) {
                ret[key] = val
              }
    Severity: Major
    Found in index.js - About 45 mins to fix
      Severity
      Category
      Status
      Source
      Language