From 118a2304ea209956b5ef57c6429843a5b326b9e9 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Wed, 14 Jun 2023 14:01:39 +0200 Subject: [PATCH] Disable depguard Newer versions of depguard, as used in golangci-lint 1.53.0 and later, deny imports by default. As a result, depguard should only be enabled if it's going to be used, which isn't the case currently in Submariner projects. Signed-off-by: Stephen Kitt --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 97aeaeb4c..04038ccd6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -58,7 +58,7 @@ linters: - bodyclose - contextcheck # - cyclop # This is equivalent to gocyclo - - depguard + # - depguard # depguard now denies by default, it should only be enabled if we actually use it - dogsled - dupl - durationcheck