diff --git a/Jakefile.js b/Jakefile.js index 7cf6e67bb06..59d9b690210 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -741,7 +741,8 @@ function runConsoleTests(defaultReporter, defaultSubsets) { deleteTemporaryProjectOutput(); if (counter !== 0 || errorStatus === undefined) { - if (lintFlag) { + // run linter when last worker is finished + if (lintFlag && counter === 0) { var lint = jake.Task['lint']; lint.addListener('complete', function () { complete();