Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15385321
D15810.id38085.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
673 B
Referenced Files
None
Subscribers
None
D15810.id38085.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 10:15 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7679264
Default Alt Text
D15810.id38085.diff (673 B)
Attached To
Mode
D15810: Recognize error codes from Flake8 extensions
Attached
Detach File
Event Timeline
Log In to Comment