Workspace / inherited binding override support for IntelliJ

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version: 10.8.1.79205
  • IntelliJ version: 2024.2.0.2
  • Programming language you’re coding in: Java
  • Is connected mode used: yes
    • Connected to SonarCloud or SonarQube (and which version): v9.9.6

And a thorough description of the problem / question:
The SonarLint-Plugin currently supports overriding bindings per module, these bindings are overriden for this specific module in the module graph/tree only.
If working with multiple different projects/repositories as modules in one workspace or when using the new workspace support in IntelliJ (Workspaces in IntelliJ IDEA | The IntelliJ IDEA Blog (jetbrains.com)) it is impractical to define a binding override for each submodule.

Example:
Workspace

  • Project/Repository A
    • Module A
      • Module A.A
      • Module A.B
        • Module A.B.A
    • Module B
  • Project/Repository B
    • Module A
    • Module B
      • Module B.A
        If I define a binding override for project/module A i would expect the submodules of this parent module to also inherit the same binding override unless specified otherwise.

This would greatly improve the experience with large workspaces where different modules use a different SonarQube/SonarCloud binding.

Hello Julian

Thanks for reaching out.
Indeed defining submodule inheritance with the same binding override is not possible today. That is something we are currently monitoring. Note that it is not planned in the short-term. I will store your insight in our backlog for tracking purposes and for potential future improvements.

Thanks again.

Best

Alexander

Hello Alexander!

Do you think a pull request may have a chance here? Should probably be a flag kept in the modules’ .iml file alongside the selected project key:

Cheers,
Sebastian