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

Sonar Code Quality Testing Essentials
By :

The Comments & Duplications widget inside the project dashboard provides an overview about documentation. From there we can further browse to undocumented classes by clicking on a metric and finally getting down to source code. A typical workflow would be to:
1. Click on the Comments or the Public Undocumented API metric displayed in the widget.
2. Select a package to drill down or a class from the list.
![]() |
If you select a class, the source viewer opens up focused on the Source tab. Read on the header of the source viewer and locate the Comments metrics and the Public documented API on the third and fourth column.
3. Click on the Violations tab.
4. Filter the source viewer selecting Javadoc-related violations from the select menu.
![]() |
To provide a view regarding documentation and comments for all projects, we can create a custom filter including filtered information on these topics. Log in as Administrator and from Sonar's main page...
Change the font size
Change margin width
Change background colour