mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
chore: fix golangci-lint config
"list-mode" does not exist. Also made a change to show all issues.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user