1 Star 6 Fork 2

KCHStack/sealos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.golangci.yml 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
run:
go: "1.20"
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
# include test files or not, default is true
tests: true
modules-download-mode: readonly
issues:
# https://github.com/golangci/golangci-lint/pull/4509
exclude-dirs-use-default: true
exclude-dirs:
- (^|/)fork($|/)
- pkg/registry/save/lib/
linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
enable:
- gofmt
- goimports
- revive
- stylecheck
- goconst
- gosimple
- misspell
- whitespace
- ineffassign
- typecheck
- errcheck
- govet
- staticcheck
- unused
- nilerr
- unconvert
linters-settings:
errcheck:
check-type-assertions: false
exclude-functions:
- io.Copy(*bytes.Buffer)
- io.Copy(os.Stdout)
revive:
rules:
- name: dot-imports
disabled: true
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kchstack/sealos.git
git@gitee.com:kchstack/sealos.git
kchstack
sealos
sealos
main

搜索帮助