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
count($paths),
$name);
- $linter->setPaths($paths);
-
-
- $built_linters[] = $linter;
+ if ($paths) {
+ $linter->setPaths($paths);
+ $built_linters[] = $linter;
+ }
}
return $built_linters;