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.
More on Testing and Quality Gates
What is the testing pyramid?BeginnerWhat is the difference between unit, integration, and end-to-end tests?BeginnerWhat are smoke tests and sanity tests in a deployment pipeline?IntermediateWhat is code coverage and is a high percentage a good target?IntermediateHow do you integrate SonarQube into a CI pipeline and make it block on gate failure?IntermediateWhat does SonarQube's "Clean as You Code" and new code period mean?Advanced