Skip to content

Commit db4cc98

Browse files
committed
Merge pull request microsoft#5874 from weswigham/lint-all-things
lint all files before reporting a failure
2 parents 7d920c2 + 592d41c commit db4cc98

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Jakefile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,13 +926,17 @@ var lintTargets = compilerSources
926926
desc("Runs tslint on the compiler sources");
927927
task("lint", ["build-rules"], function() {
928928
var lintOptions = getLinterOptions();
929+
var failed = 0;
929930
for (var i in lintTargets) {
930931
var result = lintFile(lintOptions, lintTargets[i]);
931932
if (result.failureCount > 0) {
932933
console.log(result.output);
933-
fail('Linter errors.', result.failureCount);
934+
failed += result.failureCount;
934935
}
935936
}
937+
if (failed > 0) {
938+
fail('Linter errors.', failed);
939+
}
936940
});
937941

938942
/**

0 commit comments

Comments
 (0)