Add: package error message for io/util

This commit is contained in:
eleijonmarck
2022-08-12 14:27:26 +01:00
parent fde5147d71
commit 3fc5c00e87
+2
View File
@@ -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"]