106 lines
2.5 KiB
YAML
106 lines
2.5 KiB
YAML
version: "2"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- errcheck
|
|
- gocritic
|
|
- govet
|
|
- importas
|
|
- ineffassign
|
|
- ireturn
|
|
- misspell
|
|
- nolintlint
|
|
- paralleltest
|
|
- perfsprint
|
|
- staticcheck
|
|
- testifylint
|
|
- unused
|
|
- noctx
|
|
settings:
|
|
errcheck:
|
|
disable-default-exclusions: true
|
|
check-type-assertions: true
|
|
check-blank: true
|
|
gocritic:
|
|
enable-all: true
|
|
disabled-checks:
|
|
- importShadow
|
|
- hugeParam
|
|
- rangeValCopy
|
|
- whyNoLint
|
|
- unnamedResult
|
|
- httpNoBody
|
|
govet:
|
|
disable:
|
|
- shadow
|
|
enable-all: true
|
|
importas:
|
|
alias:
|
|
- pkg: io/fs
|
|
alias: iofs
|
|
- pkg: github.com/go-logr/logr/testing
|
|
alias: tlog
|
|
- pkg: github.com/pelletier/go-toml/v2/unstable
|
|
alias: tomlu
|
|
- pkg: github.com/multiformats/go-multiaddr/net
|
|
alias: manet
|
|
- pkg: github.com/multiformats/go-multiaddr
|
|
alias: ma
|
|
- pkg: github.com/multiformats/go-multicodec
|
|
alias: mc
|
|
- pkg: github.com/multiformats/go-multihash
|
|
alias: mh
|
|
- pkg: github.com/ipfs/go-cid
|
|
alias: cid
|
|
- pkg: github.com/libp2p/go-libp2p-kad-dht
|
|
alias: dht
|
|
- pkg: github.com/libp2p/go-libp2p/p2p/net/mock
|
|
alias: mocknet
|
|
- pkg: go.etcd.io/bbolt
|
|
alias: bolt
|
|
- pkg: k8s.io/cri-api/pkg/apis/runtime/v1
|
|
alias: runtimeapi
|
|
- pkg: github.com/containerd/containerd/api/events
|
|
alias: eventtypes
|
|
- pkg: github.com/opencontainers/go-digest
|
|
alias: digest
|
|
- pkg: github.com/opencontainers/image-spec/specs-go/v1
|
|
alias: ocispec
|
|
- pkg: k8s.io/apimachinery/pkg/util/version
|
|
alias: utilversion
|
|
no-extra-aliases: true
|
|
nolintlint:
|
|
require-explanation: true
|
|
require-specific: true
|
|
perfsprint:
|
|
strconcat: false
|
|
testifylint:
|
|
enable-all: true
|
|
ireturn:
|
|
allow:
|
|
- anon
|
|
- error
|
|
- empty
|
|
- stdlib
|
|
- github.com/libp2p/go-libp2p/core/crypto.PrivKey
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- goimports
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|