Over leak period....always

fix_the_leak

(durgesh) #1

Can anyone explain why in the default quality gate Overleak period is always yes ???


(Nicolas Bontoux) #2

Hi Durgesh,

This is a must-read to understand the Quality Gate recommendations: https://docs.sonarqube.org/display/SONAR/Fixing+the+Water+Leak

The default Quality Gate checks ratings on New Code, and New Code is by nature determined over the Leak Period.


(durgesh) #3

For Reliability rating…why over leak is always never… please explain???


(Clint Cameron) #5

Hi Durgesh,

This is a continuation of the Leak Period concept. There are two metrics to consider: the Reliability Rating and Reliability Rating on New Code. When you factor in Nico’s Quality Gate explanation that ’ New Code is by nature determined over the Leak Period’ then we can extend that to reliability metrics. So, for Reliability Rating on New Code the Over Leak Period parameter is ‘Always’ and conversely for Reliability Rating the Over Leak Period parameter is ‘Never’.

Having a metric for Reliability Rating and another Reliability Rating on New Code allows for more customized analysis. For example, you could set the Reliability Rating grade to B and set the Reliability Rating on New Code to A to have a more stringent condition for the code just written (i.e., new code).