jagadeesh2
(Jagadeesh)
November 10, 2022, 2:58pm
1
Hi Team,
We got the report for a false positive in C# which actually claimed by user as not a bug as per C#10 feature File-Scoped namespace Declaration
C#10 microsoft Reference for File-Scoped namespace Declaration: File scoped namespaces - C# feature specifications | Microsoft Learn
rule id: csharpsquid:S3903
Please check and lets us know is there any change we can expect?
Make sure to read this post before raising a thread here:
Hey SonarSource Community!
False-positives happen , as do false-negatives, and we’re eager to fix them. We are thrilled when our users report problems, so we can make our products better.
What is a false-positive (FP)?
A false-positive is when an issue is raised unexpectedly on code that should not trigger an issue, or where the suggested action doesn’t make any sense for the code.
What is a false-negative (FN)?
A false-negative is when an issue should be raised on a piece of code, but isn’t.
…
Colin
(Colin)
November 11, 2022, 9:47am
2
Hey there.
You moved the template post to the bottom, but I’m not sure you actually read it.
Please provide the requested information from that post, like the product(s) you’re using (and version, if relevant).
jagadeesh2
(Jagadeesh)
November 11, 2022, 1:36pm
3
Running SonarQube 8.9.2
Let me know what more details required. I have attached screenshot and shared rule id.
Colin
(Colin)
November 11, 2022, 2:17pm
4
It looks like you face this issue: https://github.com/SonarSource/sonar-dotnet/issues/4731
A fix for which is available in the latest version of SonarQube (v9.7 )