False Positive Still Present in SonarQube Community v25.10.0.114319

Rule: S5944 – “Do not make use of the implicit return value”
Language: VB.NET
SonarQube Version: Community Edition v25.10.0.114319

Description

Although this false positive was previously discussed and noted for fixing in earlier SonarQube versions, it still occurs in v25.10.0.114319.

Example

Public Function DllGetClassObject(...) As UInteger
    If _library.GetUnmanagedFunction(Of DllGetClassObject)(...) Then
        Return DllGetClassObjectDelegate(...)
    End If
End Function

SonarQube still raises:

“Do not make use of the implicit return value.”

Expected

No issue should be reported — the function uses a valid Return statement.

Actual

Rule S5944 is still triggered, likely because of the Of DllGetClassObject generic syntax or delegate invocation.

Notes

  • Confirmed using SonarQube Community Edition v25.10.0.114319 (the latest publicly available build).

  • The previously announced fix appears not to be included or does not cover this specific syntax pattern.

Hi,

Welcome to the community and thanks for this report!

Could you point me to the previous report?

 
Thx,
Ann

Hi Ann

False Positive with vbnet:S5944 - SonarQube Cloud - Sonar Community

S5944 warning implicit return value when using as a delegate - Rules and Languages / Report False-positive / False-negative… - Sonar Community

I have two kind false positive

I’m not sure the second one was fixed?

Hi,

Actually, it looks like both of these are still Open. So unfortunately you’re getting the currently-expected behavior.

And I’ll let the team know there’s additional interest in these.

 
Ann

Hi,

Thank you for reporting this case. While there exists a fixed false positive in S5944, that one is not about generic arguments.

This is a new False Positive that we have not seen before. I’ve created a new internal ticket for it.

1 Like