我在做一个Xamarin项目。我想用声呐检查代码质量。我看到了对.net/c#项目的支持。我遵循了Xamarin.I的这里指令,我完成了开始和重建的前两个步骤。当我执行第三步“结束”时
SonarQube.Scanner.MSBuild.exe结束
我的错误越来越少
mono /Users/apple/Downloads/sonar-scanner-msbuild-2.3.2.573/SonarQube.Scanner.MSBuild.exe end
SonarQube Scanner for MSBuild 2.3.2
Default properties file was found at /Users/apple/Downloads/sonar-scanner-msbuild-2.3.2.573/SonarQube.Analysis.xml
Loading analysis properties from /Users/apple/Downloads/sonar-scanner-msbuild-2.3.2.573/SonarQube.Analysis.xml
Post-processing started.
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
Execution failed. The specified executable does not exist: /Users/apple/Downloads/sonar-scanner-msbuild-2.3.2.573/sonar-scanner-3.0.3.778\bin\sonar-scanner.bat
The SonarQube Scanner did not complete successfully
13:17:17.361 Creating a summary markdown file...
13:17:17.366 Post-processing failed. Exit code: 1发布于 2017-06-01 13:59:58
目前不支持在非Windows平台上使用扫描仪。
有一个悬而未决的问题:https://jira.sonarsource.com/browse/SONARMSBRU-319
发布于 2017-12-08 17:01:27
现在SonarQube.Scanner.MSBuild.exe有了对mac的支持,它起作用了。
MSBuild 3.0.2版的声呐不支持非窗口操作系统,现在的SonarQube.Scanner.MSBuild.exe 4.0支持Mac4.0
此外,sonarC#插件必须大于6.6才能在mac版本上运行分析。
https://stackoverflow.com/questions/44278774
复制相似问题