1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/hack/validate/golangci-lint.yml
Sebastiaan van Stijn 6c3113e599
Merge pull request #39951 from yedamao/fix-base-Dial-is-deprecated
Fix base.Dial is deprecated: Use DialContext instead
2019-09-21 13:01:40 +02:00

72 lines
1.7 KiB
YAML

linters:
enable:
- deadcode
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- misspell
- unconvert
disable:
- errcheck
run:
concurrency: 2
modules-download-mode: vendor
skip-dirs:
- bundles
- docs
skip-files:
- ".*\\.pb\\.go"
- "dockerversion/version_autogen.go"
- "api/types/container/container_.*"
- "api/types/volume/volume_.*"
linters-settings:
govet:
check-shadowing: false
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- errcheck
- gosec
- text: "G201: SQL string formatting"
linters:
- gosec
- text: "G202: SQL string concatenation"
linters:
- gosec
# FIXME temporarily suppress these. See #39928
- text: "SA1019: grpc.WithDialer is deprecated"
linters:
- staticcheck
# FIXME temporarily suppress these. See #39924
- text: "SA1019: h.Xattrs is deprecated: Use PAXRecords instead"
linters:
- staticcheck
# FIXME temporarily suppress these. See #39924
- text: "SA1019: hdr.Xattrs is deprecated: Use PAXRecords instead"
linters:
- staticcheck
# FIXME temporarily suppress these. See #39929
- text: "SA1019: http.CloseNotifier is deprecated"
linters:
- staticcheck
# FIXME temporarily suppress these. See #39926
- text: "SA1019: httputil.NewClientConn is deprecated"
linters:
- staticcheck
# FIXME temporarily suppress these. See #39927
- text: "SA1019: httputil.ClientConn is deprecated"
linters:
- staticcheck