10 Star 105 Fork 41

Gitee 极速下载/sealos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fanux/sealos
克隆/下载
.golangci.yml 2.58 KB
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/sealos.git
git@gitee.com:mirrors/sealos.git
mirrors
sealos
sealos
main

搜索帮助