Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistCSharpLinter.php
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | if (count($current_paths) > 0) { | ||||
base64_encode(json_encode($this->discoveryMap)), | base64_encode(json_encode($this->discoveryMap)), | ||||
$current_paths); | $current_paths); | ||||
$current_paths = array(); | $current_paths = array(); | ||||
} | } | ||||
$this->futures = $futures; | $this->futures = $futures; | ||||
} | } | ||||
public function didRunLinters() { | public function didLintPaths(array $paths) { | ||||
if ($this->futures) { | if ($this->futures) { | ||||
$futures = id(new FutureIterator($this->futures)) | $futures = id(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(); | |||||
} | } | ||||
} | } | ||||
protected function resolveFuture(Future $future) { | protected function resolveFuture(Future $future) { | ||||
list($stdout) = $future->resolvex(); | list($stdout) = $future->resolvex(); | ||||
$all_results = json_decode($stdout); | $all_results = json_decode($stdout); | ||||
foreach ($all_results as $results) { | foreach ($all_results as $results) { | ||||
if ($results === null || $results->Issues === null) { | if ($results === null || $results->Issues === null) { | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |