@SuppressWarnings Quickfix in IntelliJ

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version:
  • Programming language you’re coding in: Java
  • Is connected mode used: Yes
    • Connected to SonarCloud or SonarQube (and which version):SonarQube 10.2.1 (build 78527)

And a thorough description of the problem / question:

I know that the SonarQube project favors workflows where issues are marked as wontfix, false positive etc on the server. As such, the IntelliJ SonarLint plugin offers a “Mark issue as…” quickfix action.
This is not, however, how we work in my company (or any other projects I have been involved with over the years). For us, the code is the source of truth, and false positives and exceptions (“wontfix”) are to be annotated directly in the code.

So it would be great if SonarLint would offer the appropriate quickfix action, e.g. adding a SuppressWarnings(“java:Sxxxx”) at the appropriate level, or a //NOSONAR line comment.

Coming from Eclipse, the SonarLint Eclipse plugin has this option (or at least used to have? it’s been a bit…), and it’s hugely missed in the IntelliJ plugin.

Hi @creckord

Thanks for your feedback.
The topic is in motion on our end and your use case has already been identified.
I take note of your interest.