--recursive option does not find .py files in sub-directories of packages #9187
Labels
Bug 🪲
Help wanted 🙏
Outside help would be appreciated, good for new contributors
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
When running
pylint --recursive=y
on a directory that contains both a package and a sub-directory, pylint correctly locates and lints all py files, both those in the non-package sub-directory and those in the package.However, when running
pylint --resursive=y
on a package that contains both a sub-package and a sub-directory, pylint will not locate or lint any files in the sub-directory.Example structure:
The only difference between
src1
andsrc2
is thatsrc2
is a package.Running
pylint --recursive=y ./tmp/src1
will find/lint bothfoo.py
andbar.py
.Running
pylint --recursive=y ./tmp/src2
will not find/lintbar.py
Configuration
No response
Command used
Pylint output
Expected behavior
bar.py is linted as intended by #5682
Pylint version
OS / Environment
Debian 9
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: