Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Duplicate
-
Win-7
Description
I have used CPD to detect duplicate codes in my project and Dry plugin is used. The plugin is reporting the duplicate codes , but it reports twice for a duplicate code-snippet. I have attached the screenshot of our files reported. Please let me know is this the expected behaviour or it needs any correction. But I feel this is somewhat not an expected behavior and needs your attention.
Thanks,
Santosh
Attachments
Issue Links
- duplicates
-
JENKINS-11376 Don't output multiple warnings for duplicated code
-
- Resolved
-
- is related to
-
JENKINS-16688 Duplications in different files shown only in one file
-
- Resolved
-
here are the lines from cpd.xml: they show there are no multiple warnings:
..............
.............
<duplication lines="155" tokens="1205">
<file line="2995" path="C:\Program Files (x86)\Jenkins\jobs\RasterLib\workspace\hpldrlgl\library\Src\job.cpp"/>
<file line="3612" path="C:\Program Files (x86)\Jenkins\jobs\RasterLib\workspace\hpldrlgl\library\Src\job.cpp"/>
<codefragment>
....
...
</codefragment>
<duplication lines="99" tokens="468">
<file line="3166" path="C:\Program Files (x86)\Jenkins\jobs\RasterLib\workspace\hpldrlgl\library\Src\job.cpp"/>
<file line="3836" path="C:\Program Files (x86)\Jenkins\jobs\RasterLib\workspace\hpldrlgl\library\Src\job.cpp"/>
<codefragment>
....
....
</codefragment>