1 Star 0 Fork 0

k8s-mirrors/cri-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.golangci.yml 2.66 KB
一键复制 编辑 原始数据 按行查看 历史
---
run:
concurrency: 6
deadline: 5m
linters:
disable-all: true
enable:
- deadcode
- depguard
- durationcheck
- forcetypeassert
- gofmt
- goimports
- govet
- importas
- ineffassign
- makezero
- misspell
- nakedret
- nilerr
- prealloc
- predeclared
- promlinter
- structcheck
- tagliatelle
- typecheck
- varcheck
- wastedassign
# - asciicheck
# - bodyclose
# - cyclop
# - dogsled
# - dupl
# - errcheck
# - errorlint
# - exhaustive
# - exhaustivestruct
# - exportloopref
# - forbidigo
# - funlen
# - gci
# - gochecknoglobals
# - gochecknoinits
# - gocognit
# - goconst
# - gocritic
# - gocyclo
# - godot
# - godox
# - goerr113
# - gofumpt
# - goheader
# - golint
# - gomnd
# - gomoddirectives
# - gomodguard
# - goprintffuncname
# - gosec
# - gosimple
# - ifshort
# - lll
# - nestif
# - nlreturn
# - noctx
# - nolintlint
# - paralleltest
# - revive
# - rowserrcheck
# - scopelint
# - sqlclosecheck
# - staticcheck
# - stylecheck
# - testpackage
# - thelper
# - tparallel
# - unconvert
# - unparam
# - unused
# - whitespace
# - wrapcheck
# - wsl
linters-settings:
gocritic:
enabled-checks:
# Diagnostic
- appendAssign
- argOrder
- badCond
- caseOrder
- codegenComment
- commentedOutCode
- deprecatedComment
- dupArg
- dupBranchBody
- dupCase
- dupSubExpr
- exitAfterDefer
- flagDeref
- flagName
- nilValReturn
- offBy1
- sloppyReassign
- weakCond
- octalLiteral
# Performance
- appendCombine
- equalFold
- hugeParam
- indexAlloc
- rangeExprCopy
- rangeValCopy
# Style
- assignOp
- boolExprSimplify
- captLocal
- commentFormatting
- commentedOutImport
- defaultCaseOrder
- docStub
- elseif
- emptyFallthrough
- emptyStringTest
- hexLiteral
- ifElseChain
- methodExprCall
- regexpMust
- singleCaseSwitch
- sloppyLen
- stringXbytes
- switchTrue
- typeAssertChain
- typeSwitchVar
- underef
- unlabelStmt
- unlambda
- unslice
- valSwap
- wrapperFunc
- yodaStyleExpr
# Opinionated
- builtinShadow
- importShadow
- initClause
- nestingReduce
- paramTypeCombine
- ptrToRefParam
- typeUnparen
- unnamedResult
- unnecessaryBlock
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/k8s-mirrors/cri-tools.git
git@gitee.com:k8s-mirrors/cri-tools.git
k8s-mirrors
cri-tools
cri-tools
master

搜索帮助