We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkdir tmp touch __init__.py mkdir tmp/lib echo 'a = b' > tmp/lib/__init__.py cd tmp
pylint . && echo $? 0
pylint . && echo $?
pylint ../tmp E0602: Undefined variable 'b' (undefined-variable)
pylint ../tmp
(cd .. && pylint tmp) E0602: Undefined variable 'b' (undefined-variable)
(cd .. && pylint tmp)
pylint . E0602: Undefined variable 'b' (undefined-variable)
pylint 2.1.1 astroid 2.1.0-dev Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
The text was updated successfully, but these errors were encountered:
correction to the above steps to reproduce..
mkdir tmp touch tmp/__init__.py mkdir tmp/lib echo 'a = b' > tmp/lib/__init__.py cd tmp
Sorry, something went wrong.
Thanks for creating an issue @tom-d !
This is fixed by using the --recursive=y option, and will be definitely fixed with #5701
--recursive=y
No branches or pull requests
Steps to reproduce
Current behavior
pylint . && echo $?
0
pylint ../tmp
E0602: Undefined variable 'b' (undefined-variable)
(cd .. && pylint tmp)
E0602: Undefined variable 'b' (undefined-variable)
Expected behavior
pylint .
E0602: Undefined variable 'b' (undefined-variable)
pylint --version output
pylint 2.1.1
astroid 2.1.0-dev
Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
The text was updated successfully, but these errors were encountered: