Quality gate passes despite condition not met

Hi,

Thanks for the screenshots!

It’s coverage you’re expecting to fail the Quality Gate on this PR. The reason it’s not is there in that tile:

Selection_1370

We long-ago implemented what I call a fudge factor: conditions on coverage and duplications on New Code aren’t enforced if there are fewer than 20 lines changed. Why? Because in our own testing, we found ourselves in a diminishing returns situation many times, trying to get 80% coverage on e.g. 5 lines when some of them weren’t coverable.

SonarQube has implemented an opt-out for this (global, rather than project-level), and SonarCloud hasn’t caught up yet.

 
HTH,
Ann