third_party.pylibs.pylint.src/doc
Drummond Ogilvie 97b07f7466 Add more cases that emit bad-plugin-value (#7284)
* Add x-failing test for issue 7264 case 3

This is the case where a plugin can be imported only after the init-hook
is run, and the init hook is specified in a pylintrc file
We would expect the module to not load in any case, and cause the
emission of a bad-plugin-value message.

* _dynamic_plugins is a dict not a set

This is in preparation for caching the loaded modules, and for storing
other information that will help in identifying times loading is
dependent on init-hook magic.

* Use cached module objects for load_configuration

This fixes case 3 in #7264, and is technically a breaking change, in
that it now emits a message for what would have previously been a silent
failure.

* Interim review comment fixes

1. Remove the xfail that snuck back in after the rebases.
2. Now that fake_home yields a str, update the type hint.

* Add test for bad plugin with duplicated load

This is case 6 in issue #7264, and represents the other silent failure
that is being made non-silent by this change.

* Apply review feedback

- Add an ordering test for CLI arguments
- Add clarifying comments on affected functions
- Tidy up test assertions to be more pythonic

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-09-07 14:47:49 +02:00
..
data/messages
development_guide
exts
media
user_guide
whatsnew
conf.py
contact.rst
faq.rst
index.rst
logo.png
logo.svg
make.bat
Makefile
pyreverse.rst
requirements.txt
short_text_contribute.rst
short_text_installation.rst
symilar.rst
test_messages_documentation.py
tutorial.rst