Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPyFlakesLinter.php
| Show First 20 Lines • Show All 47 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 pyflakes with `pip install pyflakes`.'); | return pht('Install pyflakes with `pip install pyflakes`.'); | ||||
| } | } | ||||
| public function supportsReadDataFromStdin() { | |||||
| return true; | |||||
| } | |||||
| protected function parseLinterOutput($path, $err, $stdout, $stderr) { | protected function parseLinterOutput($path, $err, $stdout, $stderr) { | ||||
| $lines = phutil_split_lines($stdout, false); | $lines = phutil_split_lines($stdout, false); | ||||
| $messages = array(); | $messages = array(); | ||||
| foreach ($lines as $line) { | foreach ($lines as $line) { | ||||
| $matches = null; | $matches = null; | ||||
| if (!preg_match('/^(.*?):(\d+): (.*)$/', $line, $matches)) { | if (!preg_match('/^(.*?):(\d+): (.*)$/', $line, $matches)) { | ||||
| continue; | continue; | ||||
| Show All 35 Lines | |||||