Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLesscLinter.php
| Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | if (preg_match($regex, $stdout, $matches)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
| return pht('Install lessc using `npm install -g less`.'); | return pht('Install lessc using `npm install -g less`.'); | ||||
| } | } | ||||
| public function supportsReadDataFromStdin() { | |||||
| // Technically `lessc` can read data from standard input however, when doing | |||||
| // so, relative imports cannot be resolved. Therefore, this functionality is | |||||
| // disabled. | |||||
| return false; | |||||
| } | |||||
| public function getReadDataFromStdinFilename() { | |||||
| return '-'; | |||||
| } | |||||
| protected function getMandatoryFlags() { | protected function getMandatoryFlags() { | ||||
| return array( | return array( | ||||
| '--lint', | '--lint', | ||||
| '--no-color', | '--no-color', | ||||
| '--strict-math='.($this->strictMath ? 'on' : 'off'), | '--strict-math='.($this->strictMath ? 'on' : 'off'), | ||||
| '--strict-units='.($this->strictUnits ? 'on' : 'off'), | '--strict-units='.($this->strictUnits ? 'on' : 'off'), | ||||
| ); | ); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||