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

蓝咒 提交于 2019-12-22 10:18:38

问题


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:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/33069088/how-to-group-sonar-results-by-severity-major-minor-critical-in-intellij-commu

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