mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
Add more packages to denylist (#22412)
After this, we can remove [`denylist_imports`](https://gitea.com/gitea/gitea-vet/src/branch/master/checks/denylisted-imports.go#L13) in gitea-vet ([gitea-vet/pulls/23](https://gitea.com/gitea/gitea-vet/pulls/23)). ```go deniedImports = []string{"io/ioutil", "encoding/json", "gitea.com/gitea/go-crypto"} ``` However, we needn't keep `gitea.com/gitea/go-crypto` any longer, it's gone and can't be imported again. Co-authored-by: John Olheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
9ffaf19d89
commit
c86be819bb
1 changed files with 2 additions and 1 deletions
|
@ -76,13 +76,14 @@ linters-settings:
|
||||||
extra-rules: true
|
extra-rules: true
|
||||||
lang-version: "1.19"
|
lang-version: "1.19"
|
||||||
depguard:
|
depguard:
|
||||||
# TODO: use depguard to replace import checks in gitea-vet
|
|
||||||
list-type: denylist
|
list-type: denylist
|
||||||
# Check the list against standard lib.
|
# Check the list against standard lib.
|
||||||
include-go-root: true
|
include-go-root: true
|
||||||
packages-with-error-message:
|
packages-with-error-message:
|
||||||
- encoding/json: "use gitea's modules/json instead of encoding/json"
|
- encoding/json: "use gitea's modules/json instead of encoding/json"
|
||||||
- github.com/unknwon/com: "use gitea's util and replacements"
|
- 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:
|
issues:
|
||||||
max-issues-per-linter: 0
|
max-issues-per-linter: 0
|
||||||
|
|
Loading…
Reference in a new issue