Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistJSHintLinter.php
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | if (preg_match($regex, $stderr, $matches)) { | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
return pht('Install JSHint using `npm install -g jshint`.'); | return pht('Install JSHint using `npm install -g jshint`.'); | ||||
} | } | ||||
public function supportsReadDataFromStdin() { | |||||
return true; | |||||
} | |||||
public function getReadDataFromStdinFilename() { | |||||
return '-'; | |||||
} | |||||
protected function getMandatoryFlags() { | protected function getMandatoryFlags() { | ||||
$options = array(); | $options = array(); | ||||
$options[] = '--reporter='.dirname(realpath(__FILE__)).'/reporter.js'; | $options[] = '--reporter='.dirname(realpath(__FILE__)).'/reporter.js'; | ||||
if ($this->jshintrc) { | if ($this->jshintrc) { | ||||
$options[] = '--config='.$this->jshintrc; | $options[] = '--config='.$this->jshintrc; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |