我使用SonarQube 6.0,带有插件sonar-cxx-plugin0.9.7(社区)和sonar-scanner 2.8,但当我执行它时,只有关于行数和重复项的信息。错误、漏洞和代码气味为0。我修改了默认的规则以包含MISRA规则(此配置文件使用得很好)
我通过以下命令执行声纳:
sonar-scanner -e -Dsonar.host.url=XXX -Dsonar.language=c++ -Dsonar.sources=./ -Dsonar.projectKey=YYY -Dsonar.projectName=TEST我不能复制执行日志,但这里的信息对我来说似乎是最重要的(如果需要更多细节,我会告诉你你想看到的)
main.c:1] cannot find the source for "#include <iostream>"
undefined report path 'sonar.cxx.rats.reportPath'
undefined report path 'sonar.cxx.cppcheck.reportPath'
undefined report path 'sonar.cxx.pclint.reportPath'
undefined report path 'sonar.cxx.drmemory.reportPath'
undefined report path 'sonar.cxx.compiler.reportPath'
undefined report path 'sonar.cxx.veron.reportPath'
undefined report path 'sonar.cxx.valgrind.reportPath'
Analysis Success显然,分析是在没有错误的情况下进行的,但是我总是将Bugs漏洞和Code Smells的值设置为0。
能告诉你我如何调整它的关注点吗?谢谢。
发布于 2017-06-20 23:01:58
尝试将sonar.sources=. (不带/)
https://stackoverflow.com/questions/44248351
复制相似问题