代码拉取完成,页面将自动刷新
version: "2"
linters:
default: none
enable:
- bodyclose
- depguard
- gocritic
- govet
- ineffassign
- nolintlint
- staticcheck
- unconvert
- unused
settings:
depguard:
rules:
main:
deny:
- pkg: errors
desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead
- pkg: github.com/pkg/errors
desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead
- pkg: github.com/cockroachdb/errors
desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead
- pkg: github.com/hashicorp/go-multierror
desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead
- pkg: io/ioutil
desc: The ioutil package has been deprecated
forbidigo:
forbid:
- pattern: fmt\.Errorf
gocritic:
disabled-checks:
- appendAssign
- assignOp
- commentFormatting
- deprecatedComment
- exitAfterDefer
- ifElseChain
- singleCaseSwitch
govet:
disable:
- composites
staticcheck:
checks:
- all
- -QF1001 # De Morgan's law simplifications
- -QF1008 # Embedded field selector simplifications
- -ST1003 # Naming conventions (ID vs Id, URL vs Url, etc.)
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- bodyclose
path: _test\.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。