Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistHLintLinter.php
| Show All 27 Lines | final class ArcanistHLintLinter extends ArcanistExternalLinter { | ||||
| public function getDefaultBinary() { | public function getDefaultBinary() { | ||||
| return 'hlint'; | return 'hlint'; | ||||
| } | } | ||||
| public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
| return pht('Install hlint with `cabal install hlint`.'); | return pht('Install hlint with `cabal install hlint`.'); | ||||
| } | } | ||||
| public function supportsReadDataFromStdin() { | |||||
| return true; | |||||
| } | |||||
| public function getReadDataFromStdinFilename() { | |||||
| return '-'; | |||||
| } | |||||
| protected function getMandatoryFlags() { | protected function getMandatoryFlags() { | ||||
| return array('--json'); | return array('--json'); | ||||
| } | } | ||||
| public function getVersion() { | public function getVersion() { | ||||
| list($stdout, $stderr) = execx( | list($stdout, $stderr) = execx( | ||||
| '%C --version', $this->getExecutableCommand()); | '%C --version', $this->getExecutableCommand()); | ||||
| ▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines | |||||