From c9cde2cb15f905e25d88376945c9f38c6fbb73c4 Mon Sep 17 00:00:00 2001 From: Oleg Balunenko Date: Fri, 1 Dec 2023 17:50:37 +0400 Subject: [PATCH] chore: Fix golangci config (#285) --- .golangci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 00be679b..d9d3dbfe 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,12 +1,11 @@ linters-settings: depguard: - list-type: blacklist - packages: - # logging is allowed only by logutils.Log, logrus - # is allowed to use only in logutils package - - github.com/sirupsen/logrus - packages-with-error-message: - - github.com/sirupsen/logrus: "logging is allowed only by github.com/obalunenko/logger" + # new configuration + rules: + logger: + deny: + - pkg: "github.com/sirupsen/logrus" + desc: logging is allowed only by github.com/obalunenko/logger dupl: threshold: 100 funlen: