> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/codescan/quality-gates/customizing-quality-gates.md).

# Customizing Quality Gates

Quality Gates return a **Pass** or **Fail** (sometimes referred to as **Go/No-Go** rules) rating for analysis, depending on the selected criteria.

To create a new Quality Gate, follow the steps below:

1. Navigate to your organization's page and select the **Quality Gates** tab.<br>

   <figure><img src="/files/nYWAq8vsAKDOQfPyqDi5" alt=""><figcaption><p>Quality Gates tab</p></figcaption></figure>
2. **Copy** an existing Quality Gate to use as a template or select **Create** to design it from scratch.&#x20;
3. Give it a unique name and select **Save**.<br>

   <figure><img src="/files/cd7Qe9BLkfuqRV2hATyu" alt="" width="375"><figcaption><p>Create Quality Gate</p></figcaption></figure>
4. To add desired conditions with their Warning and Error thresholds, click on **Add Condition**.&#x20;

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

{% hint style="info" %}
Note: To customize a Quality Gate that is already in use, click on **Unlock editing** first, as shown below.
{% endhint %}

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

5. Conditions on **New Code** and **Old Code** must be added separately.<br>

   <figure><img src="/files/JBOkC45J3u9x3oHYJXdh" alt="" width="375"><figcaption></figcaption></figure>
6. To assign Quality Gates to specific projects, use the **Project Settings > Quality Gates** menu for your project and select the one you would like to use.

<figure><img src="/files/RKHcsJnx08zHg6acL5Aj" alt="" width="563"><figcaption></figcaption></figure>

7. A default **Quality Gate** can be set at the org level. Select **Set as Default.**

<figure><img src="/files/5YEsVKn3ukuITByK8You" alt=""><figcaption></figcaption></figure>

Then it will be assigned automatically to every new project, except those for which you specify a different gate. (See step 6.)

{% hint style="info" %}
**NOTE:** BUILT-IN Quality Gates are standard and can’t be edited. But you can always **Copy** and customize as needed. (See step 2.)
{% endhint %}

{% hint style="info" %}
**NOTE**: Changing the severity to '**Info**' will not block the Quality Gates.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
