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

Sonar Code Quality Testing Essentials
By :

The Sonar dashboard is the entry point for every project. The default two-column layout hosts numerous widgets that describe quality and give you insight on different metrics. The top two widgets provide statistics on code size and violation totals by severity.
As shown in the following screenshot, the commons-lang
project takes up 19,499 lines of code across 99 files. There are 147 classes in total featuring 2.173 methods via 52 accessors.
Accessors methods
Accessors are all getter methods that follow the standard JavaBean pattern. Such methods expose private objects' properties. For example, the public String getMessage()
; method is an accessor to the the private string message property.
The higher the accessor count, the more open an API is.
Selecting a severity from the violations summary on the right, browse to the violations drill-down component already filtered by the selected level.
![]() |
The next group of widgets displays general information about Documentation...
Change the font size
Change margin width
Change background colour