Page MenuHomePhabricator

D15810.id38084.diff
No OneTemporary

D15810.id38084.diff

diff --git a/src/lint/linter/ArcanistFlake8Linter.php b/src/lint/linter/ArcanistFlake8Linter.php
--- a/src/lint/linter/ArcanistFlake8Linter.php
+++ b/src/lint/linter/ArcanistFlake8Linter.php
@@ -91,12 +91,13 @@
} else {
// "E": PEP8 Error
// "F": PyFlakes Error
+ // or: Flake8 Extension Message
return ArcanistLintSeverity::SEVERITY_ERROR;
}
}
protected function getLintCodeFromLinterConfigurationKey($code) {
- if (!preg_match('/^(E|W|C|F)\d+$/', $code)) {
+ if (!preg_match('/^([A-Z])\d+$/', $code)) {
throw new Exception(
pht(
'Unrecognized lint message code "%s". Expected a valid flake8 '.

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 3:00 AM (19 h, 56 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6986134
Default Alt Text
D15810.id38084.diff (675 B)

Event Timeline