From 3aa1a5722aa2b49c288f91190482024cbfdd47f2 Mon Sep 17 00:00:00 2001 From: Travis Raines <571832+rainest@users.noreply.github.com> Date: Mon, 5 Jun 2023 13:54:19 -0700 Subject: [PATCH] chore: add depguard config for linter --- .golangci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index fdfad277e..31d03ea3f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -69,3 +69,11 @@ linters-settings: - gopkg.in/yaml.v3: recommendations: - sigs.k8s.io/yaml + depguard: + rules: + Main: + deny: + - pkg: "github.com/pkg/errors" + desc: Should be replaced by standard lib errors package + - pkg: "golang.org/x/net/context" + desc: use regular context instead