> For the complete documentation index, see [llms.txt](https://docs.mosip.io/1.2.0/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mosip.io/1.2.0/roadmap-and-releases/releases/release-notes/sonar-scan-report.md).

# Sonar Scan Report

## Purpose

SonarCloud is used as a tool for deep code analysis, to explore all source files, whether in branches or pull requests, to reach a green Quality Gate and promote the build.

* SonarCloud URL: `https://sonarcloud.io/organizations/mosip/projects`
* Git Branch: **1.2.0-rc2**

## LTS Release gates

* Code coverage: to be maintained greater than or equal to 80%
* Bugs: There should be no critical bugs open
* Security Vulnerability: 0
* Security Hotspot: 0
* Code Duplications to be maintained below 3%

### Code Coverage

**Target :** Code coverage to be maintained greater than or equal to 80%

![Module Wise Code Coverage](https://1836199994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EyCrLbFom7vj7UcMIUZ%2Fuploads%2Fgit-blob-b1e0d72291d351a7bc43237fa715cd34bd987fe5%2Fmodulewise_code_coverage.png?alt=media\&token=ea68f447-8c5d-4b1e-b590-299bc908bb29)

| **Module Name**                 | **Code Coverage** |
| ------------------------------- | ----------------- |
| **Commons**                     | 84.10%            |
| **Admin**                       | 80.00%            |
| **Pre Registration**            | 80.40%            |
| **Registration client**         | 65.80%            |
| **Registration Processor**      | 80.00%            |
| **ID Authentication**           | 80.80%            |
| **ID Repository**               | 62%               |
| **Resident Services**           | 64.70%            |
| **Partner Management Services** | 81%               |

### Reliability: Bugs

**Target:** There should be no critical bugs open

![Module Wise Bugs and Target](https://1836199994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EyCrLbFom7vj7UcMIUZ%2Fuploads%2Fgit-blob-dd39644aa86a343c7f32c2ebec326b65e5b840ae%2Fmodulewise_bugs_and_target.png?alt=media\&token=65b78bb6-b153-46c5-9a46-98dcd7644e23)

| **Module Name**                 | **Bugs Count** |
| ------------------------------- | -------------- |
| **Commons**                     | 0              |
| **Admin**                       | 20             |
| **Pre Registration**            | 0              |
| **Registration client**         | 46             |
| **Registration Processor**      | 12             |
| **ID Authentication**           | 0              |
| **ID Repository**               | 0              |
| **Resident Services**           | 0              |
| **Partner Management Services** | 0              |

### Security Vulnerabilities and Security Hotspots

**Target:** There should be no security vulnerabilities and hotspots

![Module Wise Secury Vulnerabbilities and Hotspots](https://1836199994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EyCrLbFom7vj7UcMIUZ%2Fuploads%2Fgit-blob-204d0cd46b6bc89f71c3e37695f18aafd5826033%2Fmodulewise_securiy_vulnerabilities_hotspots.png?alt=media\&token=bf341685-3c26-46b8-8b65-6d6dc288b9da)

| **Module Name**                 | **Vulnerabilities** | **Hotspots** |
| ------------------------------- | ------------------- | ------------ |
| **Commons**                     | 0                   | 0            |
| **Admin**                       | 5                   | 0            |
| **Pre Registration**            | 0                   | 0            |
| **Registration client**         | 0                   | 3            |
| **Registration Processor**      | 1                   | 2            |
| **ID Authentication**           | 0                   | 0            |
| **ID Repository**               | 0                   | 0            |
| **Resident Services**           | 0                   | 0            |
| **Partner Management Services** | 0                   | 0            |

### Code Duplications

**Target:** Code duplications should be less than 3%

![Module Wise Duplicate Code](https://1836199994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EyCrLbFom7vj7UcMIUZ%2Fuploads%2Fgit-blob-3e04a661bfe86132ac67d0b9e2c94ec34922110c%2Fmodulewise_duplicate_code.png?alt=media\&token=b0b4f566-9bd7-40ee-904a-d7468f76fbf7)


---

# 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://docs.mosip.io/1.2.0/roadmap-and-releases/releases/release-notes/sonar-scan-report.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.
