[英]SonarQube with C# plugin with MSBuild Runner takes a lot of time
[英]MSBuild SonarQube Runner Resharper Plugin receives skipping info errors File not in sonarqube
SonarQube - V 5.1.1
MSBuild SonarQube Runner - V 1.0
Resharper Plugin - V 2.0
Csharp Plugin - V 4.1
我正在運行命令:
- D:\SonarQube\sonarqube-5.1.1\MSBuild\MSBuild.SonarQube.Runner.exe begin /key:Test6MSBKey /name:Test6MSBProject /version:2.0
- msbuild Test6MSB.sln
- D:\SonarQube\sonarqube-5.1.1\MSBuild\MSBuild.SonarQube.Runner.exe end
我的所有reshaper錯誤都被跳過,以下問題記錄到命令窗口中:
10:20:11 PM 22:20:11.013 INFO - Sensor org.sonar.plugins.resharper.CSharpReSharperProvider$CSharpReSharperSensor@1659dbf
10:20:11 PM 22:20:11.013 INFO - Parsing ReSharper report: D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB.xml
10:20:11 PM 22:20:11.054 INFO - Skipping the ReSharper issue at line 15 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM 22:20:11.054 INFO - Skipping the ReSharper issue at line 16 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM 22:20:11.054 INFO - Skipping the ReSharper issue at line 17 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM 22:20:11.054 INFO - Skipping the ReSharper issue at line 18 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM 22:20:11.054 INFO - Skipping the ReSharper issue at line 19 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM 22:20:11.054 INFO - Skipping the ReSharper issue at line 20 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM 22:20:11.054 INFO - Skipping the ReSharper issue at line 21 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Program.cs" is no
t in SonarQube.
10:20:11 PM 22:20:11.054 INFO - Skipping the ReSharper issue at line 22 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Program.cs" is no
t in SonarQube.
10:20:11 PM 22:20:11.055 INFO - Skipping the ReSharper issue at line 23 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Properties\Assemb
lyInfo.cs" is not in SonarQube.
10:20:11 PM 22:20:11.055 INFO - Sensor org.sonar.plugins.resharper.CSharpReSha
rperProvider$CSharpReSharperSensor@1659dbf (done) | time=42ms
我不確定為什么沒有使用MSBuild Runner將代碼文件放入SonarQube。 在嘗試使用MSBuild運行器之前,我能夠在具有相同Resharper插件和xml的類似解決方案上成功使用sonar-runner.bat(v2.4),該插件和xml使用resharper命令行inspectcode可執行文件創建,並且resharper問題是成功添加到解決方案/項目的sonarqube。
但是,我注意到C#4.1插件的文檔說,現在不贊成使用sonar-runner,而是使用MSBuildSonarQube Runner 1.0分析C#項目,但是,當我嘗試使用MSBuildSonarQube Runner時,卻被跳過了如上所述的錯誤。
這是由MSBuild SonarQube Runner 1.0版中存在的測試項目檢測機制中的錯誤引起的。 它已在新版本1.0.1中修復,請參閱https://jira.sonarsource.com/browse/SONARMSBRU-121
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.