How to group Sonar results by severity (MAJOR, MINOR,CRITICAL) in intellij community edition

醉酒当歌 提交于 2019-12-06 02:12:03

According to this open github request, it looks like it used to be there in v1, but was subsequently removed. For what it's worth you can do this to help (excerpt from the link):

  • Expand All
  • Click somewhere in the window and start typing Type MAJOR
  • if you want to find all MAJOR issues

There is no easy and direct way to categorize severity with SonarLint plugin on intellij.

Below is what I found helpful.

So goto to File->Settings->Sonarlint-> General settings-> Rules

Enable/Disable Blocker, Critical, Major rules of your choice. Re-run analysis to see only the rules you want. Like-wise select all blockers if you need to see blocker issues only.

I found that in Intellij 2018.3.4, it's more useful to do code analysis through the main menu: Analyze->Inspect Code, which does a good job of grouping them by rule. It's not the same as Sonar, but there's a lot of overlap. Hopefully the plugin eventually gets improved.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!