> 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/report-and-analysis/quality-gate-ratings.md).

# Quality Gate Ratings

The Security, Reliability, and Maintainability ratings in the Quality Gate affect the amount of blocked Vulnerabilities, Bugs, and Code Smells respectively.  They are displayed as a rating from A to E.

### Security Rating

The Security Rating is based on the highest severity Vulnerability that is present in your project.

**A** = No Vulnerabilities\
**B** = At least one Minor Vulnerability\
**C** = At least one Major Vulnerability\
**D** = At least one Critical Vulnerability\
**E** = At least one Blocker Vulnerability

### Reliability Rating

The Reliability Rating is based on the highest severity Bug that is present in your project.

**A** = No Bugs\
**B** = At least one Minor Bug\
**C** = At least one Major Bug\
**D** = At least one Critical Bug\
**E** = At least one Blocker Bug

### Maintainability Rating

The Maintainability Rating is based on the Technical Debt Ratio.  in CodeScan, each issue is given an issue remediation effort which represents the estimated time to fix that issue.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FtBg0TwYxoAppel5FTYK5%2Fimage.png?alt=media&amp;token=517f0851-c009-4535-aac6-95623700799f" alt=""><figcaption></figcaption></figure>

The Technical Debt Ratio is the ratio between the cost of developing code and the cost of fixing it. This is calculated with the following formula (where the cost to develop one line is 30 minutes:

Technical Debt Ratio = Technical Debt /(cost to develop one line of code \* number of lines of code)

**Example**:

* Technical debt: 408 Hours
* Number of lines of code: 8,222
* Cost to develop one line of code: 30 minutes
* Technical debt ratio: 10%

Based on that metric, the scale for Maintainability is as follows:

**A** = 0% to <5%\
**B** = ≥ 5% to <10%\
**C** = ≥ 10% to <20%\
**D** = ≥ 20% to <50%\
**E** = ≥ 50%&#x20;


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://knowledgebase.autorabit.com/product-guides/codescan/report-and-analysis/quality-gate-ratings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
