Here is the list of metrics computed by the Sonar VB6 Plugin with their descriptions :
| Metric | Description |
|---|---|
| Lines | Physical lines = number of carriage returns |
| Lines of code | Number of actual lines of code = number of physical lines – number of blank lines – number of comment lines (except for comment at the end of a line of code) |
| Files | Number of files that have been analyzed |
| Methods | Number of methods defined in the programs. This includes subs and functions |
| Accessors | Number of accessors defined in the programs. This includes properties. |
| Directories | Number of physical directories containing files |
| Comment lines | Number of comment lines in the program, including comment at the end of a line of code. |
| Comments density | Number of comment lines / (non commenting lines of code + number of comments lines) * 100 |
| Duplicated lines | Number of physical lines touched by a duplication |
| Duplicated blocks | Number of duplicated blocks of lines |
| Duplicated files | Number of files involved in a duplication of lines |
| Density of duplicated lines | Duplicated lines / Physical lines * 100 |
| Statements | Number of VB statements. |
| Complexity | The Cyclomatic Complexity Number is also know as McCabe Metric. Complexity contained in accessors is ignored as Sonar considered accessors are technical routines. |
| Complexity / method | Average cyclomatic complexity by method |
| Complexity / file | Average cyclomatic complexity by file |
| Violations | Total number of rule violations |
| Rules Compliance Index | 100 – (weighted_violations / Lines of code * 100) |

