sonar使用c++插件后遇到无法找到源码路径的警告

xelloss 发布于 2015/05/20 17:03
阅读 641
收藏 0

sonar-project.properties 中的内容:

# must be unique in a given SonarQube instance
sonar.projectKey=my:project
# this is the name displayed in the SonarQube UI
sonar.projectName=My project
sonar.projectVersion=1.0
 
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set. 
# If not set, SonarQube starts looking for source code from the directory containing 
# the sonar-project.properties file.
# Comma-separated paths to directories with sources (required)
sonar.sources=Src


# Language
sonar.language=c++
 
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

sonar.cxx.includeDirectories=/usr/include/c++/4.8,/usr/include/,/usr/include/x86_64-linux-gnu/c++/4.8,/usr/include/c++/4.8/backward,/usr/lib/gcc/x86_64-linux-gnu/4.8/include,/usr/src/linux-headers-3.16.0-37/include/,/usr/local/include,/usr/include/x86_64-linux-gnu/,/usr/src/linux-headers-3.16.0-37/include/uapi/,/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed,/usr/include/c++/4.8/tr1,/usr/include/linux, /var/lib/jenkins/jobs/test_sonar/workspace/Src/ServiceFunctionProxy/Include/,Src

运行sonar-runner 后出现以下警告:

Unable to find resource '/usr/include/c++/4.8/map' to create a dependency with 'Src/NameManager.cpp'
.....

..

所有的源文件都出现这种警告,但是我的配置是正确的,不知道问题出现在哪儿了,请各位大神来看看


加载中
返回顶部
顶部