| Wiki Markup |
|---|
{iframe:src=http://update.sonarsource.org/plugins/violationdensity.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
Description / Features
Compute a new metric named violation density. This is kind of "opposite" for rule compliance metric. Rule compliance metric formula is: max(0, 100 - weighted_violations / Lines of code * 100). Violation density metric formula is: weighted_violations / Lines of code * 100. The main advantage is that bad projects can always be compared (because the formula allow to exceed 100% while rule compliance can never be under 0%).
The new metric key is: violation_index
There is a new widget to replace Rule Compliance widget.
Usage and installation
- Stop Sonar Web server
- Place the jar into the /extensions/plugins directory
- Restart Sonar Web server
- Configure filter to replace Rule Compliance column by Violation Density column
- Configure dashboard to replace Rule Compliance widget by Violation Density widget
Changelog
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.2 |
|---|
| height | 50 |
|---|
| width | 800 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18089&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.1 |
|---|
| height | 50 |
|---|
| width | 800 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18038&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.0 |
|---|
| height | 50 |
|---|
| width | 800 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17644&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|