Must-share information (formatted with Markdown):
- Tool version:
Gradle (Wrapper) 7.6.2, SonarQube 9.9.1, Sonar Scanner Gradle 220.127.116.1177, JDK 17
- SonarQube deployed as provided service on Kubernetes
- what are you trying to achieve
Sonar Scanner Gradle should detect Kotlin S1128 correctly
Our team’ve just modularized the project lately, and we found out that the SonarQube report via Sonar Scanner Gradle plugin is overlooking the rule “Unnecessary imports should be removed” in case it’s the import from same project module. The SonarLint detects it alright, even the console log indicates the line with issue, but the final result on SonarQube does not. It makes our code review unreliable and error-prone. I have created a example repository for reproducing this : Example repo
Updated: To be more informative, in our SonarQube we’ve extended builtin “Sonar-way” profile and bump the severity from “Minor” to “Critical”.