mirror of https://github.com/docker/compose.git
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
run:
|
|
concurrency: 2
|
|
timeout: 10m
|
|
linters:
|
|
enable-all: false
|
|
disable-all: true
|
|
enable:
|
|
- deadcode
|
|
- depguard
|
|
- errcheck
|
|
- gocritic
|
|
- gocyclo
|
|
- gofmt
|
|
- goimports
|
|
- revive
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- lll
|
|
- misspell
|
|
- nakedret
|
|
- nolintlint
|
|
- staticcheck
|
|
- structcheck
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- varcheck
|
|
linters-settings:
|
|
depguard:
|
|
list-type: blacklist
|
|
include-go-root: true
|
|
packages:
|
|
# The io/ioutil package has been deprecated.
|
|
# https://go.dev/doc/go1.16#ioutil
|
|
- io/ioutil
|
|
gocritic:
|
|
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
|
|
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
|
|
enabled-tags:
|
|
- diagnostic
|
|
- opinionated
|
|
- style
|
|
disabled-checks:
|
|
- paramTypeCombine
|
|
- unnamedResult
|
|
- whyNoLint
|
|
gocyclo:
|
|
min-complexity: 16
|
|
lll:
|
|
line-length: 200
|
|
issues:
|
|
# golangci hides some golint warnings (the warning about exported things
|
|
# withtout documentation for example), this will make it show them anyway.
|
|
exclude-use-default: false
|
|
exclude:
|
|
- should not use dot imports
|