加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.code.yml 6.45 KB
一键复制 编辑 原始数据 按行查看 历史
LidolLxf 提交于 2024-03-05 17:31 . fix:golangci规范修改part2 (#2995)
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-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
# 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/.*
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化