Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPhutilLibraryLinter.php
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | public function willLintPaths(array $paths) { | ||||
// the working copy. | // the working copy. | ||||
$symbols = array(); | $symbols = array(); | ||||
foreach ($libraries as $library) { | foreach ($libraries as $library) { | ||||
$root = phutil_get_library_root($library); | $root = phutil_get_library_root($library); | ||||
try { | try { | ||||
$symbols[$library] = id(new PhutilLibraryMapBuilder($root)) | $symbols[$library] = (new PhutilLibraryMapBuilder($root)) | ||||
->buildFileSymbolMap(); | ->buildFileSymbolMap(); | ||||
} catch (XHPASTSyntaxErrorException $ex) { | } catch (XHPASTSyntaxErrorException $ex) { | ||||
// If the library contains a syntax error then there isn't much that we | // If the library contains a syntax error then there isn't much that we | ||||
// can do. | // can do. | ||||
continue; | continue; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0