forked from TencentBlueKing/bk-bcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.code.yml
60 lines (59 loc) · 3.23 KB
/
.code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
source:
# 文件或目录使用绝对路径,绝对路径按代码库根目录计算,以/开头。
# 提供产品代码库中编写的测试代码存放目录或文件名格式,以便后续代码统计环节进行排除等特殊处理
# 不要使用.*/等正则表达式屏蔽掉所有代码,会导致Coverity扫不到任何代码而失败
# 请勿使用Tab键,将会导致yaml解析出错
test_source:
#用于匹配文件; 匹配方式为正则表达式。
filepath_regex: [
".*/install/conf/bcs-network/bcs-cloud-netservice/swagger-ui/.*",
".*/innerdocs/.*"
]
# 提供产品代码库中工具或框架自动生成的且在代码库中的代码,没有可为空。以便后续代码统计环节进行排除等特殊处理。
auto_generate_source:
# 自动生成代码文件的正则表达式,若无统一标识格式,可以指定具体目录,样例可参考test_source举例
filepath_regex: [
".*/bcs-k8s/bcs-gamedeployment-operator/pkg/apis/.*",
".*/bcs-k8s/bcs-gamedeployment-operator/pkg/apis/.*",
".*/bcs-k8s/bcs-gamedeployment-operator/pkg/clientset/.*",
".*/bcs-k8s/bcs-gamedeployment-operator/pkg/informers/.*",
".*/bcs-k8s/bcs-gamedeployment-operator/pkg/listers/.*",
".*/bcs-k8s/bcs-gamestatefulset-operator/pkg/apis/.*",
".*/bcs-k8s/bcs-gamestatefulset-operator/pkg/clientset/.*",
".*/bcs-k8s/bcs-gamestatefulset-operator/pkg/informers/.*",
".*/bcs-k8s/bcs-gamestatefulset-operator/pkg/listers/.*",
".*/bcs-k8s/kubedeprecated/.*",
".*/bcs-k8s/kubernetes/.*",
".*/bcs-k8s/kubebkbcs/.*",
".*/bcs-mesos/mesosv2/.*",
".*/bcs-mesos/kubebkbcsv2/.*",
".*/bcs-mesos/pkg/.*",
".*/bcs-network/api/.*",
".*/bcs-services/bcs-clb-controller/apis/.*",
".*/bcs-services/bcs-clb-controller/client/.*",
".*/bcs-services/bcs-log-manager/app/api/proto/.*",
".*/bcs-services/bcs-log-manager/pkg/apis/.*",
".*/bcs-services/bcs-log-manager/pkg/controllers/.*",
".*/bcs-services/bcs-log-manager/pkg/generated/.*",
".*/bcs-services/bcs-log-manager/pkg/mock/.*",
".*/bcs-services/bcs-mesh-manager/api/.*",
".*/bcs-services/bcs-mesh-manager/proto/.*",
".*/bcs-services/bcs-mesh-manager/third_party/.*",
".*/bcs-services/bcs-cluster-manager/api/.*",
".*/bcs-services/bcs-cluster-manager/third_party/.*",
".*/bmsf-configuration/internal/protocol/.*",
".*/bmsf-mesh/pkg/.*"
]
# 提供产品代码库中直接以源码形式存在的第三方代码目录或代码文件名的正则表达。
# 此处备注的第三方代码在后续统计代码量环节会被排除,若代码库中不存在需要排除的第三方代码,该项配置标识可为空
third_party_source:
#第三方代码文件的正则表达式,若无统一标识格式,可以指定具体目录,样例可参考test_source举例
filepath_regex: [
".*/bcs-common/pkg/bcsapi/clustermanager/.*",
".*/bcs-common/pkg/scheduler/mesosproto/.*",
".*/bcs-mesos/bcs-container-executor/mesos/.*",
".*/bcs-mesos/bcs-process-executor/process-executor/protobuf/.*",
".*/bcs-mesos/bcs-scheduler/src/mesosproto/.*",
".*/pkg/mod/.*",
".*/bmsf-configuration/.*"
]