【发布时间】:2018-07-19 00:35:29
【问题描述】:
我正在 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>
但是在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/ 文件夹的文件。
为什么忽略特定文件失败?
使用SonarQube 6.7 和sonar-scanner:3.3
【问题讨论】:
-
LGTM。根目录中肯定是
test/而不是tests/或[space]test/? -
你也在使用
mono所以区分大小写的文件系统? -
路径和案例都是正确的......不知道发生了什么
标签: c# sonarqube sonarqube-scan