run linter once after last worker is finished in case if there are no errors

This commit is contained in:
Vladimir Matveev 2016-05-25 09:42:59 -07:00
parent 5b4e964ae8
commit c4b517ce45

View file

@ -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();