Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLintWorkflow.php
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | public function run() { | ||||
$this->shouldLintAll = $paths ? true : false; | $this->shouldLintAll = $paths ? true : false; | ||||
if ($this->getArgument('lintall')) { | if ($this->getArgument('lintall')) { | ||||
$this->shouldLintAll = true; | $this->shouldLintAll = true; | ||||
} else if ($this->getArgument('only-changed')) { | } else if ($this->getArgument('only-changed')) { | ||||
$this->shouldLintAll = false; | $this->shouldLintAll = false; | ||||
} | } | ||||
if ($everything) { | if ($everything) { | ||||
$paths = iterator_to_array($this->getRepositoryApi()->getAllFiles()); | $paths = iterator_to_array($this->getRepositoryAPI()->getAllFiles()); | ||||
$this->shouldLintAll = true; | $this->shouldLintAll = true; | ||||
} else { | } else { | ||||
$paths = $this->selectPathsForWorkflow($paths, $rev); | $paths = $this->selectPathsForWorkflow($paths, $rev); | ||||
} | } | ||||
$this->engine = $engine; | $this->engine = $engine; | ||||
$engine->setMinimumSeverity( | $engine->setMinimumSeverity( | ||||
▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines |