From e1d78771dfc529ad6985ffd6bdfe50d27fff095f Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 11 Jul 2024 21:00:01 +0400 Subject: [PATCH 1/2] lint: Refresh deprecated config This fixes ``` $ golangci-lint --version golangci-lint has version 1.59.1 built with go1.22.3 from 1a55854a on 2024-06-09T18:08:33Z $ golangci-lint run ./... WARN [config_reader] The configuration option `output.format` is deprecated, please use `output.formats` ``` The configuration file is updated according to https://golangci-lint.run/usage/configuration/. Signed-off-by: Leonard Lyubich --- .golangci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 7f4bd8e47e..c370094873 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,7 +12,8 @@ run: # output configuration options output: # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" - format: tab + formats: + - format: tab # all available settings of specific linters linters-settings: From cadd6b1b0b47c1de6912b0d68e9cfc39af35f091 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 11 Jul 2024 21:11:28 +0400 Subject: [PATCH 2/2] lint: Drop no-op `govet` config According to https://golangci-lint.run/usage/linters/#govet, `check-shadowing` no longer exists. Now it should be ```yaml govet: disable: [shadow] ``` but `shadow` is disabled by default. Thus, whole `govet` section is not needed anymore. ``` $ golangci-lint --version golangci-lint has version 1.59.1 built with go1.22.3 from 1a55854a on 2024-06-09T18:08:33Z ``` Signed-off-by: Leonard Lyubich --- .golangci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index c370094873..08a03a1fd2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,9 +26,6 @@ linters-settings: rewrite-rules: - pattern: 'interface{}' replacement: 'any' - govet: - # report about shadowed variables - check-shadowing: false gomodguard: blocked: modules: