我正在 debian 上使用 msbuild 运行分析,使用以下命令:
mono /msbuild/SonarQube.Scanner.MSBuild.exe begin /d:sonar.login=<sonarqubetoken> /d:sonar.host.url=https://<my-server> /d:sonar.exclusions=test/**/* /k:<my-project-key>
However in the end
命令:
INFO: Index files
INFO: Excluded sources:
INFO: test/**/*
INFO: 17 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: Quality profile for cs: Sonar way
INFO: Excluded sources for coverage:
INFO: test/**
对我的服务器 UI 的分析包括以下文件test/
folder.
为什么它无法忽略特定文件?
Using SonarQube 6.7
and sonar-scanner:3.3
正如您的尝试所证明的那样,从分析方面很难正确设置排除项。最好的办法是从 UI 中设置这些。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)