mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 08:16:59 -06:00
Chore: Deny gopkg.in/yaml.v2 (#60187)
This commit is contained in:
parent
209b1848b8
commit
f864be5024
@ -19,6 +19,7 @@ include-go-root = true
|
||||
packages = ["io/ioutil"]
|
||||
[[linters-settings.depguard.packages-with-error-message]]
|
||||
"io/ioutil" = "Deprecated: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details."
|
||||
"gopkg.in/yaml.v2" = "Grafana packages are not allowed to depend on gopkg.in/yaml.v2 as gopkg.in/yaml.v3 is now available"
|
||||
|
||||
[linters-settings.gocritic]
|
||||
enabled-checks = ["ruleguard"]
|
||||
|
Loading…
Reference in New Issue
Block a user