golangci-lint: enable more govet checks

There are more useful checks such as nilness that are not enabled by
default. However fieldalignment and shadow produce a lot of warnings
that are not real issues, i.e. we shadow "err" as variable all the time,
so they get disabled.

see https://golangci-lint.run/docs/linters/configuration/#govet

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2026-07-06 15:53:50 +02:00
parent d5213284f4
commit c76b68dac5
No known key found for this signature in database
GPG key ID: EB145DD938A3CAF2

View file

@ -56,6 +56,11 @@ linters:
- wastedassign
- whitespace
settings:
govet:
enable-all: true
disable:
- fieldalignment
- shadow
forbidigo:
forbid:
# os.Is* error checking functions predate errors.Is. Therefore, they