Hi all,
Every time when I scan the code, expected quality gate result should be failed. But it is passing. Am I misconfiguring scan.
Hi all,
Every time when I scan the code, expected quality gate result should be failed. But it is passing. Am I misconfiguring scan.
Hi,
Welcome to the community!
There’s too little to go on here.
Why do you believe the Quality Gate should be failing? What is your New Code Definition?
Can you share a screenshot of your Quality Gate?
Ann
Hi Ann
below is the screenshot of the quality gate, using default sonar-way quality gate.
I am feeling quality gate should fail because, we are scanning the code for the first time. And test coverage of our code is 0%.
new code definition is
What should be the new code definition, I am confused about this as well. Should we use previous version or number of days if we frequently push changes to dev branch with minor changes?
Can you share a screenshot of your project itself (where we see the New Code and the Overall code results) ?
How do you know it passed? Can you share the screenshot on where it shows that QG passed?
As mentioned on this page, you see that the number of New lines (32) is not enough to compute the code coverage %, hence the QG doesn’t fail because of a low code coverage %.
Okay, I understand.
Which means our code does not have any maintainability, security and reliability issues as well?
When does it scans the complete code? After configuring the sonarqube scanning for the first time?