Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistFutureLinter.php
Show All 9 Lines | abstract class ArcanistFutureLinter extends ArcanistLinter { | ||||
final protected function getFuturesLimit() { | final protected function getFuturesLimit() { | ||||
return 8; | return 8; | ||||
} | } | ||||
public function willLintPaths(array $paths) { | public function willLintPaths(array $paths) { | ||||
$limit = $this->getFuturesLimit(); | $limit = $this->getFuturesLimit(); | ||||
$this->futures = id(new FutureIterator(array()))->limit($limit); | $this->futures = id(new FutureIterator(array()))->limit($limit); | ||||
foreach ($this->buildFutures($paths) as $path => $future) { | foreach ($this->buildFutures($paths) as $path => $future) { | ||||
$this->futures->addFuture($future, $path); | $future->setFutureKey($path); | ||||
$this->futures->addFuture($future); | |||||
} | } | ||||
} | } | ||||
final public function lintPath($path) { | final public function lintPath($path) { | ||||
return; | return; | ||||
} | } | ||||
public function didLintPaths(array $paths) { | public function didLintPaths(array $paths) { | ||||
Show All 30 Lines |