8000 chore: Fix golangci config (#285) · obalunenko/advent-of-code@c9cde2c · GitHub
[go: up one dir, main page]

Skip to content

Commit c9cde2c

Browse files
authored
chore: Fix golangci config (#285)
1 parent 969c2ff commit c9cde2c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.golangci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
linters-settings:
22
depguard:
3-
list-type: blacklist
4-
packages:
5-
# logging is allowed only by logutils.Log, logrus
6-
# is allowed to use only in logutils package
7-
- github.com/sirupsen/logrus
8-
packages-with-error-message:
9-
- github.com/sirupsen/logrus: "logging is allowed only by github.com/obalunenko/logger"
3+
# new configuration
4+
rules:
5+
logger:
6+
deny:
7+
- pkg: "github.com/sirupsen/logrus"
8+
desc: logging is allowed only by github.com/obalunenko/logger
109
dupl:
1110
threshold: 100
1211
funlen:

0 commit comments

Comments
 (0)
0