msherry / flycheck-pycheckers

Multiple syntax checker for Python in Emacs, using Flycheck
GNU General Public License v3.0
63 stars 23 forks source link

Missing error code for flake8 plugins #43

Closed lbolla closed 4 years ago

lbolla commented 4 years ago

When using flake8 plugins, the parsing of error codes is lacking: https://github.com/msherry/flycheck-pycheckers/blob/680ed9bc1bfb6dc043294b705f5b6d87ca5a1700/bin/pycheckers.py#L538

E.g. flake8-unused-arguments uses code "U", which is missing from the regex.

Given that plugins are free to use whatever codes they want, I wonder if we should accept any letter as "error_type".

lbolla commented 4 years ago

Basically, I am proposing to change the above line to:

        '(?P<error_type>[A-Z])(?P<error_number>[^ ]+) '