Default Quality Gate Isn't Functioning As Expected

Hey there.

Conditions on Coverage/Duplication are not calculated when there are fewer than 20 lines (SONAR-9352). We did this because of our own experiences with “diminishing returns” situations where the cumulative change sets were small and one or two uncovered lines caused the project to fail the Quality Gate.

So a few things to note:

  • I (think) we have lost something in the UI that is supposed to tell you this when your SLB falls into this situation. Something like: “Some Quality Gate conditions on New Code were ignored because of the small number of New Lines”
  • In SonarQube, this can be disabled, it has never made its way to SonarCloud
  • I’ll flag this for attention because I agree, the experience is confusing
1 Like