Skip to content
New issue

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

Different order in files passed from the command line produces different (and incorrect) output #3661

Closed
andreaTP opened this issue Jun 2, 2020 · 2 comments
Labels
Bug 🪲 Duplicate 🐫 Duplicate of an already existing issue High effort 🏋 Difficult solution or problem to solve

Comments

@andreaTP
Copy link

andreaTP commented Jun 2, 2020

Steps to reproduce

I prepared a minimal repro here:
https://github.com/andreaTP/pylint_order_bug

Current behavior

Cloning the example project and running:

python3 -m pylint test2/test3/test.py test2/test4/test.py test/__init__.py

R0801 (similarity) is reported on an incorrect file:

test/__init__.py:1:0: R0801: Similar lines in 2 files

Expected behavior

Cloning the example project and running:

python3 -m pylint test2/test3/test.py test2/test4/test.py test/__init__.py

produces the same result as:

python3 -m pylint test/__init__.py test2/test3/test.py test2/test4/test.py

Such as R0801 is reported on the correct file:

test2/test4/test.py:1:0: R0801: Similar lines in 2 files

pylint --version output

pylint 2.5.2
astroid 2.4.1
Python 3.6.9 (default, Apr 18 2020, 01:56:04) 
[GCC 8.4.0]
@Pierre-Sassoulas Pierre-Sassoulas added Bug 🪲 High effort 🏋 Difficult solution or problem to solve labels Feb 20, 2021
@Pierre-Sassoulas
Copy link
Member

Seems somewhat similar to #4053

@Pierre-Sassoulas
Copy link
Member

I'm going to close as a duplicate of #4053, the fix will probably be the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Duplicate 🐫 Duplicate of an already existing issue High effort 🏋 Difficult solution or problem to solve
Projects
None yet
Development

No branches or pull requests

2 participants