From 44710f955359841e58f6750a8ad43dbeae7bdf6a Mon Sep 17 00:00:00 2001 From: Dirkjan Bussink Date: Mon, 28 Nov 2022 12:19:09 +0100 Subject: [PATCH] Fix the golangci-lint config (#11812) There's a bunch of deprecated linters that don't work anymore, so let's remove them: ``` WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. WARN [linters context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649. ``` Signed-off-by: Dirkjan Bussink Signed-off-by: Dirkjan Bussink --- .golangci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index e6f0437e420..8dce882ad1e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -42,10 +42,6 @@ issues: - errcheck - goimports - - path: '^go/vt/vtadmin/cache/' - linters: - - structcheck - ### BEGIN: errcheck exclusion rules. Each rule should be considered # a TODO for removal after adding error checks to that package/file/etc, # except where otherwise noted.