mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 21:42:37 +08:00
Print package error message for deprecated io/ioutil (#53665)
* Add: package error message for io/util * added a ioutil for testing ci * Revert "added a ioutil for testing ci" This reverts commit 8c324ccf8a48b4c89d8301933f60886f8eaecba3. * removed spaces
This commit is contained in:
@ -17,6 +17,8 @@ confidence = 3
|
||||
list-type = "blacklist"
|
||||
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."
|
||||
|
||||
[linters-settings.gocritic]
|
||||
enabled-checks = ["ruleguard"]
|
||||
|
Reference in New Issue
Block a user