Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLintersWorkflow.php
Show All 30 Lines | return array( | ||||
'help' => pht('Show detailed information, including options.'), | 'help' => pht('Show detailed information, including options.'), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function run() { | public function run() { | ||||
$console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
$linters = id(new PhutilSymbolLoader()) | $linters = id(new PhutilClassMapQuery()) | ||||
->setAncestorClass('ArcanistLinter') | ->setAncestorClass('ArcanistLinter') | ||||
->loadObjects(); | ->execute(); | ||||
try { | try { | ||||
$built = $this->newLintEngine()->buildLinters(); | $built = $this->newLintEngine()->buildLinters(); | ||||
} catch (ArcanistNoEngineException $ex) { | } catch (ArcanistNoEngineException $ex) { | ||||
$built = array(); | $built = array(); | ||||
} | } | ||||
// Note that an engine can emit multiple linters of the same class to run | // Note that an engine can emit multiple linters of the same class to run | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |