Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log(
' %s:%d:%d: %s%s',
result.filePath, message.line || 0, message.column || 0, message.message,
Args.value('verbose') ? ' (' + message.ruleId + ')' : ''
)
})
})
process.exitCode = result.errorCount ? 1 : 0
}
}
if (scanFile) {
standard.lintText(fs.readFileSync(scanpath).toString(), opts, output)
} else {
standard.lintFiles(scanpath, opts, output)
}
const lint = done => {
const comb = new Comb(require('./.csscomb.json'))
comb.processPath(config.src)
const cwd = path.join(__dirname, config.src)
standard.lintFiles(config.paths.scripts, { cwd, fix: true }, done)
}
function lintFiles (log, cb) {
log.text = 'Linting...'
const files = [join(packageFolder, '*.js'), join(apiOutputFolder, '*.js')]
standard.lintFiles(files, { fix: true }, err => {
if (err) {
return log.fail(err.message)
}
cb()
})
}
}