Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
Jenkins 1.498
Duplicate Code Scanner Plug-in 2.33
Description
If CPD reports same duplication in different files Jenkins shows this duplication only in one of this files. This behavior confuses our developers so much that they prefer not to use this, nevertheless great, plugin any longer.
Please have a look at attachment.
For file B.cpp "Summary" in B.jpg
shows a total of 3 duplications but in "Details" there is only one. For users it is hard to find the two other duplications if the project consists of many source files.
I assume this behavior has something to to with JENKINS-12738 and JENKINS-11376.
Therefore I´m not sure if this issue is a "Bug" or an "Improvement"
Is it possible to display same duplicates in report of all related files?
Or at least have a check-box which toggles behavior introduced in version 2.31?
Attachments
Issue Links
- is related to
-
JENKINS-12738 Dry Plugin reports code duplicates twice
-
- Resolved
-
-
JENKINS-11376 Don't output multiple warnings for duplicated code
-
- Resolved
-
-
JENKINS-17958 Code duplication pairs not correcty mapped. A in B is correctly shown, but B in A stays empty. Simian
-
- Resolved
-
Are these two screenshots from the same build? These warnings seem not to be correlated?
I think the following behavior makes sense:
Does that make sense? If not can you please explain in more detail what you would like to expect? Maybe you can attach a cpd XML file that I can use a staring point for a unit test.