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.