From: Joshua Spence Date: Sat, 10 May 2014 08:50:43 +0000 (-0700) Subject: PHPCS supports reading from stdin. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3d5aa332fe6d41f5cd90185438974978362f46db;p=arcanist.git PHPCS supports reading from stdin. 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 --- diff --git a/src/lint/linter/ArcanistPhpcsLinter.php b/src/lint/linter/ArcanistPhpcsLinter.php index e1fa3d9d..2b94bb63 100644 --- a/src/lint/linter/ArcanistPhpcsLinter.php +++ b/src/lint/linter/ArcanistPhpcsLinter.php @@ -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