mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a57fd5488d
1.Change base.Dial to base.DailContext. 2.Remove proxyDialer that was previously used to configure a net.Dialer to route proxy.Dialer which will route the connections through the proxy using the connections through a SOCKS proxy. SOCKS proxies are now supported by configuring only http.Transport.Proxy, and no longer require changing http.Transport.Dial. Signed-off-by: HuanHuan Ye <logindaveye@gmail.com>
72 lines
1.7 KiB
YAML
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:
|
|
- 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
|
|
|
|
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
|