Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14639549
D15810.id38084.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
675 B
Referenced Files
None
Subscribers
None
D15810.id38084.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
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)
Attached To
Mode
D15810: Recognize error codes from Flake8 extensions
Attached
Detach File
Event Timeline
Log In to Comment