From 1ab5fbe96b102995babd863cf46657a6f39dedc8 Mon Sep 17 00:00:00 2001 From: Christoph Mewes Date: Fri, 18 Aug 2023 12:18:17 +0200 Subject: [PATCH] update golangci-lint config --- .golangci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5855c5d..358d5c4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -57,7 +57,8 @@ linters: linters-settings: depguard: - include-go-root: true - packages: - - io/ioutil # https://go.dev/doc/go1.16#ioutil - - github.com/ghodss/yaml # use sigs.k8s.io/yaml instead + rules: + main: + deny: + - { pkg: io/ioutil, desc: https://go.dev/doc/go1.16#ioutil } + - { pkg: github.com/ghodss/yaml, desc: use sigs.k8s.io/yaml instead }