SonarQube analysis mode: preview vs issues

故事扮演 提交于 2019-12-04 03:16:56

问题


Which are the key differences between these preview and issues modes of SonarQube (greater than 5.2) analysis?

Considering http://docs.sonarqube.org/display/SONAR/Concepts the main differences between publish and preview is that preview reports only issues (no measures) and no report is pushed back to the SonarQube server; this idea is clear. But what about issues? It is written that issues is the same as preview, but should be used only for tools development. I'm a little confused, what do they mean by tools?


回答1:


The theory is that preview mode is what a end user should use for example when using issues report feature. The goal is to run an analysis without publishing results. The issues mode is a technical mode similar to preview but focusing only on issues. It can be used in combination with one of the pull request analysis plugin (like GitHub plugin).

Now in practice, in SonarQube 5.6, they are doing exactly the same thing. It is a bit confusing I admit, so maybe we could try to simplify this.




回答2:


sonar.analysis.mode Deprecated since SQ 6.6. see https://docs.sonarqube.org/latest/analysis/analysis-parameters/



来源:https://stackoverflow.com/questions/38118631/sonarqube-analysis-mode-preview-vs-issues

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