I will like to bring this potential issue to your attention. Reference the image below.
The bug rule violated is RSPEC-2127. In image line 7 correct violates the bug rule by providing integer as an argument which is not correct usage, this issue was flagged in Image 1. In Image 2 which is a variant of the original code, an integer is passed as an argument but it’s not flagged as violation of that same bug rule.
Sonarqube version: 9.9.0.65466
SonarScanner version: 5.0.1.3006
SonarQube Community Edition
Related language: Java
Please take a look at this post on reporting false-positives.
You’ll need to provide a text-based snippet of code, and make sure the issue can be reproduced on the latest version of SonarQube’s Community Build.
Only the latest version of SonarQube Community Build is considered active, so you’ll need to upgrade and see if the false-negative can still be produced!