Issue
I have a maven java project which has a quality gate configured to check if new line coverage is greater than 90%, but recently i am noticing even if lines are covered 100%, if there are conditions not covered, sonar treats it as a quality gate failure. how do i skip conditional coverage in sonar?
Solution
You could use "Line Coverage on New Code" instead of "Coverage on New Code" in your QG definition - this should effective rule out the condition coverage criteria.
Answered By - Deyan