Skip to content

Commit

Permalink
Merge pull request #1058 from crazy-max/fix-golangci-lint-cfg
Browse files Browse the repository at this point in the history
chore: fix golangci-lint config
  • Loading branch information
crazy-max committed Dec 15, 2023
2 parents 402e0bf + b73efda commit 643f4c8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ linters-settings:
depguard:
rules:
main:
list-mode: lax
deny:
- pkg: io/ioutil
desc: The io/ioutil package has been deprecated. https://go.dev/doc/go1.16#ioutil
# The io/ioutil package has been deprecated.
# https://go.dev/doc/go1.16#ioutil
- pkg: "io/ioutil"
desc: The io/ioutil package has been deprecated.
forbidigo:
forbid:
- '^fmt\.Errorf(# use errors\.Errorf instead)?$'
Expand All @@ -42,3 +43,7 @@ issues:
- linters:
- revive
text: "stutters"

# show all
max-issues-per-linter: 0
max-same-issues: 0

0 comments on commit 643f4c8

Please sign in to comment.