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
|
# Enable specific linter
|
||||||
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
|
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
|
||||||
enable:
|
enable:
|
||||||
|
# default linters
|
||||||
- errcheck
|
- errcheck
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
|
@ -12,5 +13,12 @@ linters:
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- typecheck
|
- typecheck
|
||||||
- unused
|
- 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