ci: add go linters forcetypeassert, noctx, unparam, prealloc
This commit is contained in:
parent
f7c358c7a8
commit
bb2ddeeffa
|
@ -5,6 +5,7 @@ linters:
|
|||
# Enable specific linter
|
||||
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
|
||||
enable:
|
||||
# default linters
|
||||
- errcheck
|
||||
- gosimple
|
||||
- govet
|
||||
|
@ -12,5 +13,12 @@ linters:
|
|||
- staticcheck
|
||||
- typecheck
|
||||
- unused
|
||||
- gosec
|
||||
|
||||
# additional linters
|
||||
- gosec
|
||||
- forcetypeassert
|
||||
# - contextcheck # disabled because
|
||||
- noctx
|
||||
# - unconvert # disable because extra conversion typically don't hurt but can make code more clear
|
||||
- unparam
|
||||
- prealloc
|
||||
|
|
Loading…
Reference in New Issue