trailsjs/smokesignals

View on GitHub
lib/ecosystem.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function checkNodeSecurity has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  checkNodeSecurity (repos) {
    return new Promise((resolve, reject) => {
      const proc = spawn(npm, [ 'install', '-g', 'nsp', '--force' ], {
        stdio: [
          'ignore',
Severity: Minor
Found in lib/ecosystem.js - About 1 hr to fix

    Function npmInstallTrailpacks has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      npmInstallTrailpacks (repos) {
        return Promise.all(repos.map(repo => {
          const wd = path.resolve(process.cwd(), repo.name)
          return new Promise((resolve, reject) => {
            console.log('>> npm install', repo.name)
    Severity: Minor
    Found in lib/ecosystem.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status