]> khamidou — GitHub mirrors - arcanist.git/commitdiff
PHPCS supports reading from stdin.
authorJoshua Spence <josh@joshuaspence.com>
Sat, 10 May 2014 08:50:43 +0000 (01:50 -0700)
committerepriestley <git@epriestley.com>
Sat, 10 May 2014 08:50:43 +0000 (01:50 -0700)
Summary: PHPCS does actually support reading data from stdin, so let's make `ArcanistExternalLinter` aware of this.

Test Plan: `arc unit`.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9034

src/lint/linter/ArcanistPhpcsLinter.php

index e1fa3d9d6f73695d70d370f20d893d359a1ba769..2b94bb638f711b8b59bc0159d82c9eb5d4bfa694 100644 (file)
@@ -74,6 +74,10 @@ final class ArcanistPhpcsLinter extends ArcanistExternalLinter {
     return true;
   }
 
+  public function supportsReadDataFromStdin() {
+    return true;
+  }
+
   protected function parseLinterOutput($path, $err, $stdout, $stderr) {
     // NOTE: Some version of PHPCS after 1.4.6 stopped printing a valid, empty
     // XML document to stdout in the case of no errors. If PHPCS exits with