Closed
Description
Bug description
In scanning my PyMarkdown project, a switch to pylint==2.13.5 caused some errors to show up with pylint. Specifically, when pipenv run pylint --rcfile=setup.cfg pymarkdown pymarkdown/plugins
was executed, this was the response:
************* Module pymarkdown.plugins.rule_md_033
pymarkdown\plugins\rule_md_033.py:68:4: R0912: Too many branches (14/12) (too-many-branches)
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
However, upon using either pipenv run pylint --rcfile=setup.cfg --recursive=y pymarkdown
or specifying the file directly, the errors were not reported.
Command used
Command to generate bad behavior:
pipenv run pylint --rcfile=setup.cfg pymarkdown pymarkdown/plugins
Commands that did not generate the bad behavior:
pipenv run pylint --rcfile=setup.cfg --recursive=y pymarkdown
pipenv run pylint --rcfile=setup.cfg --recursive=y pymarkdown/plugins/rule_md_021.py
Pylint output
Output for the bad case:
pymarkdown\plugins\rule_md_033.py:68:4: R0912: Too many branches (14/12) (too-many-branches)
No errors were output for the good cases.
Expected behavior
My expectations are that the same results should be generated, regardless of what form is used to get to that file.
Pylint version
pylint 2.13.5
astroid 2.11.2
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
OS / Environment
Win10