Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistClosureLinter.php
| Show All 27 Lines | final class ArcanistClosureLinter extends ArcanistExternalLinter { | ||||
| public function getDefaultBinary() { | public function getDefaultBinary() { | ||||
| return 'gjslint'; | return 'gjslint'; | ||||
| } | } | ||||
| public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
| return pht( | return pht( | ||||
| 'Install %s using `%s`.', | 'Install %s using `%s`.', | ||||
| 'gjslint', | 'gjslint', | ||||
| 'sudo easy_install http://closure-linter.googlecode.com/'. | 'pip install closure-linter'. | ||||
| 'files/closure_linter-latest.tar.gz'); | 'files/closure_linter-latest.tar.gz'); | ||||
| } | } | ||||
| protected function parseLinterOutput($path, $err, $stdout, $stderr) { | protected function parseLinterOutput($path, $err, $stdout, $stderr) { | ||||
| $lines = phutil_split_lines($stdout, false); | $lines = phutil_split_lines($stdout, false); | ||||
| $messages = array(); | $messages = array(); | ||||
| foreach ($lines as $line) { | foreach ($lines as $line) { | ||||
| Show All 19 Lines | |||||