# 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](/files/CUf3VObXXdw6GXm4ds8a)

| **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](/files/DEcHI4kzGA50MCTWQOVi)

| **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](/files/G3BHCVpUdErV8H9uLMQA)

| **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](/files/mgSOuTg1WDPhg0NIQaYq)


---

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