mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
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
This commit is contained in:
parent
4a1b8a3299
commit
3d5aa332fe
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue