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 are on the left section of the widget. Click on a metric to get a list of packages/classes and their measured values.
Metrics which measure code and documentation size are as follows: