(notice : i created an account on https://jira.sonarsource.com, but i dont have the rights to open a ticket, dunno why, so i post here).
- versions used
intellij : IntelliJ IDEA 2020.3.3 (Community Edition)
Build #IC-203.7717.56, built on March 15, 2021
Runtime version: 11.0.10+8-b1145.96 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
GC: ParNew, ConcurrentMarkSweep
Non-Bundled Plugins: com.eugenePetrenko.idea.dependencies, Error-prone plugin, zielu.gittoolbox, GrepConsole, org.sonarlint.idea, com.thoughtworks.gauge, org.jetbrains.kotlin, JProfiler
Current Desktop: XFCE
sonarqube : 126.96.36.199497
sonarlint : 188.8.131.52696 (intellij plugin)
- error observed
Connected to a sonarqube server, some rules, “secrets:” related are emitted.
These rules do not exist sonarqube server end (they were not reported before sonarlint plugin upgrade, mvn sonar:sonar do not report them).
Since we are working on sonarqube connected mode, i assume they must not be reported sonarlint + intellj end, but they are.
I tried unchecking all rules into the new settings tab “Tools>SonarLint>Rules tab” : no effect.
I tried Intellij invalidate cache & restart : no effect.
I assume these “local” rules sonarlint end are played even if connected to sonarqube : it sounds like a bug to me.
- steps to reproduce
Launch full sonarlint analysis, sonarqube connected mode, on a project which have zero sonarqube warnings : some “secrets:” warnings are emitted, these “secrets:” rules do not exist sonarqube server end, they should not be emitted.
- potential workaround
I found no workaround at this stage. Before sonarlint plugin upgrade, this was not occuring.