Make sure to read this post before raising a thread here:
Then tell us:
- What language is this for?
C#, .NET10, MAUI - Which rule?
S2325 - Why do you believe it’s a false-positive/false-negative?
Solving this warning causes the error CS0176 to appear - Are you using
- SonarQube Cloud?
Yes - SonarQube Server / Community Build - which version?
No - SonarQube for IDE - which IDE/version?
Yes on Rider version : 12.7.0.85118- in connected mode with SonarQube Server / Community Build or SonarQube Cloud?
- SonarQube Cloud?
- How can we reproduce the problem? Give us a self-contained snippet of code (formatted text, no screenshots)
On a new MAUI project, create a new event, like the Tapped event on an element.
I passed in static as proposed by Sonar.
I got this error, which is normal, a call-back from an event should not be static.


