Introduction
Your introduction to understanding how to use quality gates in SonarQube Cloud.
A quality gate consists of a set of conditions against which the code is measured during analysis. A condition is defined on either new code or overall code. Depending on the result, the code will pass or fail the quality gate, giving developers indications on whether to fix issues or merge the code.
Each project has a single quality gate definition activated at any given time. This definition is used for all the quality gates that appear in the project, whether on the main branch, other branches, or pull requests.
Two built-in quality gates are provided: The Sonar way quality gate is initially set as your default quality gate, and the Sonar way for AI Code quality gate is recommended for projects containing AI code.
With the Administer Quality Gates permission in your organization, you can create your own quality gates, called custom quality gates.
When first imported, a project is assigned the default quality gate definition set for its organization. However, a different one can be chosen by a project administrator from among those available within the organization. The quality gate definitions available in your organization are defined and managed at the organization level by an organization administrator.
In this section:
Last updated
Was this helpful?

