1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +01:00

Don't build unused linters for the ArcanistConfigurationDrivenLintEngine

Summary: Fixes T5124.

Test Plan: `arc lint` on a Phabricator diff that doesn't have JS files doesn't complain on missing JSHint.

Reviewers: #blessed_reviewers, joshuaspence, epriestley

Reviewed By: joshuaspence

Subscribers: epriestley, Korvin

Maniphest Tasks: T5124

Differential Revision: https://secure.phabricator.com/D9843
This commit is contained in:
Aviv Eyal 2014-07-09 15:33:58 -07:00 committed by epriestley
parent 8975e3a424
commit dfdaed0b27

View file

@ -121,11 +121,11 @@ final class ArcanistConfigurationDrivenLintEngine extends ArcanistLintEngine {
count($paths), count($paths),
$name); $name);
if ($paths) {
$linter->setPaths($paths); $linter->setPaths($paths);
$built_linters[] = $linter; $built_linters[] = $linter;
} }
}
return $built_linters; return $built_linters;
} }