This is just plain wrong. ‘this’ is in fact nullable here.
Version: Enterprise Edition v10.7 (96327)
This is just plain wrong. ‘this’ is in fact nullable here.
Version: Enterprise Edition v10.7 (96327)
Hey there.
I’ve moved your post to the section on reporting false-positives.
Can you please review this post and update your report?
It’s a false-positive. Sample code is attached. Language is also tagged. Please just fix it. I lost time and nerves because of many of these bogus errors. Not trying to be rude but it’s not my job to provide a whole sample project for you, sorry. I am not getting paid for this. You are getting paid for the license. You have sample code here and a screenshot also.
That’s not really how it works here in our free community forum.
Feel free to inquire with somebody about Commercial Support if that’s what your expectation is.
If you’d like to collaborate productively, feel free to pop back!
Since you’ve kindly updated your post with what version you use, I can tell you that FPs for this rule were fixed in the latest versions of SonarQube Server.
v10.7 is an EOL version. You should upgrade to, at a minimum, v2025.1.2, although you’ll find fixes to this rule in v2025.3.1.
The upgrade guide can always be found here.
Thank you, will report back to our infastructure team.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.