解析 .h 文件时声纳的歧义,如果同时部署了 c++(社区)和 objectivec 插件



最近我们需要对客观C语言进行静态违规。我们部署了 sonar-objective-c-plugin-0.4.0 插件,并生成了一个包含所有违规行为的示例 oclint xml。现在,在尝试上传该xml时,我们遇到了以下错误:

INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 26.149s
INFO: Final Memory: 26M/1357M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
Language of file 'hybrid/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.h' can not be decided as the file matches patterns of both sonar.lang.patterns.c++ : **/*.cxx,**/*.cpp,**/*.cc,**/*.c,**/*.hxx,**/*.hpp,**/*.hh,**/*.h and sonar.lang.patterns.objc : **/*.h,**/*.m
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
bash-4.1$

注意:由于我们希望进行多语言分析,因此我们不设置sonar.language属性。

请指导如何满足这一需求?有没有办法在分析过程中禁用/启用这些插件?

参考以下页面:http://javadocs.sonarsource.org/4.5/apidocs/src-html/org/sonar/api/CoreProperties.html

并利用了以下属性:声纳.排除插件

最新更新