How to group Sonar results by severity (MAJOR, MIN

2019-05-12 09:00发布

问题:

I would like to categorize SonarQube results by severity 'major'. I have installed SonarQube plugin in intellij community edition(version 14.1.4). When i try to run the sonar Analyze -> Inspect code, The inspection window shows all the issues by rule but does not categorize the issues by major, minor and critical. I would really appreciate if anyone has achieved this using IntelliJ IDEA Community edition.

回答1:

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


回答2:

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.