mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42: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:
parent
8975e3a424
commit
dfdaed0b27
1 changed files with 4 additions and 4 deletions
|
@ -121,10 +121,10 @@ final class ArcanistConfigurationDrivenLintEngine extends ArcanistLintEngine {
|
||||||
count($paths),
|
count($paths),
|
||||||
$name);
|
$name);
|
||||||
|
|
||||||
$linter->setPaths($paths);
|
if ($paths) {
|
||||||
|
$linter->setPaths($paths);
|
||||||
|
$built_linters[] = $linter;
|
||||||
$built_linters[] = $linter;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $built_linters;
|
return $built_linters;
|
||||||
|
|
Loading…
Reference in a new issue