stackdot/sketch-tool

View on GitHub

Showing 1 of 1 total issue

Function runCommand has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    runCommand( command, args = [], jsonOutput = false ){
        return new Promise((resolve, reject) => {
            debug('args', lodash.flatten([ command, args, this.file ]))
            const proc = spawn( this.bin, lodash.flatten([ command, args, this.file ]) )
            let data = ''
Severity: Minor
Found in app/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language