O'Reilly logo

Sonar Code Quality Testing Essentials by Charalampos Arapidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Documentation metrics definitions

Sonar features a set of metrics to measure project documentation and comments. Before examining documentation rules, it is wise to first discuss and detail these metrics. They are available from the project dashboard within the Comments & Duplications widget, as shown in the following screenshot:

Documentation metrics definitions

Documentation metrics are on the left section of the widget. Click on a metric to get a list of packages/classes and their measured values.

Documentation metrics definitions

Metrics which measure code and documentation size are as follows:

  • Physical lines: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required