Changeset View
Changeset View
Standalone View
Standalone View
src/lint/engine/ArcanistLintEngine.php
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | if (!$have_paths) { | ||||
throw new ArcanistNoEffectException(pht('No paths are lintable.')); | throw new ArcanistNoEffectException(pht('No paths are lintable.')); | ||||
} | } | ||||
$versions = array($this->getCacheVersion()); | $versions = array($this->getCacheVersion()); | ||||
foreach ($linters as $linter) { | foreach ($linters as $linter) { | ||||
$version = get_class($linter).':'.$linter->getCacheVersion(); | $version = get_class($linter).':'.$linter->getCacheVersion(); | ||||
$symbols = id(new PhutilSymbolLoader()) | $symbols = (new PhutilSymbolLoader()) | ||||
->setType('class') | ->setType('class') | ||||
->setName(get_class($linter)) | ->setName(get_class($linter)) | ||||
->selectSymbolsWithoutLoading(); | ->selectSymbolsWithoutLoading(); | ||||
$symbol = idx($symbols, 'class$'.get_class($linter)); | $symbol = idx($symbols, 'class$'.get_class($linter)); | ||||
if ($symbol) { | if ($symbol) { | ||||
$version .= ':'.md5_file( | $version .= ':'.md5_file( | ||||
phutil_get_library_root($symbol['library']).'/'.$symbol['where']); | phutil_get_library_root($symbol['library']).'/'.$symbol['where']); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 423 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