# Understanding Quality Gates

## **What Is a Quality Gate?**

A quality gate is an indicator that determines whether your code meets the minimum quality standards for your project. It consists of a set of conditions applied to the results of each analysis. If the results meet or exceed these conditions, the status is "Passed"; otherwise, it is marked as "Failed."

A Quality Gate consists of measure-based, Boolean conditions that allow you to quickly assess whether your projects are production-ready. Ideally, all projects should utilize the same quality gate, with each project's quality gate status clearly visible on its homepage.

CodeScan will provide standard values for each metric in the default (built-in) quality gate (sonar way). However, the quality gate can be customized to align with your organization’s standards.

<figure><img src="/files/pfgdO4ao4D8QjqeEcOft" alt=""><figcaption></figcaption></figure>

**Important Note:** Built-in quality gates are standard and cannot be edited.

See more information on [Sonar Way](https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-gates/introduction-to-quality-gates/), the recommended quality gate. We consider these conditions for our default quality gate.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/codescan/quality-gates/understanding-quality-gates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
