diff --git a/conf/.golangci.toml b/conf/.golangci.toml index d2a5946267c..857c978d842 100644 --- a/conf/.golangci.toml +++ b/conf/.golangci.toml @@ -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"]