CleverStack/cleverstack-cli

View on GitHub
lib/install.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function installBackendModules has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function installBackendModules(backendPath, npm) {
  return new Promise(function(resolve, reject) {
    npm = npm.map(function(n) {
      return n.name;
    });
Severity: Major
Found in lib/install.js - About 2 hrs to fix

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

    function install(repos) {
      return new Promise(function(resolve, reject) {
        util.locations
          .findAvailableCommands()
          .spread(function(locations) {
    Severity: Minor
    Found in lib/install.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status