...
- ValidLines = Lines of Code - Duplicated Lines
- Errors = number of Checkstyle blocker violations + number of Checkstyle critical violations
- Warnings = number of Checkstyle major violations + number of Checkstyle minor violations + number of Checkstyle info violations
Quality Index
QI Quality Index = 10 - 4.5 * Coding - 2 * Complexity - 2 * Coverage - 1.5 * Style
Complexity Factor
The Complexity Factor measures the complexity density.
CF Complexity Factor = (5 * Complexity>30) * 100 / (Complexity>1 + Complexity>10 + Complexity>20 + Complexity>30)
Where:
- Complexity>X = number of methods whose Complexity is greater than X
Usage & Installation
1. Copy the jar into /extensions/plugins/ directory
2. Restart Sonar Web server
3. Launch a new quality analysis and the metrics will be fed
...

