Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file matches patterns error #13

Open
4 tasks done
ontheway01 opened this issue Apr 13, 2021 · 1 comment
Open
4 tasks done

file matches patterns error #13

ontheway01 opened this issue Apr 13, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@ontheway01
Copy link

ontheway01 commented Apr 13, 2021

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
Copy link
Collaborator

sydowma commented Apr 13, 2021

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

-Dsonar.lang.patterns.objc=-

@sydowma sydowma pinned this issue Apr 16, 2021
@sydowma sydowma added the documentation Improvements or additions to documentation label Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants