# \#nosonar

**URL:** https://community.sonarsource.com/tag/nosonar/183.md

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

---

## [Python Issue Suppression Improvements (NOSONAR) and New Rules](https://community.sonarsource.com/t/python-issue-suppression-improvements-nosonar-and-new-rules/145017)

<div class="topic-metadata">

**Author:** [@sebastian.zumbrunn](https://community.sonarsource.com/u/sebastian.zumbrunn)\
**Replies:** 4\
**Last updated:** [December 12, 2025, 1:23pm UTC](https://community.sonarsource.com/t/python-issue-suppression-improvements-nosonar-and-new-rules/145017 "2025-12-12T13:23:10Z")

</div>

Hello Python Developers, It fills us with great pleasure to announce the long-awaited feature to finally be able to suppress individual rules with # NOSONAR(SXXXX, ...). The most recent release allows you to specify whi…

---

## [Custom NOSONAR Roslyn Analyzer rule only detects in Rule Project, not in other C# projects](https://community.sonarsource.com/t/custom-nosonar-roslyn-analyzer-rule-only-detects-in-rule-project-not-in-other-c-projects/144502)

<div class="topic-metadata">

**Author:** [@Stefan-Cosmin](https://community.sonarsource.com/u/Stefan-Cosmin)\
**Replies:** 4\
**Last updated:** [August 11, 2025, 7:25am UTC](https://community.sonarsource.com/t/custom-nosonar-roslyn-analyzer-rule-only-detects-in-rule-project-not-in-other-c-projects/144502 "2025-08-11T07:25:57Z")

</div>

Hi, I’ve developed a custom Roslyn analyzer to detect // NOSONAR comments and packaged it as a SonarQube plugin (JAR). The rule is correctly installed in SonarQube, appears in the Quality Profile, and works as expected …

---

## [Sonarqube NOSONAR comment not working on xml web.config file](https://community.sonarsource.com/t/sonarqube-nosonar-comment-not-working-on-xml-web-config-file/132486)

<div class="topic-metadata">

**Author:** [@paulo.silva](https://community.sonarsource.com/u/paulo.silva)\
**Replies:** 2\
**Last updated:** [December 27, 2024, 9:55am UTC](https://community.sonarsource.com/t/sonarqube-nosonar-comment-not-working-on-xml-web-config-file/132486 "2024-12-27T09:55:29Z")

</div>

Hi All, I’m facing some issues trying to use NOSONAR comment on web.config XML, and it keeps marking as Security Issue, as you can see below, this is token to be replaced during the runtime and not a hardcoded secret as …

---

## [How to Verify NoSonarFilter Functionality in a Custom SonarQube Plugin](https://community.sonarsource.com/t/how-to-verify-nosonarfilter-functionality-in-a-custom-sonarqube-plugin/136090)

<div class="topic-metadata">

**Author:** [@Dushyant\_Aneja](https://community.sonarsource.com/u/Dushyant_Aneja)\
**Replies:** 4\
**Last updated:** [March 5, 2025, 9:36am UTC](https://community.sonarsource.com/t/how-to-verify-nosonarfilter-functionality-in-a-custom-sonarqube-plugin/136090 "2025-03-05T09:36:47Z")

</div>

I am working on activating the NOSONAR feature in a custom SonarQube plugin we implemented for the Natural mainframe language. To achieve this, I used the NoSonarFilter.NoSonarInFile() method, as documented in the SonarQ…

---

## [Issues Count for "// NOSONAR" comments always falsely shown as 0](https://community.sonarsource.com/t/issues-count-for-nosonar-comments-always-falsely-shown-as-0/126793)

<div class="topic-metadata">

**Author:** [@HSNG](https://community.sonarsource.com/u/HSNG)\
**Replies:** 9\
**Last updated:** [October 18, 2024, 3:01pm UTC](https://community.sonarsource.com/t/issues-count-for-nosonar-comments-always-falsely-shown-as-0/126793 "2024-10-18T15:01:12Z")

</div>

Hi, We are currently using SonarQube 10.2. We found an issue with “// NOSONAR” rules in Rules. The issue count for C language is always being shown as 0. Below is how it looks like in the Rules page: Issues(\[0\] No …

---

## [Is there any way we can keep track of how many times NOSONAR is being used?](https://community.sonarsource.com/t/is-there-any-way-we-can-keep-track-of-how-many-times-nosonar-is-being-used/126085)

<div class="topic-metadata">

**Author:** [@HSNG](https://community.sonarsource.com/u/HSNG)\
**Replies:** 1\
**Last updated:** [September 24, 2024, 6:44am UTC](https://community.sonarsource.com/t/is-there-any-way-we-can-keep-track-of-how-many-times-nosonar-is-being-used/126085 "2024-09-24T06:44:28Z")

</div>

Hi, Is there any way we can keep track of how many times NOSONAR is being used? Thanks and Regards.

---

## [//nosonar ignored in C# code](https://community.sonarsource.com/t/nosonar-ignored-in-c-code/88256)

<div class="topic-metadata">

**Author:** [@m-adami](https://community.sonarsource.com/u/m-adami)\
**Replies:** 4\
**Last updated:** [July 19, 2024, 9:58am UTC](https://community.sonarsource.com/t/nosonar-ignored-in-c-code/88256 "2024-07-19T09:58:01Z")

</div>

Must-share information (formatted with Markdown): Sonarqube Community Edition Version 8.9.8, Azure Devops plugin SonarQube on premises try to have SonarQube ignore some C# files adding some //NOSONAR comments Hello, I…

---

## [Create rule tracking usage of NOSONAR for languages other than java and php](https://community.sonarsource.com/t/create-rule-tracking-usage-of-nosonar-for-languages-other-than-java-and-php/40250)

<div class="topic-metadata">

**Author:** [@Sammy](https://community.sonarsource.com/u/Sammy)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 10:25am UTC](https://community.sonarsource.com/t/create-rule-tracking-usage-of-nosonar-for-languages-other-than-java-and-php/40250 "2024-04-02T10:25:13Z")

</div>

Hello, we are using SonarQube 8.6 and the plugins checkstyle, findbugs and pmd. The rule java:NoSonar allows to track the usage of the NoSonar comment. I am wondering what would be the best way to achieve the same for…

---

## [Disable NOSONAR usage globally](https://community.sonarsource.com/t/disable-nosonar-usage-globally/95065)

<div class="topic-metadata">

**Author:** [@raphaelcarvalho](https://community.sonarsource.com/u/raphaelcarvalho)\
**Replies:** 2\
**Last updated:** [July 4, 2023, 4:12pm UTC](https://community.sonarsource.com/t/disable-nosonar-usage-globally/95065 "2023-07-04T16:12:20Z")

</div>

Hello! I would like to know if there is any way to disable the use of NOSONAR globally in our projects instead of working with the rules that detect the use of it. Thank you!

---

## [Suppress errors by phpstrom](https://community.sonarsource.com/t/suppress-errors-by-phpstrom/51445)

<div class="topic-metadata">

**Author:** [@user2](https://community.sonarsource.com/u/user2)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 8:13am UTC](https://community.sonarsource.com/t/suppress-errors-by-phpstrom/51445 "2021-10-14T08:13:15Z")

</div>

When I use phpstorm, how can I suppress errors by annotation?

---

## [NOSONAR comment should be respected by SonarLint plugin in C++](https://community.sonarsource.com/t/nosonar-comment-should-be-respected-by-sonarlint-plugin-in-c/50603)

<div class="topic-metadata">

**Author:** [@shojtsy](https://community.sonarsource.com/u/shojtsy)\
**Replies:** 1\
**Last updated:** [September 30, 2021, 10:26am UTC](https://community.sonarsource.com/t/nosonar-comment-should-be-respected-by-sonarlint-plugin-in-c/50603 "2021-09-30T10:26:50Z")

</div>

SonarLint plugin running in standalone mode in Clion on C++17 code does not respect the // NOSONAR comment and still highlights issues in the same line. This makes it more difficult to focus on the real issues, they get…

---

## [How to locally suppress issues while analysis of XML files?](https://community.sonarsource.com/t/how-to-locally-suppress-issues-while-analysis-of-xml-files/37485)

<div class="topic-metadata">

**Author:** [@lg2de](https://community.sonarsource.com/u/lg2de)\
**Replies:** 3\
**Last updated:** [February 1, 2021, 3:44pm UTC](https://community.sonarsource.com/t/how-to-locally-suppress-issues-while-analysis-of-xml-files/37485 "2021-02-01T15:44:55Z")

</div>

If a C# rule is not “valid” in a specific class it can be disabled locally using SuppressMessageAttribute or #pragma warning .... How to locally suppressed in XML files?

---

## [\#NOSONAR tag not getting honoured in python language for fortify rules](https://community.sonarsource.com/t/nosonar-tag-not-getting-honoured-in-python-language-for-fortify-rules/8209)

<div class="topic-metadata">

**Author:** [@PrashantMahajan](https://community.sonarsource.com/u/PrashantMahajan)\
**Replies:** 4\
**Last updated:** [March 29, 2019, 9:49am UTC](https://community.sonarsource.com/t/nosonar-tag-not-getting-honoured-in-python-language-for-fortify-rules/8209 "2019-03-29T09:49:35Z")

</div>

versions used (SonarQube : 5.6.7, Scanner : 3.0.3, sonar-python-plugin-1.8.0.1496.jar / sonar-fortify-plugin-2.0.jar ) error observed : For python language my print violations are getting suppressed by #NOSONAR tag…
