1
0
Fork 0

fix: limit error count

This commit is contained in:
ssube 2019-06-15 18:37:07 -05:00
parent b0df1e003c
commit b1ba817e74
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ export async function main(argv: Array<string>): Promise<number> {
if (errors > 0) {
logger.error({ errors }, 'some rules failed');
if (args.argv.count) {
return errors;
return Math.min(errors, 255);
} else {
return STATUS_ERROR;
}