lint: add modernize

It performs checks that go fix would apply so it prevents us from adding
back old code patterns.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2026-06-23 12:07:07 +02:00
parent 4ae189843b
commit 9e9649837c
No known key found for this signature in database
GPG key ID: EB145DD938A3CAF2

View file

@ -35,6 +35,7 @@ linters:
- makezero
- mirror
- misspell
- modernize
- nilerr
- nilnesserr
- nolintlint