mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06: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 8c324ccf8a
.
* removed spaces
This commit is contained in:
parent
d8d97d15ba
commit
dc8eb0b777
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user