sonar-next / sonar-swift

sonar-swift.SonarQube iOS Plugin, Support Objective-C/Swift/Java, Support import Infer Issue (SonarQube iOS 代码扫描插件,支持 Objective-C 和 Swift / Java,支持 Infer 结果导入 ) base on https://github.com/Idean/sonar-swift
Other
221 stars 39 forks source link

file matches patterns error #13

Open ontheway01 opened 3 years ago

ontheway01 commented 3 years ago

Question Checklist

Question Subject

您好!当我同时使用Sonar C插件和Sonar OBJC插件时,对于C项目扫描失败,报错日志如下:

11:34:54.046 ERROR: Error during SonarScanner execution Language of file 'src\tools\gddsEmuForEdgk\gddsZLib.h' can not be decided as the file matches patterns of both sonar.lang.patterns.objc : /*.h,*/.m,/*.mm and sonar.lang.patterns.c : */.c,*/.h

插件清单

sydowma commented 3 years ago

@ontheway01 你好,这是由于在安装了两个插件之后,都设置了对 .h 头文件的扫描,所以会报错,这个时候把 .h 文件过滤下。 在执行 C/C++ 语言的扫描时,请添加以下指令

-Dsonar.lang.patterns.objc=-