HomePhabricator

Recognize error codes from Flake8 extensions

Description

Recognize error codes from Flake8 extensions

Summary:
Flake8 extensions are allowed to use their own letter-prefixed codes. For
example, the flake8-debugger extension emits 'T002'-tagged messages.

This change relaxes getLintCodeFromLinterConfigurationKey() to also recognize
extension codes. Otherwise, attempting to configure message severities for
e.g. 'T002' would result in an exception.

Messages from extensions continue to default to ERROR severity, as they did
before this change.

Test Plan:
Successfully reduced the severity of 'T002' to a warning via .arclint:

"severity": {
    "T002": "warning"
}

Reviewers: Blessed Reviewers, epriestley

Reviewed By: Blessed Reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15810

Details

Provenance
jpariseAuthored on Apr 27 2016, 8:48 PM
jparisePushed on Apr 27 2016, 10:11 PM
Reviewer
Blessed Reviewers
Differential Revision
D15810: Recognize error codes from Flake8 extensions
Parents
rARCa2ab38df78a9: Improve performance of `arc branch` in Git with many branches
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11960
Build 15039: Run Core Tests