代码拉取完成,页面将自动刷新
linters-settings:
dupl:
threshold: 400
gocyclo:
min-complexity: 10
govet:
check-shadowing: true
lll:
line-length: 170
tab-width: 4
gofmt:
simplify: false
run:
tests: false
skip-dirs:
- vendor
skip-files:
- zz_generated.*.go
linters:
presets:
- bugs
- unused
- format
- style
- complexity
- performance
# we should re-enable them and make lint pass
disable:
- goimports
- maligned
- gochecknoglobals
# TODO: fix those linters
- whitespace
- scopelint
- wsl
- gochecknoinits
- godox
- funlen
- stylecheck
- gocritic
- gomnd
- gocognit
issues:
max-same-issues: 0
exclude-use-default: false
exclude:
# gosec G104, about unhandled errors. We do that with errcheck already
- "G104: Errors unhandled"
exclude-rules:
- linters:
# Ignore package comments (ST1000) since most of the time are irrelevant
- stylecheck
text: "ST1000"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。