Sonar Community
C# try-catch-finally
Rules and Languages
Report False-positive / False-negative...
Colin
(Colin)
September 8, 2025, 8:37am
2
You’re gonna need to give us a lot more data
What version of SonarQube are you using?
What language are you analyzing?
Can you give an example code snippet where an issue is raised you don’t expect it to be?
show post in topic
Related topics
Topic
Replies
Views
Activity
S1854 false positive in C# catch when variable used in finally with null-conditional
Visual Studio
csharp
,
false-positive
,
universal
1
79
January 22, 2026
S1854 False positive
Report False-positive / False-negative...
csharp
1
899
August 23, 2019
Try-Catch confuses detection of boolean changes (S2589)
Report False-positive / False-negative...
csharp
1
623
September 2, 2019
Problem with C# S2327 - "try" statements with identical "catch" and/or "finally" blocks should be merged
Visual Studio
csharp
,
visualstudio
,
rules
,
bug-no-category
1
788
September 14, 2020
S1854 C# False positive in loop with try/catch block
Report False-positive / False-negative...
csharp
,
sonarqube-ide
2
790
January 30, 2022