Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistScriptAndRegexLinter.php
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | public function willLintPaths(array $paths) { | ||||
$futures = array(); | $futures = array(); | ||||
foreach ($paths as $path) { | foreach ($paths as $path) { | ||||
$future = new ExecFuture('%C %s', $this->script, $path); | $future = new ExecFuture('%C %s', $this->script, $path); | ||||
$future->setCWD($root); | $future->setCWD($root); | ||||
$futures[$path] = $future; | $futures[$path] = $future; | ||||
} | } | ||||
$futures = id(new FutureIterator($futures)) | $futures = (new FutureIterator($futures)) | ||||
->limit(4); | ->limit(4); | ||||
foreach ($futures as $path => $future) { | foreach ($futures as $path => $future) { | ||||
list($stdout) = $future->resolvex(); | list($stdout) = $future->resolvex(); | ||||
$this->output[$path] = $stdout; | $this->output[$path] = $stdout; | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 192 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