From 90677c9d7582bf219529cd256037b2922f9addf0 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. Signed-off-by: Christophe Fergeau --- .golangci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index f2dd296..8727ae8 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