From c4b517ce450b72ee3bfcbe67dd46740079f689fe Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Wed, 25 May 2016 09:42:59 -0700 Subject: [PATCH] run linter once after last worker is finished in case if there are no errors --- Jakefile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();