Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPEP8Linter.php
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | final class ArcanistPEP8Linter extends ArcanistExternalLinter { | ||||
| protected function getLintCodeFromLinterConfigurationKey($code) { | protected function getLintCodeFromLinterConfigurationKey($code) { | ||||
| if (!preg_match('/^(E|W)\d+$/', $code)) { | if (!preg_match('/^(E|W)\d+$/', $code)) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Unrecognized lint message code "%s". Expected a valid PEP8 '. | 'Unrecognized lint message code "%s". Expected a valid PEP8 '. | ||||
| 'lint code like "%s" or "%s".', | 'lint code like "%s" or "%s".', | ||||
| $code, | $code, | ||||
| "E101", | 'E101', | ||||
| "W291")); | 'W291')); | ||||
| } | } | ||||
| return $code; | return $code; | ||||
| } | } | ||||
| } | } | ||||