Skip to end of metadata
Go to start of metadata

Description / Features

The Rules Compliance Index (RCI) Metric was deprecated in SonarQube 4.0 and is no longer available to be displayed in a dashboard. See  SONAR-4755 - Remove the rules compliance index from the "Rules Compliance" widget ( Closed)  for more details.

The Issues Density Plugin is the rebirth of the RCI Metric as a dedicated plugin, and allows interested users to bring this metric back to their dashboards.

The Issues Density Plugin comes also with the Weighted Issues Metric. This metric multiplies by a weight value the total number of issues for each severity level.

Example:

Your project has 8 Blockers Issues and 42 Major Issues, having a Weight Configuration equals to INFO=0;MINOR=1;MAJOR=3;CRITICAL=5;BLOCKER=10, the Weighted Issues Metric will be:

(8 Blockers * 10) + (42 Majors * 3) = 80 + 126 = 206

 

The RCI Metric is always positive and is defined as:

Max ( 1.0 - (Weighted Issues Metric / Number of Line of Code) * 100, 0.0 ) 

Installation

  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQube server

Configuration

You can change the Weight to apply for each severity level in the configuration of the plugin. The default value is INFO=0;MINOR=1;MAJOR=3;CRITICAL=5;BLOCKER=10

Go in Settings > General Settings > Issue Density : 

Widget

Issues Density Plugin comes with a new Widget : "Most Violated Components". This widget display the top X components having the highest Weighted Issues value.

 

  • No labels