False-Positive for Safe Navigation Operator in VB.Net

Hello,

We are using SonarQube Community Edition, Version 9.9.2 (build 77730) and we have some false-positive issues that were detected in our VB.Net-Code:

We are also using Visual Studio 2022 (Version 17.9.6) and the SonarLint-Extension in connected mode (Version 7.8.0.88494) and this false-positive is not shown there, which is correct.

How can we solve this problem of the false detection in SonarQube?

Sorry in advance, I’m new in handling SonarQube/SonarLint.

Thanks for help !

Hi,

Welcome to the community!

What’s the rule ID? It will look something like S123.

 
Ann

Hi Ann,

Thank you!
It’s the rule S2259, do you have any ideas what is goind wrong here?
Joseph

Hello,
Has anyone a idea how to solve my problem with the different detection in SonarQube and the SonarLint-Addin?
Thank You!

Hi Joseph,

Sorry for the lag in responding. Somehow I missed the notification for your reply.

I’m going to flag this for the language experts.

 
Ann

Hi Ann,
No need to say sorry and thank you for your help !

1 Like

Hello @LG101,

I confirm this is a false positive that has been fixed since version 8.56.

SonarQube Community Edition, Version 9.9.2 comes with sonar-dotnet 8.51.
It would be better if you updated to a more recent SQ edition to profit from this and more fixes in the C#/VB.NET analyzer.

1 Like