# \#exclusions

**URL:** https://community.sonarsource.com/tag/exclusions/108.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [SonarQube for IDE in Intellij ignores exclusions](https://community.sonarsource.com/t/sonarqube-for-ide-in-intellij-ignores-exclusions/180786)

<div class="topic-metadata">

**Author:** [@simasch](https://community.sonarsource.com/u/simasch)\
**Replies:** 8\
**Last updated:** [June 24, 2026, 1:17pm UTC](https://community.sonarsource.com/t/sonarqube-for-ide-in-intellij-ignores-exclusions/180786 "2026-06-24T13:17:47Z")

</div>

Please provide Operating system: Mac SonarQube for IntelliJ plugin version: latest IntelliJ version: latest Programming language you’re coding in: Java Is connected mode used: no And a thorough description of the prob…

---

## [SonarQube for IDE: IntelliJ 12.1. - file exclusions improvement and Java version requirement](https://community.sonarsource.com/t/sonarqube-for-ide-intellij-12-1-file-exclusions-improvement-and-java-version-requirement/181254)

<div class="topic-metadata">

**Author:** [@Farah](https://community.sonarsource.com/u/Farah)\
**Replies:** 0\
**Last updated:** [April 16, 2026, 5:52pm UTC](https://community.sonarsource.com/t/sonarqube-for-ide-intellij-12-1-file-exclusions-improvement-and-java-version-requirement/181254 "2026-04-16T17:52:46Z")

</div>

Dear Jetbrains community, We are excited to announce a new update for SonarQube for IDE: IntelliJ 12.1! In this release, file exclusions are now properly applied across all analysis types. Fixes and stability improvem…

---

## [Hide suddenly unwanted warning messages in Azure Pipelines](https://community.sonarsource.com/t/hide-suddenly-unwanted-warning-messages-in-azure-pipelines/177117)

<div class="topic-metadata">

**Author:** [@PeterBa](https://community.sonarsource.com/u/PeterBa)\
**Replies:** 2\
**Last updated:** [February 4, 2026, 7:55am UTC](https://community.sonarsource.com/t/hide-suddenly-unwanted-warning-messages-in-azure-pipelines/177117 "2026-02-04T07:55:43Z")

</div>

Hello, We are using SonarQube-Cloud with AzureDevops and C# builds. There is a bunch of auto generated code which we do not wish to scan with Sonar, so we excluded the folders using sonar.exclusions and sonar.coverage.…

---

## [JS/TS node\_modules test files not excluded and still scanned](https://community.sonarsource.com/t/js-ts-node-modules-test-files-not-excluded-and-still-scanned/144076)

<div class="topic-metadata">

**Author:** [@madyatma](https://community.sonarsource.com/u/madyatma)\
**Replies:** 1\
**Last updated:** [July 9, 2025, 5:55am UTC](https://community.sonarsource.com/t/js-ts-node-modules-test-files-not-excluded-and-still-scanned/144076 "2025-07-09T05:55:57Z")

</div>

Template for a good new topic, formatted with Markdown: ALM used : Bitbucket CI system used : Bitbucket Cloud Languages of the repository : JS/TS Error observed (wrap logs/code around with triple quotes \`\`\` f…

---

## [SonarQube for Eclipse slow startup on large projects](https://community.sonarsource.com/t/sonarqube-for-eclipse-slow-startup-on-large-projects/139291)

<div class="topic-metadata">

**Author:** [@stefan.ionica](https://community.sonarsource.com/u/stefan.ionica)\
**Replies:** 8\
**Last updated:** [May 8, 2025, 7:05am UTC](https://community.sonarsource.com/t/sonarqube-for-eclipse-slow-startup-on-large-projects/139291 "2025-05-08T07:05:08Z")

</div>

Please provide Operating system: Ubuntu 22.04 IDE name and version: Eclipse 2024-09 (4.33) SonarQube for Eclipse plugin version: 11.5.1.82815 Programming language you’re coding in: Java 8 Is connected mode used: yes S…

---

## [@Generated Annotation in Java does not work with jakarta](https://community.sonarsource.com/t/generated-annotation-in-java-does-not-work-with-jakarta/136725)

<div class="topic-metadata">

**Author:** [@renoth](https://community.sonarsource.com/u/renoth)\
**Replies:** 6\
**Last updated:** [March 25, 2025, 3:24pm UTC](https://community.sonarsource.com/t/generated-annotation-in-java-does-not-work-with-jakarta/136725 "2025-03-25T15:24:21Z")

</div>

Must-share information (formatted with Markdown): Version:2025.1.0.102418 (Enterprise Edition) how is SonarQube deployed: dont know what are you trying to achieve: Exclude Code from analysis via @jakarta.annotation.Ge…

---

## [Some exclusions for coverage are not detected](https://community.sonarsource.com/t/some-exclusions-for-coverage-are-not-detected/133581)

<div class="topic-metadata">

**Author:** [@Ricardo\_Emilio\_Borto](https://community.sonarsource.com/u/Ricardo_Emilio_Borto)\
**Replies:** 2\
**Last updated:** [January 22, 2025, 2:53pm UTC](https://community.sonarsource.com/t/some-exclusions-for-coverage-are-not-detected/133581 "2025-01-22T14:53:48Z")

</div>

I use “Enterprise Edition 10.7” and we have exceptions configured that are not ignored for coverage. Do you have any recommendations to do? thanks!!

---

## [Issues still active on excluded files](https://community.sonarsource.com/t/issues-still-active-on-excluded-files/130006)

<div class="topic-metadata">

**Author:** [@Jerms](https://community.sonarsource.com/u/Jerms)\
**Replies:** 2\
**Last updated:** [December 23, 2024, 2:22pm UTC](https://community.sonarsource.com/t/issues-still-active-on-excluded-files/130006 "2024-12-23T14:22:11Z")

</div>

Hello, We have a C# project analyzed in SonarCloud, the first analyse included the UnitTests project, which had some issues. We decided to exclude this project from the analysis, so we changed the sonar.exclusions sett…

---

## [Exclude folder from Analysis (.net/C#)](https://community.sonarsource.com/t/exclude-folder-from-analysis-net-c/130918)

<div class="topic-metadata">

**Author:** [@Thomas\_Mittermair](https://community.sonarsource.com/u/Thomas_Mittermair)\
**Replies:** 5\
**Last updated:** [December 2, 2024, 1:39pm UTC](https://community.sonarsource.com/t/exclude-folder-from-analysis-net-c/130918 "2024-12-02T13:39:27Z")

</div>

Hi there We have an issue with build performance during sonarqube analysis on SonarQube Community Server. One project in our solution takes 33028.848 seconds to analyze while everything else seems to be fine. This resul…

---

## [Lines of code and exclusions](https://community.sonarsource.com/t/lines-of-code-and-exclusions/131184)

<div class="topic-metadata">

**Author:** [@Ilya\_S](https://community.sonarsource.com/u/Ilya_S)\
**Replies:** 1\
**Last updated:** [November 27, 2024, 3:11pm UTC](https://community.sonarsource.com/t/lines-of-code-and-exclusions/131184 "2024-11-27T15:11:09Z")

</div>

Version: 8.6.1.40680 Date: 2024-11-27 Hello all, I have updated exclusions to be quite wide (list of directories in \*\*/name/\*\* format), but I do not see any change in Lines of Code for a project. I do see a decrease i…

---

## [Sonar.issue.ignore.block not working for golang code?](https://community.sonarsource.com/t/sonar-issue-ignore-block-not-working-for-golang-code/128773)

<div class="topic-metadata">

**Author:** [@rvdurm](https://community.sonarsource.com/u/rvdurm)\
**Replies:** 3\
**Last updated:** [October 24, 2024, 12:09pm UTC](https://community.sonarsource.com/t/sonar-issue-ignore-block-not-working-for-golang-code/128773 "2024-10-24T12:09:51Z")

</div>

We are currently evaluating sonar using the community edition v10.6 (92116) hosted on our kubernetes clusters. We are experiencing problems with the sonar.issue.ignore.block configuration, golang code seems not to comply…

---

## [Difficulty Excluding Specific Folder and Contents in Go Project Sonar Analysis](https://community.sonarsource.com/t/difficulty-excluding-specific-folder-and-contents-in-go-project-sonar-analysis/124568)

<div class="topic-metadata">

**Author:** [@tanmesh](https://community.sonarsource.com/u/tanmesh)\
**Replies:** 1\
**Last updated:** [September 9, 2024, 4:25pm UTC](https://community.sonarsource.com/t/difficulty-excluding-specific-folder-and-contents-in-go-project-sonar-analysis/124568 "2024-09-09T16:25:49Z")

</div>

SonarQube version: \[Community Edition Version 9.9.3 (build 79811)\] Scanner: Sonar Scanner Container Image (sonarsource/sonar-scanner-cli:latest) Deployment: SonarQube deployed via zip. Goal: I want to exclude the /ent…

---

## [Not using sonar.exclusions but getting deprecation warning](https://community.sonarsource.com/t/not-using-sonar-exclusions-but-getting-deprecation-warning/109974)

<div class="topic-metadata">

**Author:** [@Luiz\_Soares](https://community.sonarsource.com/u/Luiz_Soares)\
**Replies:** 4\
**Last updated:** [August 1, 2024, 10:53am UTC](https://community.sonarsource.com/t/not-using-sonar-exclusions-but-getting-deprecation-warning/109974 "2024-08-01T10:53:37Z")

</div>

When checking analysis from Azure DevOps builds (.NET + Typescript) I got that message at top right corner saying there are warnings in last analysis: Specifying module-relative paths at project level in the property ‘…

---

## [Excluding coverage with \`sonar.coverage.exclusions\` is not working](https://community.sonarsource.com/t/excluding-coverage-with-sonar-coverage-exclusions-is-not-working/117335)

<div class="topic-metadata">

**Author:** [@Bradock](https://community.sonarsource.com/u/Bradock)\
**Replies:** 6\
**Last updated:** [June 21, 2024, 12:51pm UTC](https://community.sonarsource.com/t/excluding-coverage-with-sonar-coverage-exclusions-is-not-working/117335 "2024-06-21T12:51:58Z")

</div>

Despite going through the docs and the many questions () this parameter is not working for me: CI system used Github Actions with SonarSource/sonarcloud-github-action@master Languages of the repository: TS and Py Error…

---

## [Unparsable TypeScript file generates an error even when excluded](https://community.sonarsource.com/t/unparsable-typescript-file-generates-an-error-even-when-excluded/117425)

<div class="topic-metadata">

**Author:** [@TomasMalecek](https://community.sonarsource.com/u/TomasMalecek)\
**Replies:** 3\
**Last updated:** [June 19, 2024, 2:46pm UTC](https://community.sonarsource.com/t/unparsable-typescript-file-generates-an-error-even-when-excluded/117425 "2024-06-19T14:46:39Z")

</div>

In a C# test project, I have an unparsable JavaScript file as part of the test data. The SonarQubeAnalyze@5 task in a DevOps Server 2022u1 YAML pipeline, provided by SonarQube DevOps extension 5.19.1, using SonarQube Ent…

---

## [Improvement: Don't log "... does not exist in the analysis context" warnings for excluded files](https://community.sonarsource.com/t/improvement-dont-log-does-not-exist-in-the-analysis-context-warnings-for-excluded-files/73799)

<div class="topic-metadata">

**Author:** [@jam](https://community.sonarsource.com/u/jam)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 9:38am UTC](https://community.sonarsource.com/t/improvement-dont-log-does-not-exist-in-the-analysis-context-warnings-for-excluded-files/73799 "2024-05-21T09:38:36Z")

</div>

Which versions are you using (SonarQube: 9.6.1 (build 59531) What are you trying to achieve: We have a project P and shared code. The shared code has its own SonarQube project, but it exists as a folder in project P. W…

---

## [Skip branch policy quality gate some cases](https://community.sonarsource.com/t/skip-branch-policy-quality-gate-some-cases/115067)

<div class="topic-metadata">

**Author:** [@andressantos10](https://community.sonarsource.com/u/andressantos10)\
**Replies:** 2\
**Last updated:** [May 16, 2024, 2:03pm UTC](https://community.sonarsource.com/t/skip-branch-policy-quality-gate-some-cases/115067 "2024-05-16T14:03:19Z")

</div>

ALM used - Azure DevOps CI system used- Azure DevOps Scanner command used when applicable (private details masked) Languages of the repository Only if the SonarCloud project is public, the URL And if you need help wit…

---

## [Exclusion Behavior Question](https://community.sonarsource.com/t/exclusion-behavior-question/114108)

<div class="topic-metadata">

**Author:** [@michaelrowe01](https://community.sonarsource.com/u/michaelrowe01)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 8:52pm UTC](https://community.sonarsource.com/t/exclusion-behavior-question/114108 "2024-04-23T20:52:35Z")

</div>

I am using SonarQube Community Edition on my macOS machine. It is setup locally. I have a code base that includes a bunch of htmls, and I have set the following parameters: mvn clean compile sonar:sonar \\ -Dsonar.proj…

---

## [Sonar.exclusions parameter is not working](https://community.sonarsource.com/t/sonar-exclusions-parameter-is-not-working/29839)

<div class="topic-metadata">

**Author:** [@gibyalex](https://community.sonarsource.com/u/gibyalex)\
**Replies:** 6\
**Last updated:** [February 22, 2024, 12:57pm UTC](https://community.sonarsource.com/t/sonar-exclusions-parameter-is-not-working/29839 "2024-02-22T12:57:51Z")

</div>

sonar.exclusions parameter is not working for Sonarqube, the sonar.exclusions parameter defined in Jenkins or project setting in SonarQube Server it is not taking effect and scanning all files. i want to exclude css , …

---

## [File exclusion not working](https://community.sonarsource.com/t/file-exclusion-not-working/108965)

<div class="topic-metadata">

**Author:** [@jaltenbernd](https://community.sonarsource.com/u/jaltenbernd)\
**Replies:** 6\
**Last updated:** [February 13, 2024, 8:56pm UTC](https://community.sonarsource.com/t/file-exclusion-not-working/108965 "2024-02-13T20:56:08Z")

</div>

In my SonarCloud project it looks like the file exclusion is not working and causing my “lines of code” to go through the roof. I set it to exclude all .SQL files, but it’s not working. Am I missing another settings? Scr…

---

## [Specifying module-relative paths at project level in the property 'sonar.exclusions' is deprecated](https://community.sonarsource.com/t/specifying-module-relative-paths-at-project-level-in-the-property-sonar-exclusions-is-deprecated/106401)

<div class="topic-metadata">

**Author:** [@andrei9m](https://community.sonarsource.com/u/andrei9m)\
**Replies:** 5\
**Last updated:** [January 2, 2024, 9:55am UTC](https://community.sonarsource.com/t/specifying-module-relative-paths-at-project-level-in-the-property-sonar-exclusions-is-deprecated/106401 "2024-01-02T09:55:49Z")

</div>

Specifying module-relative paths at project level in the property ‘sonar.exclusions’ is deprecated. To continue matching files like ‘project\_name/Program.cs’, update this property so that patterns refer to project-relati…

---

## [Have configured SonarLint connected mode to SonarQube Server, why difference in violation count?](https://community.sonarsource.com/t/have-configured-sonarlint-connected-mode-to-sonarqube-server-why-difference-in-violation-count/101390)

<div class="topic-metadata">

**Author:** [@Balachandran\_AV](https://community.sonarsource.com/u/Balachandran_AV)\
**Replies:** 21\
**Last updated:** [November 22, 2023, 5:09pm UTC](https://community.sonarsource.com/t/have-configured-sonarlint-connected-mode-to-sonarqube-server-why-difference-in-violation-count/101390 "2023-11-22T17:09:34Z")

</div>

have configured SonarLint in the connected mode to sonarqube server. in the quality profile have only sonarrules (no 3rd party plugins such as Findbugs). but still violation counts are different, means high on the sonarq…

---

## [Test File Exclusions not working](https://community.sonarsource.com/t/test-file-exclusions-not-working/102693)

<div class="topic-metadata">

**Author:** [@AEfe](https://community.sonarsource.com/u/AEfe)\
**Replies:** 2\
**Last updated:** [October 17, 2023, 12:26pm UTC](https://community.sonarsource.com/t/test-file-exclusions-not-working/102693 "2023-10-17T12:26:11Z")

</div>

Hello, We have the Sonarqube Community Edition 8.9.8. We are trying to exclude some test files using the web interface, but it is not working at all. The test files are located in folders called test in different direc…

---

## [Directory execlusion support for sonarqube lint](https://community.sonarsource.com/t/directory-execlusion-support-for-sonarqube-lint/98132)

<div class="topic-metadata">

**Author:** [@Mahmoud\_abdelsalam](https://community.sonarsource.com/u/Mahmoud_abdelsalam)\
**Replies:** 2\
**Last updated:** [August 29, 2023, 7:44am UTC](https://community.sonarsource.com/t/directory-execlusion-support-for-sonarqube-lint/98132 "2023-08-29T07:44:39Z")

</div>

I’m using sonarlint for ViusalStudio 2022. I’m not connected to SonarQube server. I’m trying to execlude entityframwork migrations folder from being analyzed. I created sonar-project.properties file in my root directory…

---

## [How to exclude folders from sonarlint scan](https://community.sonarsource.com/t/how-to-exclude-folders-from-sonarlint-scan/51681)

<div class="topic-metadata">

**Author:** [@chaorany](https://community.sonarsource.com/u/chaorany)\
**Replies:** 11\
**Last updated:** [August 27, 2023, 6:49pm UTC](https://community.sonarsource.com/t/how-to-exclude-folders-from-sonarlint-scan/51681 "2023-08-27T18:49:40Z")

</div>

Hi, I’d like to exclude some folders from sonarlint in vscode. I couldn’t figure out how to configure it. Any help? Chaoran

---

## [Sonarqube Coverage Exclusion Paths](https://community.sonarsource.com/t/sonarqube-coverage-exclusion-paths/97935)

<div class="topic-metadata">

**Author:** [@Mehmet\_Inan](https://community.sonarsource.com/u/Mehmet_Inan)\
**Replies:** 1\
**Last updated:** [August 24, 2023, 3:43pm UTC](https://community.sonarsource.com/t/sonarqube-coverage-exclusion-paths/97935 "2023-08-24T15:43:40Z")

</div>

hi, we use sonarqube enterprise edition 20M version. I would like to exclude from sonarqube server interface coverage exclusions(2. screenshot) coverage paths which is painted yellow below screenshot. I used these pat…

---

## [Ignore line scanning](https://community.sonarsource.com/t/ignore-line-scanning/2214)

<div class="topic-metadata">

**Author:** [@IgorCR](https://community.sonarsource.com/u/IgorCR)\
**Replies:** 7\
**Last updated:** [August 3, 2023, 4:03pm UTC](https://community.sonarsource.com/t/ignore-line-scanning/2214 "2023-08-03T16:03:04Z")

</div>

Hi, I am using Sonarqube to scan our iOs Swift code, and I am getting some issues in the lines I want to ignore, but not sure what is going on. It looks like that Sonar is scanning lines marked with //NOSONAR anyway. …

---

## [Keep an exception configured in multiple branches](https://community.sonarsource.com/t/keep-an-exception-configured-in-multiple-branches/96094)

<div class="topic-metadata">

**Author:** [@Ricardo\_Emilio\_Borto](https://community.sonarsource.com/u/Ricardo_Emilio_Borto)\
**Replies:** 2\
**Last updated:** [July 21, 2023, 7:15pm UTC](https://community.sonarsource.com/t/keep-an-exception-configured-in-multiple-branches/96094 "2023-07-21T19:15:12Z")

</div>

In SonarQube Enterprise Edition Version 9.9 When I make exceptions in a development branch, I need that exception to stay automatically set the same when another branch is created, is this possible?

---

## [Sonarcloud exclusion path issue](https://community.sonarsource.com/t/sonarcloud-exclusion-path-issue/94399)

<div class="topic-metadata">

**Author:** [@F.Victoriano](https://community.sonarsource.com/u/F.Victoriano)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 6:47pm UTC](https://community.sonarsource.com/t/sonarcloud-exclusion-path-issue/94399 "2023-06-22T18:47:55Z")

</div>

We have an issue when we tried moving two of our repositories from SonarQube to SonarCloud. Setting the exclusions as they were in SonarQube does not seem to work. We set some files to be excluded via “sonar.exclusions”…

---

## [SonarQube is not honouring coverage exclusions](https://community.sonarsource.com/t/sonarqube-is-not-honouring-coverage-exclusions/92858)

<div class="topic-metadata">

**Author:** [@Deepak\_Daniel](https://community.sonarsource.com/u/Deepak_Daniel)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 1:34pm UTC](https://community.sonarsource.com/t/sonarqube-is-not-honouring-coverage-exclusions/92858 "2023-06-21T13:34:11Z")

</div>

Hello! My team has a hosted SonarQube server (Enterprise Edition) where we push PR analysis. The analysis is done using the Maven plugin by running the command mvn sonar:sonar. For this command, we also provide the path…

[Next page](https://community.sonarsource.com/tag/exclusions/108.md?match_all_tags=true&page=1&tags%5B%5D=exclusions)
