2017-05-31 105 views
0

我正在開發一個Xamarin項目。我想用sonarqube來檢查代碼質量。我看到有一個支持.net/c#項目。我遵循Xamarin的指令here。我能夠完成開始和重建的前兩個步驟。當我執行第三步「結束」Sonarqube是否支持Xamarin代碼質量?

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 

回答

1

現在SonarQube.Scanner.MSBuild.exe對MAC的支持,它的工作原理。

的MSBuild的版本3.0.2 sonarqube不支持非窗口操作系統,現在SonarQube.Scanner.MSBuild.exe 4.0對MAC

另外,sonarC#插件必須是> 6.6運行支持mac os版本的分析。

請檢查下面的鏈接, https://forums.xamarin.com/discussion/111935/source-code-analysis-for-xamarin-project-with-sonarqube-on-mac/p1?new=1

+0

雖然此鏈接可以回答這個問題,最好是在這裏有答案的主要部件,並提供鏈接以供參考。如果鏈接頁面更改,則僅鏈接答案可能會失效。 - [來自評論](/ review/low-quality-posts/18198036) – derloopkat