3 Star 0 Fork 0

mirrors_containerd/nydus-snapshotter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.golangci.yml 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
apostasie 提交于 2024-07-21 18:42 . Containerd v2
# https://golangci-lint.run/usage/configuration#config-file
run:
concurrency: 4
timeout: 5m
issues-exit-code: 1
tests: true
issues:
exclude-dirs:
- misc
# The package is ported from containerd project, let's skip it.
- pkg/remote/remotes
linters-settings:
depguard:
rules:
main:
deny:
- pkg: "github.com/containerd/containerd/errdefs"
desc: The containerd errdefs package was migrated to a separate module. Use github.com/containerd/errdefs instead.
- pkg: "github.com/containerd/containerd/log"
desc: The containerd log package was migrated to a separate module. Use github.com/containerd/log instead.
- pkg: "github.com/containerd/containerd/platforms"
desc: The containerd platforms package was migrated to a separate module. Use github.com/containerd/platforms instead.
- pkg: "github.com/containerd/containerd/reference/docker"
desc: The containerd platforms package was migrated to a separate module. Use github.com/distribution/reference instead.
# govet:
# check-shadowing: true
# enable:
# - fieldalignment
funlen:
# Checks the number of lines in a function.
# If lower than 0, disable the check.
# Default: 60
lines: 100
# Checks the number of statements in a function.
# If lower than 0, disable the check.
# Default: 40
statements: 80
nilnil:
checked-types:
- ptr
- func
- iface
- map
- chan
linters:
enable:
- depguard # Checks for imports that shouldn't be used.
- staticcheck
- unconvert
- gofmt
- goimports
- revive
- ineffassign
- govet
- unused
- misspell
- bodyclose
# - cyclop
- dogsled
- nilnil
- unparam
- nilerr
# - goerr113
- exportloopref
# - gosec
- gocritic
- prealloc
- tenv
# - funlen
- exhaustive
- errcheck
disable:
- gosec
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_containerd/nydus-snapshotter.git
git@gitee.com:mirrors_containerd/nydus-snapshotter.git
mirrors_containerd
nydus-snapshotter
nydus-snapshotter
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385