August 2012
Intermediate to advanced
318 pages
5h 56m
English
Sonar uses the following four metrics to cover code duplication. Duplicated lines can also be expressed as a percentage value and we will create an alert with a threshold value of five percent.
|
Name |
Description |
|---|---|
|
Duplicated Lines |
Number of physical lines touched by duplication. |
|
Duplicated Blocks |
Number of duplicated blocks participating in duplication. |
|
Duplicated Files |
Number of files containing duplicated lines or blocks. |
|
Density of Duplicated Lines |
![]()
|
Log in to Sonar and navigate to the custom packt profile configuration screen. Add a new alert as shown in the following screenshot: ...
Read now
Unlock full access