2019-08-05 06:32:43 -04:00
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- deadcode
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- golint
|
2019-08-06 13:11:25 -04:00
|
|
|
- gosec
|
2019-08-05 06:32:43 -04:00
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
2019-08-28 12:31:14 -04:00
|
|
|
- misspell
|
2019-08-05 06:32:43 -04:00
|
|
|
- unconvert
|
|
|
|
|
|
|
|
disable:
|
|
|
|
- errcheck
|
|
|
|
|
|
|
|
run:
|
|
|
|
concurrency: 2
|
|
|
|
modules-download-mode: vendor
|
|
|
|
|
|
|
|
skip-dirs:
|
|
|
|
- docs
|
|
|
|
- integration-cli
|
|
|
|
|
|
|
|
skip-files:
|
|
|
|
- ".*\\.pb\\.go"
|
|
|
|
- "dockerversion/version_autogen.go"
|
|
|
|
- "api/types/container/container_.*"
|
|
|
|
- "api/types/volume/volume_.*"
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
check-shadowing: false
|
2019-08-06 13:11:25 -04:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2019-08-28 12:31:14 -04:00
|
|
|
# Exclude some linters from running on tests files.
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- errcheck
|
|
|
|
- gosec
|
|
|
|
|
2019-08-06 13:11:25 -04:00
|
|
|
- text: "G201: SQL string formatting"
|
|
|
|
linters:
|
|
|
|
- gosec
|
|
|
|
- text: "G202: SQL string concatenation"
|
|
|
|
linters:
|
|
|
|
- gosec
|
2019-09-11 13:41:03 -04:00
|
|
|
# FIXME temporarily suppress these. See #39925
|
|
|
|
- text: "SA1019: base.Dial is deprecated"
|
|
|
|
linters:
|
|
|
|
- staticcheck
|
|
|
|
# FIXME temporarily suppress these. See #39928
|
|
|
|
- text: "SA1019: grpc.WithDialer is deprecated"
|
|
|
|
linters:
|
|
|
|
- staticcheck
|
2019-09-11 13:29:55 -04:00
|
|
|
# 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
|
2019-09-11 13:41:03 -04:00
|
|
|
# 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
|