Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistCSharpLinter.php
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | if (count($current_paths) > 0) { | ||||
$current_paths = array(); | $current_paths = array(); | ||||
} | } | ||||
$this->futures = $futures; | $this->futures = $futures; | ||||
} | } | ||||
public function didLintPaths(array $paths) { | public function didLintPaths(array $paths) { | ||||
if ($this->futures) { | if ($this->futures) { | ||||
$futures = id(new FutureIterator($this->futures)) | $futures = (new FutureIterator($this->futures)) | ||||
->limit(8); | ->limit(8); | ||||
foreach ($futures as $future) { | foreach ($futures as $future) { | ||||
$this->resolveFuture($future); | $this->resolveFuture($future); | ||||
} | } | ||||
$this->futures = array(); | $this->futures = array(); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 54 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