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

Sonar Code Quality Testing Essentials
By :

Click on Packt profile from the profile management screen to browse to the main configuration screen. Currently, the profile is empty, thus not containing any rules. The Coding Rules tab section features three list boxes from which you can filter rules by Analyzer Plugin, severity level, and whether the rule is activated or not.
Plugin: Select one of the available Sonar analyzers
Severity filter rules by severity level (Info, Minor, Major, Critical, Blocker)
Select active, inactive, or all rules the current plugin analyzer supports
![]() |
For now, select any rules of minor severity for the Checkstyle plugin and click on the Search button. Wait for the page to refresh and a complete list of all Checkstyle rules will render. All rules are currently deactivated and checkboxes on the left are deselected.
To add the rule to the profile, simply check the Ajax checkbox on the left. There is no need to do anything more and the rule has been added. From the top right of the rules...
Change the font size
Change margin width
Change background colour