From 3d5aa332fe6d41f5cd90185438974978362f46db Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sat, 10 May 2014 01:50:43 -0700 Subject: [PATCH] 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 --- src/lint/linter/ArcanistPhpcsLinter.php | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.43.0