From 458fad2e3e0100fb3cf9ce6076ad830a4cf8cc10 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Thu, 12 Jan 2023 17:49:23 +0800 Subject: [PATCH] chore: add more packages to denylist --- .golangci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 130ad286b507a..7635e83a37260 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -76,13 +76,14 @@ linters-settings: extra-rules: true lang-version: "1.19" depguard: - # TODO: use depguard to replace import checks in gitea-vet list-type: denylist # Check the list against standard lib. include-go-root: true packages-with-error-message: - encoding/json: "use gitea's modules/json instead of encoding/json" - github.com/unknwon/com: "use gitea's util and replacements" + - io/ioutil: "use os or io instead" + - golang.org/x/exp: "it's experimental and unreliable." issues: max-issues-per-linter: 0