Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLintersWorkflow.php
Show All 40 Lines | return array( | ||||
), | ), | ||||
'*' => 'exact', | '*' => 'exact', | ||||
); | ); | ||||
} | } | ||||
public function run() { | public function run() { | ||||
$console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
$linters = id(new PhutilClassMapQuery()) | $linters = (new PhutilClassMapQuery()) | ||||
->setAncestorClass('ArcanistLinter') | ->setAncestorClass('ArcanistLinter') | ||||
->execute(); | ->execute(); | ||||
try { | try { | ||||
$built = $this->newLintEngine()->buildLinters(); | $built = $this->newLintEngine()->buildLinters(); | ||||
} catch (ArcanistNoEngineException $ex) { | } catch (ArcanistNoEngineException $ex) { | ||||
$built = array(); | $built = array(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 249 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