diff --git a/src/lint/linter/__tests__/ArcanistLinterTestCase.php b/src/lint/linter/__tests__/ArcanistLinterTestCase.php index 3c500b3a..2d273eb0 100644 --- a/src/lint/linter/__tests__/ArcanistLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistLinterTestCase.php @@ -8,7 +8,12 @@ abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase { public function executeTestsInDirectory($root, ArcanistLinter $linter) { - foreach (Filesystem::listDirectory($root, $hidden = false) as $file) { + $files = id(new FileFinder($root)) + ->withType('f') + ->withSuffix('lint-test') + ->find(); + + foreach ($files as $file) { $this->lintFile($root.$file, $linter); } }