Skip to content

Commit

Permalink
chore: Fix golangci config (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
obalunenko committed Dec 1, 2023
1 parent 969c2ff commit c9cde2c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit c9cde2c

Please sign in to comment.