代码拉取完成,页面将自动刷新
version: "2"
linters:
enable:
- depguard
- errorlint
- gocritic
- gosec
- misspell
- revive
- staticcheck
- testifylint
- unconvert
disable:
- dupl
- gochecknoglobals
- gochecknoinits
- lll
- nakedret
- unparam
settings:
depguard:
rules:
main:
list-mode: lax
deny:
- pkg: github.com/pkg/errors
desc: Use errors or fmt instead of github.com/pkg/errors
dupl:
threshold: 200
goconst:
min-len: 2
min-occurrences: 2
gocyclo:
min-complexity: 25
govet:
enable:
- shadow
testifylint:
enable:
- bool-compare
- compares
- empty
- error-is-as
- error-nil
- expected-actual
- len
- require-error
- suite-dont-use-pkg
- suite-extra-assert-call
disable:
- float-compare
- go-require
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- playground
- fixtures
- cmd
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
new: true
formatters:
enable:
- gofumpt
- goimports
settings:
goimports:
local-prefixes:
- github.com/go-swagger/go-swagger
exclusions:
generated: lax
paths:
- playground
- fixtures
- cmd
- third_party$
- builtin$
- examples$
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。