Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistCoffeeLintLinter.php
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | final class ArcanistCoffeeLintLinter extends ArcanistExternalLinter { | ||||
| } | } | ||||
| public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
| return pht( | return pht( | ||||
| 'Install CoffeeLint using `%s`.', | 'Install CoffeeLint using `%s`.', | ||||
| 'npm install -g coffeelint'); | 'npm install -g coffeelint'); | ||||
| } | } | ||||
| public function supportsReadDataFromStdin() { | |||||
| return true; | |||||
| } | |||||
| public function getReadDataFromStdinFilename() { | |||||
| return '--stdin'; | |||||
| } | |||||
| protected function getMandatoryFlags() { | protected function getMandatoryFlags() { | ||||
| $options = array( | $options = array( | ||||
| '--reporter=raw', | '--reporter=raw', | ||||
| ); | ); | ||||
| if ($this->config) { | if ($this->config) { | ||||
| $options[] = '--file='.$this->config; | $options[] = '--file='.$this->config; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||