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

Sonar Code Quality Testing Essentials
By :

Sonar features a total of 10 rules that cover documentation and comments. Eight of them are of Major severity and two of minor. We are going to convert them all to Major level in order to get a rounded cost at 30 points.
Documentation and Comments Profile Distribution | ||
---|---|---|
Severity |
Rules Count |
Cost |
Major |
10 |
30 |
Total Cost |
30 |
The rules though, can be further categorized in two main categories:
Javadoc rules
Inline comments rules
Javadoc Rules | ||
---|---|---|
Severity |
Name |
Analyzer |
Major |
Undocumented API |
PMD |
Major |
Javadoc Method |
Checkstyle |
Major |
Javadoc Package |
Checkstyle |
Major |
Javadoc Style |
Checkstyle |
Major |
Javadoc Type |
Checkstyle |
Major |
Javadoc Variable |
Checkstyle |
When adding the following rules to the custom packt profile, change all minor severities to major:
![]() |
Check that each public class, interface, method, and constructor has a Javadoc comment. The following public methods/constructors are not concerned by...
Change the font size
Change margin width
Change background colour