通过在线搜索和查看 sonarqube 文档,我唯一能找到的是:
SonarQube.Scanner.MSBuild.exe /k:KeyOfProject /n:NameOfProject
msbuild.exe C:\projectpath\soultion.sln
SonarQube.Scanner.MSBuild.exe end
问题是我发现没有开关可以设置以下内容:
- 分析模式(预览、发布、增量/问题以设置 sqbe 是否将项目报告给服务器)
- 如何在 Gitlab 中对问题和代码进行声纳评论
我唯一能想到的是通过在 SonarQube.Analysis.xml 中传递属性,但声纳的语法不清楚。特性。
<Property Name="sonar.host.url">http://urlToYourServer.com</Property>
是既定的,但一切都是高度推测的。有谁真正知道他们在做什么?在线文档简直糟透了。
我检查过的来源:
- https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner-msbuild/CSharpProject https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner-msbuild/CSharpProject
- https://docs.sonarqube.org/display/SONAR/Analysis+Parameters https://docs.sonarqube.org/display/SONAR/Analysis+Parameters
- https://docs.gitlab.com/ee/ci/variables/ https://docs.gitlab.com/ee/ci/variables/
你必须使用/d:property=foo
句法。例如,/d:sonar.host.url=http://urlToYourServer.com
or /d:"sonar.host.url=http://urlToYourServer.com"
我已经更新了MSBuild 扫描仪的文档 https://docs.sonarqube.org/x/HSRq这样对于下一个人来说会更容易。
感谢您提出这个问题!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)