From 3fc5c00e87a4be59c86c31802842765b6367da6e Mon Sep 17 00:00:00 2001 From: eleijonmarck Date: Fri, 12 Aug 2022 14:27:26 +0100 Subject: [PATCH] Add: package error message for io/util --- conf/.golangci.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/.golangci.toml b/conf/.golangci.toml index d2a5946267c..ac72b80b036 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"]