Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15485489
D7910.id17908.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
691 B
Referenced Files
None
Subscribers
None
D7910.id17908.diff
View Options
Index: src/lint/linter/__tests__/ArcanistLinterTestCase.php
===================================================================
--- src/lint/linter/__tests__/ArcanistLinterTestCase.php
+++ 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);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 11, 12:07 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7441356
Default Alt Text
D7910.id17908.diff (691 B)
Attached To
Mode
D7910: Allow `ArcanistLinterTestCase` to find "lint-test" files at an arbitrary depth
Attached
Detach File
Event Timeline
Log In to Comment