Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: USELESS-CODE-TRACKER-0.2
-
Fix Version/s: USELESS-CODE-TRACKER-0.5
-
Component/s: Useless Code Tracker
-
Labels:None
-
Environment:Sonar 2.5
-
Number of attachments :
Description
I think there is a problem with Useless Code Tracker plugin - code to be reduced that come from duplicated lines is bigger than duplicated lines detected:
I have a project that has 71.752 duplicated lines in 13.242 blocks, but Useless Code Tracker tells that there are 167.503 lines that can be reduced coming from duplicated blocks. Is that possible?
Project has 141.326 lines of code (201.305 physical lines). I have attached the sonar widgets with the information.
Issue Links
- relates to
-
SONAR-3181
Allow cross projects duplication detection mechanism with the legacy CpdMapping extension point and for all languages
-
-
SONAR-3139
Use Sonar CPD with existing extension point CpdMapping
-
-
SONAR-3238
Deprecate old format for DUPLICATIONS_DATA
-
This is actually a limitation of this plugin, due to the fact that we are not using Sonar core to get the duplication data but running cpd instead. If a line of code is involved in several different duplications, this line is going to be counted several times.
I will change the type of this issue to improvement