chore: fix golangci-lint config

"list-mode" does not exist. Also made a change to show all issues.
This commit is contained in:
CrazyMax
2023-12-15 20:52:21 +01:00
parent 402e0bfd40
commit b73efda4fc

View File

@@ -27,10 +27,11 @@ linters-settings:
depguard: depguard:
rules: rules:
main: main:
list-mode: lax
deny: deny:
- pkg: io/ioutil # The io/ioutil package has been deprecated.
desc: The io/ioutil package has been deprecated. https://go.dev/doc/go1.16#ioutil # https://go.dev/doc/go1.16#ioutil
- pkg: "io/ioutil"
desc: The io/ioutil package has been deprecated.
forbidigo: forbidigo:
forbid: forbid:
- '^fmt\.Errorf(# use errors\.Errorf instead)?$' - '^fmt\.Errorf(# use errors\.Errorf instead)?$'
@@ -42,3 +43,7 @@ issues:
- linters: - linters:
- revive - revive
text: "stutters" text: "stutters"
# show all
max-issues-per-linter: 0
max-same-issues: 0