Clearing issue markers in Intellij IDEA

55 views
Skip to first unread message

jean.re...@gmail.com

unread,
May 7, 2018, 11:14:36 AM5/7/18
to SonarLint

Hi everyone, 
 
I'm currently working on a relatively huge legacy project and, like others before me (see https://groups.google.com/forum/#!topic/sonarlint/5kCEze6CcoY ), I have to struggle with several dozens of issue markers in almost every class file we have, cluttering the marker bar and the editor view with warnings. It is often the case that those issues can only be addressed with significant code refactoring, which is not always practicable. 
 
Our current workflow is therefore, to process Sonar issues (that are derived from company-wide rules) on a best-effort basis, and the IntelliJ built-in inspections, that are finely tuned for our project, more systematically. 
 
A convenient option in Eclipse, is to delete the Sonar issue markers once the analysis results have been satisfyingly processed after an on-demand analysis, so we can focus ourselves on the others warnings. 
 
Is it possible to do something similar in Intellij IDEA? 
 
Thanks,
Jean

janos....@sonarsource.com

unread,
May 8, 2018, 4:24:20 AM5/8/18
to SonarLint
Hi,

There is no such equivalent in IntelliJ. On the other hand, we plan a feature to show issues in the leak period, which I think will help in your use case. You can track and vote on the proposed feature here:

Cheers,
Janos

jean.re...@gmail.com

unread,
May 8, 2018, 9:30:27 AM5/8/18
to SonarLint

Hi Janos,
 
Thank you for the feedback. The support for issues related to a specific leak period certainly looks promising. I'll keep an eye on it.
 
In the meantime, would you consider a PR to support the manual deletion of Sonar issues markers in IntelliJ when on-the-fly analysis is disabled? (To be in par with the Eclipse plugin)
 
Regards,
Jean

jean.re...@gmail.com

unread,
May 9, 2018, 1:38:59 AM5/9/18
to SonarLint

I looked at the plugin code, and realized that there actually *is* a button to clear issues :-)
 
I missed it, because the button icon makes it looks like its permanently disabled:
https://pasteboard.co/HkkGRx9.png
 
This is most obvious when using the (very popular) "Darcula" skin since there is less contrast between disabled controls and the IDE frame... The icon would probably deserves to be highlighted with a more visible color, perhaps in red.

Regards,
Jean
Reply all
Reply to author
Forward
0 new messages