golangci-lint: fix "golint" not ignoring generated files

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-10-14 02:11:40 +02:00
parent 47502344b9
commit fe3c14d5ba
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -22,12 +22,6 @@ linters:
- bundles
- docs
skip-files:
- ".*\\.pb\\.go"
- "dockerversion/version_autogen.go"
- "api/types/container/container_.*"
- "api/types/volume/volume_.*"
linters-settings:
govet:
check-shadowing: false
@ -40,6 +34,11 @@ issues:
- errcheck
- gosec
# Suppress golint complaining about generated types in api/types/
- text: "type name will be used as (container|volume)\\.(Container|Volume).* by other packages, and that stutters; consider calling this"
path: "api/types/(volume|container)/"
linters:
- golint
- text: "(G201|G202): SQL string (formatting|concatenation)"
linters:
- gosec