PlanetJava
Custom Search

java-sonar-devel
[Top] [All Lists]

Re: Default rules weight in Quality Index vs Rules compliance

Subject: Re: Default rules weight in Quality Index vs Rules compliance
Date: Thu, 22 Dec 2011 17:29:26 +0100
Thank you!
Let us know if you find something as soon as you check the source code :-)
Regards,
Antonio.
El 22/12/2011, a las 13:02, Olivier Gaudin escribió:
> I see what you mean. Basically we developed this for a company that was using 
> this formula internally and because it was good, we decided to make it open 
> source. That is for the why question.
> 
> I do not recall all the details and would have to look at the source code. 
> Cannot do this at the moment, will do it later.
> 
> Olivier
> 
> 
> On Thu, Dec 22, 2011 at 3:27 PM, Antonio Calero 
> <[email protected]> wrote:
> Hi Olivier!
> 
> El 22/12/2011, a las 05:36, Olivier Gaudin escribió:
> 
>> Hi Antonio,
>> 
>> Default rules weight for quality index is: 
>> - CODING violation: INFO=1;MINOR=1;MAJOR=1;CRITICAL=10;BLOCKER=10
>> 
>> You mean : "INFO=1;MINOR=1;MAJOR=3;CRITICAL=5;BLOCKER=10" ?
> 
> Yes, sorry… That's what I mean.
> 
>>  
>> - STYLE violation: INFO=1;MINOR=1;MAJOR=1;CRITICAL=10;BLOCKER=10
>> Default rules weight for rules compliance index is: 
>> INFO=0;MINOR=1;MAJOR=3;CRITICAL=5;BLOCKER=10
>> Anyone knows the reason? Don't you think they should be the same?
>> 
>> No, this was made on purpose.
> 
> Please, could you explain the purpose? Thanks!
> 
>>  
>> 
>> By the way, plugin description in Sonar documentation doesn't match with 
>> this default configuration:
>> Coding violations : a PMD compliance index
>> (Blocker * 10 + Critical * 5 + Major * 3 + Minor + Info) / validLines
> 
> Sorry, it was my mistake… Now matches the definition.
> 
>> Style violations : a Checkstyle compliance index
>> Style = (Errors*10 + Warnings) / ValidLines * 10
>> http://docs.codehaus.org/display/SONAR/Quality+Index+Plugin
>> 
>> Why are you saying it does not mach ?
>> 
> 
> For style violations, what is an error? what is a warning? I suppose an error 
> is a blocker or critical violation, and a warning is a major, minor or info 
> violation, but it is not documented…
> 
> ERRORS = Blocker violations + Critical violations
> WARNINGS = Major violations + Minor violations + Info violations
> 
> I think these definitions (error, warning) are taking from Checkstyle… but 
> what about the "info" priority from Checkstyle? Why it doesn't match the info 
> severity in Sonar?
> 
> Maybe I'm wrong and the formula is:
> 
> WARNINGS = Major violations + Minor violations
> 
> Or maybe I'm going crazy with such a lot of metrics :-)
> 
> Thank you very much for your support!
> 
> Regards,
> Antonio.
> 
> 
>> Olivier
>> 
>> 
>> On Mon, Dec 19, 2011 at 9:50 PM, Antonio Calero 
>> <[email protected]> wrote:
>> Hi all,
>> 
>> Default rules weight for quality index is: 
>> 
>> - CODING violation: INFO=1;MINOR=1;MAJOR=1;CRITICAL=10;BLOCKER=10
>> - STYLE violation: INFO=1;MINOR=1;MAJOR=1;CRITICAL=10;BLOCKER=10
>> 
>> Default rules weight for rules compliance index is: 
>> INFO=0;MINOR=1;MAJOR=3;CRITICAL=5;BLOCKER=10
>> 
>> Anyone knows the reason? Don't you think they should be the same?
>> 
>> By the way, plugin description in Sonar documentation doesn't match with 
>> this default configuration:
>> Coding violations : a PMD compliance index
>> (Blocker * 10 + Critical * 5 + Major * 3 + Minor + Info) / validLines
>> 
>> Style violations : a Checkstyle compliance index
>> Style = (Errors*10 + Warnings) / ValidLines * 10
>> 
>> http://docs.codehaus.org/display/SONAR/Quality+Index+Plugin
>> 
>> Regards,
>> Antonio.
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
  • Default rules weight in Quality Index vs Rules compliance
    • Re: Default rules weight in Quality Index vs Rules compliance
      • Re: Default rules weight in Quality Index vs Rules compliance
        • Re: Default rules weight in Quality Index vs Rules compliance
        • Re: Default rules weight in Quality Index vs Rules compliance,
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy