From 3316067af9e6a80a5782443b16bbf7b0c811c80d Mon Sep 17 00:00:00 2001 From: moonD4rk Date: Tue, 6 Jun 2023 19:45:53 +0800 Subject: [PATCH] chore: Allow all library in depguard linter settings - Add depguard linter settings to deny pkg github.com/pkg/errors in .golangci.yml file. --- .golangci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 42aacfa..0d848ef 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -64,4 +64,14 @@ issues: linters: - 'unused' max-issues-per-linter: 0 - max-same-issues: 0 \ No newline at end of file + max-same-issues: 0 + +linters-settings: + depguard: + rules: + main: + files: + - $all + deny: + - pkg: "github.com/pkg/errors" + desc: Should be replaced by standard lib errors package