From c76b68dac57f24af95c6d547266b764c8a834da8 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 6 Jul 2026 15:53:50 +0200 Subject: [PATCH] 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 --- .golangci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 8667efe35c..c8a7656290 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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