# False negative: csharpsquid:S2325 - tiny exception

**URL:** <https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478>\
**Category:** Report False-positive / False-negative...\
**Tags:** csharp, dotnet\
**Created:** [February 11, 2026, 10:16am UTC](https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478 "2026-02-11T10:16:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregorRutaAIBob](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregorrutaaibob/32/74572_2.png) [@GregorRutaAIBob](https://community.sonarsource.com/u/GregorRutaAIBob)\
**Post date:** [February 11, 2026, 10:16am UTC](https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478/1 "2026-02-11T10:16:45Z")

</div>

Good morning,

The interface IExternalCommand from RevitAPI does not accept static property without an instance.

Please consider adding it to the the Exception list.

Please provide feedback if reporting issues on niche API as RevitAPI is relevant for the product development. I want to support Sonar Community but do not wish to clutter the board.

Thanks, have an amazing day!

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/6/4/64d602de331db3ea867541792f99578e6dac0fda.png)

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [February 12, 2026, 5:07pm UTC](https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478/2 "2026-02-12T17:07:19Z")

</div>

Hi,

Can you give your context for this? I.e. are you on SonarQube Cloud? SonarQube for IDE (flavor and version)? SonarQube self-managed (flavor and version)?

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![GregorRutaAIBob](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregorrutaaibob/32/74572_2.png) [@GregorRutaAIBob](https://community.sonarsource.com/u/GregorRutaAIBob)\
**Post date:** [February 13, 2026, 11:18am UTC](https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478/3 "2026-02-13T11:18:47Z")

</div>

Hi Ann,

I am using SonarQube Cloud. I think the issue is independent of the environement.  
I just wanted to know if such feedback is relevant or is it too niche subject.

Thanks for the reply 🙂

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [February 13, 2026, 12:50pm UTC](https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478/5 "2026-02-13T12:50:46Z")

</div>

Hi,

Thanks for your context. I needed to make sure you were seeing this in a current version.

I’ve flagged this for the language experts.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![GregorRutaAIBob](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregorrutaaibob/32/74572_2.png) [@GregorRutaAIBob](https://community.sonarsource.com/u/GregorRutaAIBob)\
**Post date:** [February 13, 2026, 1:32pm UTC](https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478/6 "2026-02-13T13:32:10Z")

</div>

Thank you, I will be more careful in the future.

---

<div class="post-metadata">

**Author:** ![Martin\_Strecker](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/martin_strecker/32/32318_2.png) [@Martin\_Strecker](https://community.sonarsource.com/u/Martin_Strecker)\
**Post date:** [February 25, 2026, 8:04pm UTC](https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478/7 "2026-02-25T20:04:09Z")

</div>

Hi @GregorRutaAIBob,

Thanks for the report — the feedback is absolutely relevant, even for niche APIs.

We investigated a potential root cause: the RevitAPI assembly is likely compiled without nullable reference types (`#nullable disable`), which could cause our analyzer to fail to recognize your method as an interface implementation. We added regression tests covering all combinations of nullable context between the assembly defining the interface and the assembly containing the implementation — all pass correctly with current versions of the analyzer.

We were unable to reproduce the false positive in our test environment. Could you share:

- Which version of the RevitAPI NuGet package you are referencing (or the DLL version if referencing directly)
- The verbose scanner logs. Add `/d:"sonar.verbose=true"` to the `BEGIN` step:

```auto
dotnet sonarscanner begin /k:"MyProject" /d:"sonar.verbose=true"

```

or for Azure Pipelines:

```yml
- task: SonarCloudPrepare@3
    inputs:
      extraProperties: |
        sonar.verbose=true

```

Note that most relevant logging happens during the `END` step (`SonarCloudAnalyze` / `Run Code Analysis`).

This will help us pinpoint the actual root cause.

---

<div class="post-metadata">

**Author:** ![GregorRutaAIBob](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregorrutaaibob/32/74572_2.png) [@GregorRutaAIBob](https://community.sonarsource.com/u/GregorRutaAIBob)\
**Post date:** [March 3, 2026, 11:00am UTC](https://community.sonarsource.com/t/false-negative-csharpsquid-s2325-tiny-exception/177478/9 "2026-03-03T11:00:53Z")

</div>

Thank you so much! I will reactivate the thread when I run into the issue again.  
The PR has been merged nearly a month ago.
