加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.golangci.yml 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
Brett Dietsch 提交于 2021-02-02 09:01 . adding auto-lint stuff
linters-settings:
goconst:
min-len: 2
min-occurrences: 2
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
gocyclo:
min-complexity: 20
golint:
min-confidence: 0
govet:
check-shadowing: false
maligned:
suggest-new: true
misspell:
locale: US
linters:
disable-all: true
enable:
- bodyclose
- depguard
# - dogsled
- errcheck
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
# - golint
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
# - interfacer
- misspell
- nakedret
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- varcheck
- whitespace
- maligned
run:
skip-dirs:
- rts
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: _test\.go
linters:
- golint
- staticcheck
- scopelint
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化