2014-09-25 19 views
0

我使用SonarQube 4.0和C#插件3.1與FxCop 10.我有組件由上游構建提供給我。我使用Gradle中的sonar-runner插件。FxCop與SonarQube組件從不同的目錄構建時

當聲納亞軍到達的FxCop分析,我得到的日誌輸出是這樣的:

16:43:16.660 INFO - Skipping the FxCop issue at line 9 which has no associated file. 
16:43:16.660 INFO - Skipping the FxCop issue at line 12 which has no associated file. 
16:43:16.660 INFO - Skipping the FxCop issue at line 15 which has no associated file. 
16:43:16.660 INFO - Skipping the FxCop issue at line 24 which has no associated file. 
16:43:16.660 INFO - Skipping the FxCop issue at line 31 whose file "e:\9394\Sources\[path removed]\CallbackWebService.cs" is not in SonarQube. 
16:43:16.660 INFO - Skipping the FxCop issue at line 38 whose file "e:\9394\Sources\[path removed]\CallbackWebService.cs" is not in SonarQube. 
16:43:16.660 INFO - Skipping the FxCop issue at line 45 whose file "e:\9394\Sources\[path removed]\CallbackWebService.cs" is not in SonarQube. 
16:43:16.660 INFO - Sensor org.[email protected]18db7c1 done: 3344 ms 

這似乎發生,因爲TFS工作區,我SonarQube分析是在不同的位置到工作區,其中組件已建成。如果我單獨使用FxCop,看起來我可以使用/ applyoutxsl來轉換路徑,但SonarQube不允許我訪問FxCop命令行來啓用此功能,據我所知。

所以,我的問題:有沒有辦法解決這個問題?從該工作區構建程序集是不現實的,嘗試同步兩個工作區路徑是不合理的。

回答

0

這是不可能的一刻。它看起來不可能,見SONARFXCOP-8

隨意評論這張票。