Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Name

Quality Index Plugin

Authors

SonarSource

JIRA

http://jira.codehaus.org/browse/SONARPLUGINS/component/14140

Most Recent Version

N/A

License

LGPL v3

Sources

http://svn.codehaus.org/sonar-plugins/trunk/quality-index/

Download

N/A

Compatibility with Sonar

Plugin

0.1

Sonar

1.11+

Description / Features

The Quality Index plugin combines a global measure (quality index) of quality with a measure of the method complexity (complexity factor).

The Quality Index measures 4 weighted axes of quality and combines them to give a global note between 0 and 10 to the project, 10 being the best.

1. Coding violations : a PMD compliance index
(Blocker * 10 + Critical * 5 + Major * 3 + Minor + Info) / validLines

2. Complexity
(Complexity>30 *10 + Complexity>20 * 5 + Complexity>10 * 3 + Complexity>1) / validLines

3. Test Coverage
Code coverage

4. Style violations : a Checkstyle compliance index
Style = (Errors*10 + Warnings) / ValidLines * 10

QI = 10 - 4.5 * coding - 2 * complexity - 2 * coverage -1.5 * style

The complexity factor measures the complexity density

CF = (5 * Complexity>30) * 100 / (Complexity1 + Complexity>10 + Complexity>20 + Complexity>30)

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

Known limitations

TBD

Changelog

Loading

QI 0.1 (4 issues)

  • No labels