run linter once after last worker is finished in case if there are no errors
This commit is contained in:
parent
5b4e964ae8
commit
c4b517ce45
|
@ -741,7 +741,8 @@ function runConsoleTests(defaultReporter, defaultSubsets) {
|
||||||
|
|
||||||
deleteTemporaryProjectOutput();
|
deleteTemporaryProjectOutput();
|
||||||
if (counter !== 0 || errorStatus === undefined) {
|
if (counter !== 0 || errorStatus === undefined) {
|
||||||
if (lintFlag) {
|
// run linter when last worker is finished
|
||||||
|
if (lintFlag && counter === 0) {
|
||||||
var lint = jake.Task['lint'];
|
var lint = jake.Task['lint'];
|
||||||
lint.addListener('complete', function () {
|
lint.addListener('complete', function () {
|
||||||
complete();
|
complete();
|
||||||
|
|
Loading…
Reference in a new issue