brentburgoyne/only-nested

View on GitHub
index.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status