Percentage of comment
Title short form | Comments |
Categories | Maintainability |
Definition | Percentage of comments in the source code This number is calculated using the following formula: Percentage = 100 * <letters in comments> / <letters in source code and comments together> |
Further information | Multiple consecutive spaces in the source code are counted as one space, which prevents a high weighting of indented source code. A percentage of 0 is returned for empty objects (no source code and no comments). The statements also include declaration statements, for example. |