Why SonarQube shows 0 coverage even the quality gate is passed?

The quality gate threshold is 80% and even though the coverage is zero QG shows passed. And why the coverage shows 0 always?


It sounds like you have fewer than 20 new lines. By default, conditions on coverage and duplications aren’t enforced when there are fewer than 20 new lines. You can disable that at the instance level if you like: Administration → General → Quality Gate → Ignore duplications and coverage on small changes