代码拉取完成,页面将自动刷新
version: "2"
run:
go: "1.23"
relative-path-mode: gomod
modules-download-mode: readonly
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters:
default: none
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- copyloopvar
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exptostd
- fatcontext
- forbidigo
- ginkgolinter
- gocheckcompilerdirectives
- gocritic
- gocyclo
- goprintffuncname
- gosec
- govet
- iface
- importas
- inamedparam
- ineffassign
- intrange
- loggercheck
- mirror
- misspell
- musttag
- nakedret
- nolintlint
- nosprintfhostport
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- revive
- rowserrcheck
- sloglint
- spancheck
- sqlclosecheck
- staticcheck
- thelper
- tparallel
- unconvert
- unparam
- unused
- usestdlibvars
- usetesting
- wastedassign
- whitespace
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
settings:
revive:
rules:
- name: var-naming
arguments:
- []
- []
- [{ skipPackageNameChecks: true }]
copyloopvar:
check-alias: true
cyclop:
max-complexity: 15
errcheck:
check-type-assertions: true
forbidigo:
forbid:
- pattern: ^print(ln)?$
analyze-types: true
prealloc:
for-loops: true
staticcheck:
dot-import-whitelist: []
http-status-code-whitelist: []
usestdlibvars:
time-date-month: true
time-month: true
time-layout: true
crypto-hash: true
default-rpc-path: true
sql-isolation-level: true
tls-signature-scheme: true
constant-kind: true
usetesting:
os-temp-dir: true
gocritic:
disabled-checks:
- exitAfterDefer
gocyclo:
min-complexity: 50
gosec:
excludes:
- G404
- G306
- G101
- G402
formatters:
enable:
- gci
- gofmt
- gofumpt
- golines
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
settings:
gofmt:
rewrite-rules:
- pattern: "interface{}"
replacement: "any"
- pattern: "a[b:len(a)]"
replacement: "a[b:]"
gofumpt:
extra-rules: true
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。