Merge pull request #43109 from kzys/golangci-fix
Remove unnecessary exclusions from golangci-lint.yaml
This commit is contained in:
commit
33deb9c212
|
@ -24,10 +24,7 @@ linters:
|
||||||
modules-download-mode: vendor
|
modules-download-mode: vendor
|
||||||
|
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
- bundles
|
|
||||||
- docs
|
- docs
|
||||||
# TODO: This package should be completely removed
|
|
||||||
- libnetwork/client/mflag
|
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
govet:
|
govet:
|
||||||
|
@ -85,9 +82,6 @@ issues:
|
||||||
path: "api/types/(volume|container)/"
|
path: "api/types/(volume|container)/"
|
||||||
linters:
|
linters:
|
||||||
- golint
|
- golint
|
||||||
- text: "(G201|G202): SQL string (formatting|concatenation)"
|
|
||||||
linters:
|
|
||||||
- gosec
|
|
||||||
# FIXME: evaluate these and fix where needed: G307: Deferring unsafe method "*os.File" on type "Close" (gosec)
|
# FIXME: evaluate these and fix where needed: G307: Deferring unsafe method "*os.File" on type "Close" (gosec)
|
||||||
- text: "G307: Deferring unsafe method"
|
- text: "G307: Deferring unsafe method"
|
||||||
linters:
|
linters:
|
||||||
|
@ -104,11 +98,6 @@ issues:
|
||||||
- text: "SA1019: httputil.ErrPersistEOF"
|
- text: "SA1019: httputil.ErrPersistEOF"
|
||||||
linters:
|
linters:
|
||||||
- staticcheck
|
- staticcheck
|
||||||
# FIXME temporarily suppress these for false positives in tests (see https://github.com/dominikh/go-tools/issues/1022)
|
|
||||||
- text: "SA5011"
|
|
||||||
path: _test\.go
|
|
||||||
linters:
|
|
||||||
- staticcheck
|
|
||||||
# This code is doing some fun stuff with reflect and it trips up the linter.
|
# This code is doing some fun stuff with reflect and it trips up the linter.
|
||||||
- text: "field `foo` is unused"
|
- text: "field `foo` is unused"
|
||||||
path: "libnetwork/options/options_test.go"
|
path: "libnetwork/options/options_test.go"
|
||||||
|
|
Loading…
Reference in New Issue