# Using SonarQube with Cover Plugin

Tests written by Diffblue Cover may be reported as "code smells" by SonarQube. To suppress these warnings and reduce the reported "code smells" in the SonarQube output, go to `Diffblue > Change Settings > Method Annotations` and update the `Warnings to suppress` list, as needed - this will add the `@SuppressWarnings` code annotation to all test methods written by Diffblue Cover, as detailed below.

<div align="left"><figure><img src="/files/gqU1gjNyN2OoBbB8nCdM" alt=""><figcaption></figcaption></figure></div>

**Example - all:** `all`

Suppresses all warnings - adds the code annotation `@SuppressWarnings({"all"})`\`

**Example - types:** `unused,raw-types`

Suppresses one or more "warning types" - this example adds the code annotation `@SuppressWarnings({"unused","raw-types"})`

**Example - specific:** `squid:S2699`

Suppresses one or more specific warnings (using warning codes) - this example, adds the code annotation `@SuppressWarnings({"squid:S2699"}`

If you want to configure SonarQube directly, please see [Using SonarQube with Cover CLI](/features/cover-cli/cover-cli-admin/using-sonarqube-with-cover-cli.md)[.](https://github.com/diffblue/website-docs/blob/develop/knowledge-base/cli/using-sonarqube-with-diffblue-cover/README.md)


---

# 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://cover-docs-preview.diffblue.com/features/cover-plugin/cover-plugin-admin/using-sonarqube-with-cover-plugin.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.
