From ef48e5f7002ab6542b65e02bc72b1a41d05bb7d6 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 18 Apr 2024 12:29:19 +0200 Subject: [PATCH] lint: Disable depguard This requires additional configuration https://github.com/golangci/golangci-lint/issues/3877#issuecomment-1573760321 With the default config, a lot of errors are reported. --- .golangci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index f2dd2966..8727ae87 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -21,7 +21,6 @@ linters: enable: - asciicheck - bodyclose - - depguard - dogsled - dupl - errcheck @@ -69,4 +68,5 @@ linters: # - varcheck # deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. # - deadcode # deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. # - structcheck # deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. -# - rowserrcheck # we're not using sql.Rows at all in the codebase \ No newline at end of file +# - rowserrcheck # we're not using sql.Rows at all in the codebase +# - depguard # this requires additional configuration https://github.com/golangci/golangci-lint/issues/3877#issuecomment-1573760321