# SonarQube

{% hint style="info" %}
This plugin is part of Pro and Enterprise plan only
{% endhint %}

### Overview

This guide details the integration between Rely.io and SonarQube, a popular platform for continuous code analysis and static code quality. Integrating SonarQube with Rely.io unlocks valuable benefits for your development workflow:

**Enhanced Code Quality:**

* SonarQube provides comprehensive code analysis, identifying potential bugs, vulnerabilities, and code smells before deployment. This proactive approach streamlines development by minimizing issues that might arise later in the process.
* Gain insights into code coverage and identify areas where additional testing efforts may be necessary.

**Improved Development Efficiency:**

* Rely's integration with SonarQube allows you to centralize code quality data within your Rely environment. This facilitates easier access and analysis of quality metrics, streamlining team communication and collaboration.
* Automate quality checks as part of your CI/CD pipeline, integrating seamlessly with Rely's existing functionalities.

## Installation Guide

To configure the SonarQube integration within your Rely instance, follow these steps:

1. Navigate to the Plugins section within your Rely dashboard within the Data Model section of the side panel.
2. Click "Add Plugin" and select the SonarQube plugin.
3. Complete the following fields in the provided form:
   * **API Token**: Generate an API token of the desired type within your SonarQube instance (**User > My Account > Security)**. Refer to [SonarQube's documentation ](https://docs.sonarsource.com/sonarqube/latest/user-guide/user-account/generating-and-using-tokens/#generating-a-token)for more details on creating API tokens.
     * Global Tokens will allow Rely to ingest information regarding all projects.
     * User Tokens will allow Rely to ingest information about all projects your current user has access to.
   * **Server URL**: Specify the base URL of your SonarQube server instance. Ensure this URL matches the configuration settings within SonarQube itself.
4. Click "Save".
5. After this, Rely will automatically perform the following tasks:
   * Extend your Data Model with Project and Issue blueprints.
   * Pull corresponding entities from your SonarQube to backfill your catalog.
   * Add automation rules to feed your Services and CVEs with information from the corresponding Projects and Issues.

Rely's support team is always available to assist you with any integration-related questions. Feel free to reach out through our support channels.

By following these steps, you can effectively leverage the SonarQube integration and gain valuable insights into your code quality within your Rely environment.


---

# 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.rely.io/plugins-and-automation/plugin-installation-guides/sonarqube.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.
