Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPyFlakesLinter.php
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | public function getVersion() { | ||||
| if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) { | if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) { | ||||
| return $matches['version']; | return $matches['version']; | ||||
| } else { | } else { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
| return pht('Install pyflakes with `pip install pyflakes`.'); | return pht('Install pyflakes with `%s`.', 'pip install pyflakes'); | ||||
| } | } | ||||
| 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; | ||||
| Show All 37 Lines | |||||