I am using Sonarcloud to ensure my company code. I use default quality gate with 80% code coverage need to be done. Then i get caught of this problem which really miss our expectations of the analysis:
When we create a new PR with 16 new lines of code, sonarcloud said that the number of new LOC is too small so they do not scan as “Some Quality Gate conditions on New Code were ignored because of the small number of New Lines”
However, when we merge the PR into master, the analysis for master branch said that it’s fail due to code coverage
I really believe that if we merge an accepted branch into master, master branch must pass the quality gate too.