SonarQube: File is not under the project directory

Deadly 提交于 2019-12-11 10:27:41

问题


I have a lot of warnings when I run the MSBuild.SonarQube.Runner. They are in the format:

EXEC : warning : File is not under the project directory and cannot currently be analysed by SonarQube. File: [file], project [project]

I found the post about this problem. However the solution does not apply to my problem. There is no occurrence of Test anywhere in my path. I have been using SonarQube 5.1.2 and Sonar-MsBuild-Runner 1.0.1. In the hope so see an improvement, I tried Sonar-MsBuild-Runner 1.0.2-RC1. But unfortunately, I get the same messages in my build.

What can I do to resolve this?


回答1:


The analysis of shared files is not currently supported by the SonarQube Scanner for MSBuild, and I have created a ticket to consider adding that feature in a future version (at this stage though, it is not clear how this could be done technically) - https://jira.sonarsource.com/browse/SONARMSBRU-158

There indeed are also some similar warnings regarding temporary files generated by the .NET framework which can be safely ignored, but which still are noise that would be better to avoid in the first place. Ticket entered: https://jira.sonarsource.com/browse/SONARMSBRU-159



来源:https://stackoverflow.com/questions/33473360/sonarqube-file-is-not-under-the-project-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!