Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15344810
D9864.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9864.diff
View Options
diff --git a/src/lint/linter/ArcanistPhutilLibraryLinter.php b/src/lint/linter/ArcanistPhutilLibraryLinter.php
--- a/src/lint/linter/ArcanistPhutilLibraryLinter.php
+++ b/src/lint/linter/ArcanistPhutilLibraryLinter.php
@@ -30,9 +30,9 @@
public function getLintNameMap() {
return array(
- self::LINT_UNKNOWN_SYMBOL => 'Unknown Symbol',
- self::LINT_DUPLICATE_SYMBOL => 'Duplicate Symbol',
- self::LINT_ONE_CLASS_PER_FILE => 'One Class Per File',
+ self::LINT_UNKNOWN_SYMBOL => pht('Unknown Symbol'),
+ self::LINT_DUPLICATE_SYMBOL => pht('Duplicate Symbol'),
+ self::LINT_ONE_CLASS_PER_FILE => pht('One Class Per File'),
);
}
@@ -57,18 +57,10 @@
// itself. This means lint results will accurately reflect the state of
// the working copy.
- $root = dirname(phutil_get_library_root('phutil'));
- $bin = $root.'/scripts/phutil_rebuild_map.php';
-
$symbols = array();
foreach ($libs as $lib) {
- // Do these one at a time since they individually fanout to saturate
- // available system resources.
- $future = new ExecFuture(
- 'php %s --show --quiet --ugly -- %s',
- $bin,
- phutil_get_library_root($lib));
- $symbols[$lib] = $future->resolveJSON();
+ $root = phutil_get_library_root($lib);
+ $symbols[$lib] = id(new PhutilLibraryMapBuilder($root))->buildMap();
}
$all_symbols = array();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 6:49 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7506597
Default Alt Text
D9864.diff (1 KB)
Attached To
Mode
D9864: Minor change to `ArcanistPhutilLibraryLinter`
Attached
Detach File
Event Timeline
Log In to Comment