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 »

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

  1. Stop Sonar Web server
  2. Place the jar into the /extensions/plugins directory
  3. Restart Sonar Web server
  4. Configure filter to replace Rule Compliance column by Violation Density column
  5. Configure dashboard to replace Rule Compliance widget by Violation Density widget

Changelog

Loading

Release 1.2 (1 issues)

T Key Summary P Status Resolution
Bug SONARPLUGINS-1509 Violation density metric should be qualitative Major Closed Fixed

Loading

Release 1.1 (1 issues)

T Key Summary P Status Resolution
Bug SONARPLUGINS-1456 Violation density is not displayed in the widget Critical Closed Fixed

Loading

Release 1.0 (1 issues)

T Key Summary P Status Resolution
New Feature SONARPLUGINS-1334 Provide a violation density metric Minor Closed Fixed

  • No labels