Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPhpLinter.php
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | final class ArcanistPhpLinter extends ArcanistExternalLinter { | ||||
| public function getVersion() { | public function getVersion() { | ||||
| list($stdout) = execx( | list($stdout) = execx( | ||||
| '%C --run %s', | '%C --run %s', | ||||
| $this->getExecutableCommand(), | $this->getExecutableCommand(), | ||||
| 'echo phpversion();'); | 'echo phpversion();'); | ||||
| return $stdout; | return $stdout; | ||||
| } | } | ||||
| public function supportsReadDataFromStdin() { | |||||
| return false; | |||||
| } | |||||
| protected function canCustomizeLintSeverities() { | protected function canCustomizeLintSeverities() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| protected function parseLinterOutput($path, $err, $stdout, $stderr) { | protected function parseLinterOutput($path, $err, $stdout, $stderr) { | ||||
| // Older versions of PHP had both on stdout, newer ones split it. | // Older versions of PHP had both on stdout, newer ones split it. | ||||
| // Combine stdout and stderr for consistency. | // Combine stdout and stderr for consistency. | ||||
| $stdout = $stderr."\n".$stdout; | $stdout = $stderr."\n".$stdout; | ||||
| Show All 36 Lines | |||||