114 lines
2.0 KiB
YAML
114 lines
2.0 KiB
YAML
---
|
|
run:
|
|
build-tags:
|
|
- apparmor
|
|
- seccomp
|
|
- selinux
|
|
- exclude_graphdriver_btrfs
|
|
concurrency: 6
|
|
deadline: 5m
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
- asciicheck
|
|
- errcheck
|
|
- exhaustive
|
|
- funlen
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- gocognit
|
|
- goconst
|
|
- godot
|
|
- godox
|
|
- goerr113
|
|
- gofumpt
|
|
- golint
|
|
- gomnd
|
|
- gosec
|
|
- lll
|
|
- maligned
|
|
- nestif
|
|
- nlreturn
|
|
- prealloc
|
|
- stylecheck
|
|
- testpackage
|
|
- unconvert
|
|
- whitespace
|
|
- wsl
|
|
linters-settings:
|
|
errcheck:
|
|
check-type-assertions: true
|
|
check-blank: true
|
|
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
|
|
gocyclo:
|
|
min-complexity: 35
|