-
Notifications
You must be signed in to change notification settings - Fork 249
/
.code.yml
114 lines (109 loc) · 6.54 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
source:
# 文件或目录使用绝对路径,绝对路径按代码库根目录计算,以/开头。
# 提供产品代码库中编写的测试代码存放目录或文件名格式,以便后续代码统计环节进行排除等特殊处理
# 不要使用.*/等正则表达式屏蔽掉所有代码,会导致Coverity扫不到任何代码而失败
# 请勿使用Tab键,将会导致yaml解析出错
test_source:
#用于匹配文件; 匹配方式为正则表达式。
filepath_regex:
# Deprecated module
- /bcs-services/bcs-mesh-manager/.*
- /bcs-services/bcs-api/.*
- /bcs-services/bcs-alert-manager/.*
- /bcs-services/bcs-log-manager/.*
- /bcs-services/bcs-netservice/.*
- /bcs-services/bcs-netservice/bcs-ipam/.*
- /bcs-services/bcs-argocd-manager/.*
- /bcs-services/bcs-bscp/.*
- /bcs-services/bcs-client/.*
- /bcs-runtime/bcs-k8s/kubebkbcs/.*
- /bcs-runtime/bcs-k8s/kubedeprecated/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-k8s-driver/.*
- /bcs-services/bcs-upgrader/.*
- /bcs-services/bcs-service-prometheus/.*
- /bcs-network/.*
- /bcs-runtime/bcs-mesos/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-cc-agent/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-cpuset-device/.*
# Comment ratio
- /bcs-services/bcs-bscp/cmd/data-service/service/config_item.go
- /bcs-services/bcs-bscp/cmd/data-service/service/group.go
- /bcs-services/bcs-bscp/test/benchmark/run/template.go
- /bcs-services/bcs-bscp/test/mock/repo/service/node.go
- /bcs-services/bcs-cli/bcs-user-manager/cmd/create.go
- /bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud/tasks/createNodeGroup.go
- /bcs-services/bcs-upgrader/upgrades/u1.21.202203082112/migrate.go
- /bcs-services/bcs-upgrader/upgrades/u1.21.202203082112/types.go
- /bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud/tasks/createNodeGroup.go
- /bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud/tasks/createClusterTask.go
- /bcs-services/bcs-cluster-manager/internal/remote/resource/tresource/resource.go
- /bcs-scenarios/bcs-gitops-pre-check/pkg/common/common.go
# Security & Sensitive: it's safe to ignore
- /bcs-common/go.mod
- /bcs-runtime/bcs-k8s/bcs-component/bcs-cluster-autoscaler/bcs-cluster-autoscaler-1.16/go.mod
- /bcs-runtime/bcs-k8s/bcs-component/bcs-cluster-autoscaler/bcs-cluster-autoscaler-1.22/go.mod
- /bcs-services/bcs-data-manager/go.mod
- /bcs-services/bcs-gateway-discovery/plugins/t/bcs-auth.t
- /bcs-services/bcs-k8s-watch/go.mod
- /bcs-services/cluster-resources/pkg/resource/example/manifest/config/simple_secret.yaml
- /bcs-ui/backend/templatesets/legacy_apps/configuration/yaml_mode/manifests/Secret.yaml
- /install/helm/bcs-multi-ns-proxy/values.yaml
# Misc
- /bcs-scenarios/kourse
- /bcs-common/pkg/bcsapi/storage/tkex/gamedeployment/v1alpha1/gamedeployment.go
- /bcs-common/pkg/bcsapiv4/storage/tkex/gamedeployment/v1alpha1/gamedeployment.go
- /bcs-common/pkg/bcsapi/storage/tkex/gamestatefulset/v1alpha1/gamestatefulset.go
- /bcs-common/pkg/bcsapiv4/storage/tkex/gamestatefulset/v1alpha1/gamestatefulset.go
- /bcs-common/pkg/bcsapi/storage/tkex/generalpodautoscaler/v1alpha1/generalpodautoscaler.go
- /bcs-common/pkg/bcsapiv4/storage/tkex/generalpodautoscaler/v1alpha1/generalpodautoscaler.go
- /bcs-common/pkg/esb/apigateway/bkdata/types.go
- /bcs-runtime/bcs-k8s/bcs-component/bcs-cluster-autoscaler/core/scale_up.go
- /bcs-runtime/bcs-k8s/bcs-component/bcs-cluster-autoscaler/simulator/drain.go
- /bcs-runtime/bcs-k8s/bcs-component/bcs-gamedeployment-operator/pkg/apis/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-gamedeployment-operator/pkg/clientset/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-gamedeployment-operator/pkg/informers/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-gamedeployment-operator/pkg/listers/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-gamestatefulset-operator/pkg/apis/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-gamestatefulset-operator/pkg/clientset/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-gamestatefulset-operator/pkg/informers/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-gamestatefulset-operator/pkg/listers/.*
- /bcs-runtime/bcs-k8s/bcs-component/bcs-k8s-csi-tencentcloud/driver/cbs/controller.go
- /bcs-runtime/bcs-k8s/bcs-component/cluster-autoscaler/.*
- /bcs-runtime/bcs-k8s/bcs-network/api/.*
- /bcs-runtime/bcs-k8s/bcs-network/bcs-cloud-netagent/.*
- /bcs-runtime/bcs-k8s/bcs-network/bcs-cloud-netcontroller/.*
- /bcs-runtime/bcs-k8s/bcs-network/bcs-cloudnetwork/.*
- /bcs-runtime/bcs-k8s/bcs-network/bcs-ipmasq-cidrsync/.*
- /bcs-runtime/bcs-k8s/bcs-network/bcs-ipres-webhook/.*
- /bcs-runtime/bcs-k8s/bcs-network/bcs-networkpolicy/.*
- /bcs-runtime/bcs-k8s/bcs-network/internal/.*
- /bcs-runtime/bcs-k8s/bcs-network/pkg/.*
- /bcs-runtime/bcs-k8s/bcs-network/qcloud-eip/.*
- /bcs-runtime/bcs-k8s/kubernetes/.*
- /bcs-services/bcs-bscp/pkg/version/version.go
- /bcs-services/bcs-clb-controller/apis/.*
- /bcs-services/bcs-clb-controller/client/.*
- /bcs-services/bcs-cluster-manager/api/.*
- /bcs-services/bcs-cluster-manager/internal/cloudprovider/component/.*
- /bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud/api/common_.*
- /bcs-services/bcs-data-manager/pkg/mock/.*
- /bcs-services/bcs-bscp/test/.*
# 提供产品代码库中工具或框架自动生成的且在代码库中的代码,没有可为空。以便后续代码统计环节进行排除等特殊处理。
auto_generate_source:
# 自动生成代码文件的正则表达式,若无统一标识格式,可以指定具体目录,样例可参考test_source举例
filepath_regex:
- .*.docs.go
- .*.gen.go
- .*.pb.go
- .*.pb.gw.go
- .*.pb.micro.go
- .*.pb.validate.go
# 提供产品代码库中直接以源码形式存在的第三方代码目录或代码文件名的正则表达。
# 此处备注的第三方代码在后续统计代码量环节会被排除,若代码库中不存在需要排除的第三方代码,该项配置标识可为空
third_party_source:
#第三方代码文件的正则表达式,若无统一标识格式,可以指定具体目录,样例可参考test_source举例
filepath_regex:
- .*/mesosproto/.*
- .*/swagger-ui/.*
- .*/swagger/.*
- .*/third_party/.*