Sonar report

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sonar report

satishKaRohini
I have a query about sonar rule compliance report.
Below are 2 snapshots:

In Oct 2014 analysis
LOC:152674
Violations: 40350 (Blockers:,Critical:425, Major:14809, Minor:24733,Info: 383 )
Rule Compliance:53.2%

In Nov 2014 analysis
LOC:142976
Violations: 38454 (Blockers:,Critical:416, Major:13893, Minor:23792,Info: 353 )
Rule Compliance:52.8%

As shown above, all parameters have improved from Oct to Nov report, however the rule compliance has dipped which is strange.
Is decrease in LOC the reason for this dip?

Thanks,
Satish
Reply | Threaded
Open this post in threaded view
|

Re: Sonar report

Roberto Vietti

Yes Satish, the LOC is used in the formula to calculate the RC%

Here is the formula used behind the scene:

RC% = 1 - (SUM( #Issue[i] * K[i])/LOC)

where:
 Issue[1] = Num of Blockers issue,  and K[1] constant value = 10
 Issue[2] = Num of Critical issue,  and K[2] constant value = 5
 Issue[3] = Num of Major issue,  and K[3] constant value = 3
 Issue[4] = Num of Minor issue,  and K[4] constant value = 1

BTW, you can change the K[i] from the General Setting panel

Consider that the RC% matrix has been deprecates since SonarQube 4.0


roberto
 

On 02 Jan 2015, at 06:40, satishKaRohini <[hidden email]> wrote:

I have a query about sonar rule compliance report.
Below are 2 snapshots:

In Oct 2014 analysis
LOC:152674
Violations: 40350 (Blockers:,Critical:425, Major:14809, Minor:24733,Info:
383 )
Rule Compliance:53.2%

In Nov 2014 analysis
LOC:142976
Violations: 38454 (Blockers:,Critical:416, Major:13893, Minor:23792,Info:
353 )
Rule Compliance:52.8%

As shown above, all parameters have improved from Oct to Nov report, however
the rule compliance has dipped which is strange.
Is decrease in LOC the reason for this dip?

Thanks,
Satish



--
View this message in context: http://sonarqube.15.x6.nabble.com/Sonar-report-tp5031344.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email