Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPEP8Linter.php
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | public function getVersion() { | ||||
| if (preg_match('/^(?P<version>\d+\.\d+(?:\.\d+)?)\b/', $stdout, $matches)) { | if (preg_match('/^(?P<version>\d+\.\d+(?:\.\d+)?)\b/', $stdout, $matches)) { | ||||
| return $matches['version']; | return $matches['version']; | ||||
| } else { | } else { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
| return pht('Install PEP8 using `easy_install pep8`.'); | return pht('Install PEP8 using `%s`.', 'easy_install pep8'); | ||||
| } | } | ||||
| 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 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||