From d6c094aefa84b05c00b58753cd02364e2f83ac6a Mon Sep 17 00:00:00 2001 From: Tom Moulard Date: Sat, 20 Apr 2024 14:54:42 +0200 Subject: [PATCH 1/2] fix: change deprecated check-shadowing to shadow for govet linter --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index d90619c..c1c24aa 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,7 +7,7 @@ linters-settings: goimports: local-prefixes: github.com/golang-templates/seed govet: - check-shadowing: true + shadow: true misspell: locale: US nolintlint: From 2957bcdfe3596881ed5e5c0eafc1bad6eeefd252 Mon Sep 17 00:00:00 2001 From: Tom Moulard Date: Sat, 20 Apr 2024 14:55:29 +0200 Subject: [PATCH 2/2] fix: remove deprecated allow-leading-space option for nolintlint linter --- .golangci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index c1c24aa..8858b83 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -11,7 +11,6 @@ linters-settings: misspell: locale: US nolintlint: - allow-leading-space: false # require machine-readable nolint directives (with no leading space) allow-unused: false # report any unused nolint directives require-explanation: true # require an explanation for nolint directives require-specific: false # don't require nolint directives to be specific about which linter is being skipped