]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Set limit for execution in C# linter
authorJames Rhodes <jrhodes@redpointsoftware.com.au>
Tue, 19 Nov 2013 21:36:27 +0000 (13:36 -0800)
committerepriestley <git@epriestley.com>
Tue, 19 Nov 2013 21:36:27 +0000 (13:36 -0800)
Summary: This sets the limit for future execution in the C# linter to 8.  See D7606 for more information.

Test Plan:
Ran

```
arc lint --everything --trace --never-apply-patches --output json
```

and saw it only run 8 commands at once.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran
Differential Revision: https://secure.phabricator.com/D7607

src/lint/linter/ArcanistCSharpLinter.php

index 141365c8ed0d36abe6b13611d71d73aa106261a4..81d1f3606866586950c42b66de6a789734c9c2c4 100644 (file)
@@ -184,7 +184,7 @@ final class ArcanistCSharpLinter extends ArcanistLinter {
 
   public function didRunLinters() {
     if ($this->futures) {
-      foreach (Futures($this->futures) as $future) {
+      foreach (Futures($this->futures)->limit(8) as $future) {
         $this->resolveFuture($future);
       }
     }