-
Bug
-
Resolution: Won't Fix
-
Major
-
None
The duplications reported are not properly attributed to the files where they were actually found.
Why? The pylint similarities checker computes the duplications at the end of the process, hence they are not associated with the actual files. This issue is solved by outputting the details as a part of the message in the following format:
Sample output for report R0801
completely_unrelated_module.py:1: [R0801] Similar lines in 2 files ==myapp.package.module:366 ==myapp.package2.module2:262 def do_something(self): if self.exists(): continue else: raise Exception()
Message detail: http://www.logilab.org/card/pylintfeatures#id2
This also means the type of error is not discernable. The error ID and error description would normally be displayed against the relevant line of source code, but the source code displayed is from the wrong file, so no errors are visible.