Anatomy of the dashboard

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.

Tip

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, ...

Get Sonar Code Quality Testing Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.