首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MSBuild SonarQube运行器Resharper插件收到跳过信息错误文件不在sonarqube中

MSBuild SonarQube运行器Resharper插件收到跳过信息错误文件不在sonarqube中
EN

Stack Overflow用户
提问于 2015-07-31 13:09:47
回答 1查看 698关注 0票数 2
代码语言:javascript
复制
SonarQube - V 5.1.1
MSBuild SonarQube Runner - V 1.0
Resharper Plugin - V 2.0
Csharp Plugin - V 4.1

我正在运行以下命令:

代码语言:javascript
复制
    - 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

跳过我的所有resharper错误,并将以下问题记录到命令窗口:

代码语言:javascript
复制
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运行器将代码文件放入SonarQube。在尝试使用MSBuild运行器之前,我能够成功地在类似的解决方案中使用sonar-runner.bat(v2.4),并使用相同的Resharper插件和使用resharper命令行检查代码可执行文件创建的xml,并成功地将resharper问题添加到解决方案/项目的sonarqube中。

然而,我注意到sonar-runner 4.1插件的文档中说现在不推荐使用C# - Runner,并且使用MSBuildSonarQube Runner1.0来分析C#项目,然而,当我尝试使用MSBuildSonarQube Runner时,我得到了如上所述的跳过错误。

EN

回答 1

Stack Overflow用户

发布于 2015-09-11 17:59:53

这是由MSBuild SonarQube运行器1.0版中存在的测试项目检测机制中的错误引起的。在新版本1.0.1中已修复,请参阅https://jira.sonarsource.com/browse/SONARMSBRU-121

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31738483

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档