代码拉取完成,页面将自动刷新
# This file contains all available configuration options
# with their default values.
# For complete .golangci.yml configuration, reference: https://golangci-lint.run/usage/configuration/#config-file
# options for analysis running
run:
timeout: 10m
linters:
disable-all: true
enable: # please keep this alphabetized
# Don't use soon to deprecated[1] linters that lead to false
# https://github.com/golangci/golangci-lint/issues/1841
# - deadcode
# - structcheck
# - varcheck
- ineffassign
- staticcheck
- unused
- gosimple
- govet
- gofumpt
- bodyclose
# - depguard
- dogsled
- dupl
- exportloopref
- gocritic
# - misspell
- nolintlint
- prealloc
- predeclared
- stylecheck
- tparallel
- typecheck
- unconvert
- whitespace
# - wsl
# - revive
# - unparam
# - gomnd
# - gosec
# - exhaustive
# - thelper
# - goconst
# - errcheck
linters-settings:
gofumpt:
# Select the Go version to target. The default is `1.15`.
lang-version: "1.22"
# Choose whether or not to use the extra rules that are disabled
# by default
extra-rules: false
issues:
exclude:
- "G306: Expect WriteFile permissions to be 0600 or less"
- "ST1018: string literal contains Unicode control characters, consider using escape sequences instead"
- "ifElseChain: rewrite if-else to switch statement"
- "S1000: should use for range instead of for { select {} }"
- "SA4004: the surrounding loop is unconditionally terminated"
- "copylocks: call of c\\.Post copies lock value: kcl-lang\\.io/kcl-go/pkg/spec/gpyrpc\\.Ping_Args contains google\\.golang\\.org/protobuf/internal/impl\\.MessageState contains sync\\.Mutex"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。