-
-
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
False negative duplicate-code
when similarities are in the same file
#1457
Comments
I do not understand this issue. I used Could you please provide an example where pylint fails to find the duplicates? |
similarities compares code lines among multiple files. if you have one file with duplicated code it will not be found. |
this would be nice to have. I enabled similarities expecting checking in the same file was the actual behaviour. I was a bit surprised it only works on multiple files. |
Up! |
duplicate-code
when similarities are in the same file
|
This comment was marked as off-topic.
This comment was marked as off-topic.
@Pierre-Sassoulas is this about symilar? Does |
Yes, symilar is embeded in pylint and raises |
Steps to reproduce
Current behavior
Do not show code repeated in the same file,
Expected behavior
Show code repeated in the same file.
pylint --version output
The text was updated successfully, but these errors were encountered: