Interview Prep/CI/CD/Testing and Quality Gates

What is a quality gate in SonarQube?

IntermediateConceptTesting and Quality Gates
Answer

A quality gate is a set of pass/fail conditions evaluated after a scan. The default "Sonar way" gate applies to new code: no new bugs, vulnerabilities, or security hotspots unreviewed, coverage on new code at least 80%, duplications on new code at most 3%, and maintainability rating A. If the gate fails, the pipeline should fail, so the PR cannot merge.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Testing and Quality Gates