Sonar-scanner fail if there are bugs in project

Hi
I use the sonarsource/sonar-scanner-cli:latest container to scan my python projects, all is fine,

But they always succeed. I found that I had accumulated 6 bugs in a project. Is it possible to set a
sonar-project.properties so it fails if there are bugs in project. Even if it was not introduced since last run.

Would be much better if it failed pipeline. so I have to fix it up front.

Thanks

Hey there.

You can adjust your Quality Gate and decide to fail the pipeline based on your Quality Gate if that’s what you want.

And , we really don’t think that developers should focus on cleaning up existing code, rather than focusing on the new code. Read more in the documentation on Clean as You Code and this blog post: Clean as You Code: How to win at Code Quality without even trying | Sonar