tunnckoCore/npm-related

View on GitHub
cli.js

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
Open

if (Array.isArray(cli._) && !cli._.length) {
  var pkg = require('load-pkg').sync(process.cwd())
  var prop = cli.configProp || cli.prop || 'metadata.related'
  cli._ = get(pkg, prop) || get(pkg, 'related') || get(pkg, 'verb.related.list')
  if (!cli._ || (Array.isArray(cli._) && !cli._.length)) {
Severity: Major
Found in cli.js - About 40 mins to fix

There are no issues that match your filters.

Category
Status