aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.golangci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 130ad286b5..7635e83a37 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