Fine-grained quality profiles

Hi Alban,

I’ve been thinking about your suggestion; I don’t think it will work in my environment, and here’s why:

  1. As already indicated, we have bitbucket (on premise) with “Sonar for Bitbucket Server” plugin to enforce quality gates for Pull Requests. I can’t see how this will work with two analysis since the plugin will look at just one branch. This might be considered not a SQ issue, but would be a problem for us.

  2. We’ve got everything in IntelliJ in a single project, and a single project cannot have two Quality Profiles (e.g. see feature request https://community.sonarsource.com/t/sonarlint-intellij-module-settings/17846)

  3. Maintenance - we used to have different Quality Profiles for different git repositories, and it has been quite a bit of work to align all of them, so I am hesitant to create new profiles again

I’ll take the chance to shamelessly promote another suggestion of mine:

https://community.sonarsource.com/t/sonarlint-for-intellij-quick-fixes/19871/

e.g. for rule “java:S110” I’d be happy to batch-suppress it via @SuppressWarnings(“java:S110”) for all existing UI classes and then activate the rule in my global SQ Quality Profile.