Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistJSONLintLinter.php
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
| return pht('Install jsonlint using `npm install -g jsonlint`.'); | return pht('Install jsonlint using `npm install -g jsonlint`.'); | ||||
| } | } | ||||
| public function supportsReadDataFromStdin() { | |||||
| return true; | |||||
| } | |||||
| protected function getMandatoryFlags() { | protected function getMandatoryFlags() { | ||||
| return array( | return array( | ||||
| '--compact', | '--compact', | ||||
| ); | ); | ||||
| } | } | ||||
| protected function parseLinterOutput($path, $err, $stdout, $stderr) { | protected function parseLinterOutput($path, $err, $stdout, $stderr) { | ||||
| $lines = phutil_split_lines($stderr, false); | $lines = phutil_split_lines($stderr, false); | ||||
| Show All 32 Lines | |||||