Fix logic for Notifier.listeners_for

Add tests for proper logic around notifier
This commit is contained in:
Ian Cordasco 2015-12-29 23:28:20 -06:00
parent 222be9ac49
commit 37b92cd4b4
3 changed files with 34 additions and 23 deletions

View file

@ -77,6 +77,18 @@ See https://gitlab.com/pycqa/flake8/issues/84
.. note:: Will probably need a Trie implementation for this
What we *might* want is for a autofix plugin to register something like
::
'flake8.autofix_extension': [
'E1 = my_fixer.E1Listener',
'E2 = my_fixer.E2Listener',
]
This means that the notifer would need to take an error code like ``E111`` and
then notify anything listening for ``E111``, ``E11``, ``E1``, and ``E``.
.. _reporter-plugins:
Support for Plugins that Format Output