Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistRubyLinter.php
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | if (preg_match($regex, $stdout, $matches)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
| return pht('Install `ruby` from <http://www.ruby-lang.org/>.'); | return pht('Install `ruby` from <http://www.ruby-lang.org/>.'); | ||||
| } | } | ||||
| public function supportsReadDataFromStdin() { | |||||
| return true; | |||||
| } | |||||
| protected function getMandatoryFlags() { | protected function getMandatoryFlags() { | ||||
| // -w: turn on warnings | // -w: turn on warnings | ||||
| // -c: check syntax | // -c: check syntax | ||||
| return array('-w', '-c'); | return array('-w', '-c'); | ||||
| } | } | ||||
| 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 34 Lines | |||||