1 Star 0 Fork 0

hose-ops/kusion

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.golangci.yml 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
liu-hm19 提交于 2024-03-18 19:48 . feat: bump go version to 1.22 (#934)
# 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"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/hose-ops/kusion.git
git@gitee.com:hose-ops/kusion.git
hose-ops
kusion
kusion
main

搜索帮助