-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
duplicate-code: similarities is not working in pipenv virtual env #2965
Comments
NOTE: If I run outside the virtual environment, similarities/duplicate line checks work!
|
This is an interesting behaviour, thanks for the clear examples. Not sure why it's not working in a virtualenv though. |
Curious if there's any update on this issue? I'm running into this exact problem on my project and I can't find another solution. Thanks! |
I can't reproduce, so I assume this was fixed in latest version of pylint (2.15.0-dev0 at least). |
Steps to reproduce
foo.py
andbar.py
, have them each define a different function, with 100% duplicated lines (>4)pylint --reports=y --disable=all --enable=similarities foo.py bar.py
Here's a same of the two files: (as you can see, nearly 100% of the lines are duplicated)
foo.py
bar.py
Current behavior
The output is ALWAYS zero duplicated lines
It is definitely running on the two files (other warnings etc happen)
Expected behavior
We expect it to catch duplicated lines ACROSS files
(note that SAME file is not supported as per #1457)
pylint --version output
NOTE we're running inside a docker inside pipenv
The text was updated successfully, but these errors were encountered: