-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Sonar Code Quality Testing Essentials
By :

All duplication metrics are accessible from the project dashboard beside the Comments section. Notice how the metric in the large font is highlighted to alert us that the duplication levels are above five percent. All metrics are hyperlinks allowing us to drill down and locate the source.
![]() |
Click any of the first two metrics (percentage and number of physical lines) to navigate to the drill down screen. From left to right, you can see three panels (Project, Package, and Class) with the leftmost one listing all classes that contain duplicated code. The number next to a class name is the number of physical lines duplicated. Similarly, the blocks and files metrics lead to the same three-panel screen, although the numbers next to each class correspond to blocks of duplicated lines instead of raw lines.
![]() |
Then, click on a package to filter class results or on any class to examine it inside the source viewer. As you can see, the source viewer automatically focuses...
Change the font size
Change margin width
Change background colour