繁体   English   中英

MSBuild SonarQube Runner Resharper插件收到跳过信息错误文件不在sonarqube中

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM