Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Iframe
frameborder0
height250
width700
src
Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/violationdensity.html
Your browser does not support iframes.
|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%).

...