Template for a good bug report, formatted with Markdown:
Versions used (SonarQube, Scanner, Plugin, and any relevant extension)
Error observed (wrap logs/code around triple quote ``` for proper formatting)
Steps to reproduce
Potential workaround
Scanner command used when applicable (private details masked)
In case of SonarCloud:
ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI, Jenkins, other)
when we are scanning code in SonarQube using default quality gate, the reliability metrix shows that there are 15 bugs and rated it as E, But quality gate is passed.
Whereas in threshold it has been mentioned that Reliability Metrix should be worse than A for default quality gate.
Hi @Carine_Bayon ,
we are using SoanrQube 7.9.3 Enterprise edition. our concern is when we are analyzing code for the first time then sonarqube should consider our code as new code and if we have bugs in our code then our quality gate should fail. But our quality gate is passed even our code have bugs.
I’m having the same issue in my environment as well. My scan results have a Reliability result of a C but the Quality Gate says it passed just like the screenshots in the original post. I’m being asked to get the report to show that it failed and the C rating for the Bugs category and I’m at a loss. How can I get the results to show this as a Failure?
I just created a custom Quality Gate that was scoped to Overall code rather than New code and that showed me what I was looking for. So much to learn…