Cannot disable “Local-Variable Type Inference”

Please provide

  • Operating system: MacOS Ventura 13.4
  • SonarLint plugin version: 8.3.0.71062
  • Programming language you’re coding in: Java
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version): SonarQube, * Data Center Edition
  • Version 8.9.8 (build 54436)

I’m using IntelliJ IDEA 2022.3.2 (Ultimate Edition).

And a thorough description of the problem / question: I am unable to disable the rule “Local-Variable Type Inference”. I have checked and unchecked the checkbox, started and restarted IntelliJ. No matter what I do it continues to flag every variable declaration across my projects. The pop-up when hovering the mouse over the highlighted variable does not offer an option to turn it off either.

Hello @kerbylane,

As you are connected to SonarQube, the rule configuration in Settings > Tools > SonarLint > Rules does not apply. This applies only to projects that are not bound to SonarQube/SonarCloud.

When the project is connected, the rules configuration comes from the server. If this rule is annoying you could deactivate it in the Quality Profile assigned to your project.

Out of curiosity, why is this rule annoying you?