CleverStack/cleverstack-cli

View on GitHub
lib/util/dependencies.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function installPeerModules has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function installPeerModules(project, dependencies, projectDir) {
  var originalCwd = process.cwd();

  return new Promise(function(resolve, reject) {
    projectDir    = typeof projectDir !== 'undefined' ? projectDir : project;
Severity: Minor
Found in lib/util/dependencies.js - About 1 hr to fix

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

    function addPeerDependenciesToMain(backendPath) {
      return new Promise(function(resolve, reject) {
        var pkgPath      = path.join(backendPath.moduleDir, 'package.json')
          , projectPkg   = require(pkgPath)
          , dependencies = {}
    Severity: Minor
    Found in lib/util/dependencies.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status