ci: add go linters forcetypeassert, noctx, unparam, prealloc

This commit is contained in:
tbjump 2023-05-03 22:36:01 +00:00 committed by tbjump
parent f7c358c7a8
commit bb2ddeeffa
1 changed files with 9 additions and 1 deletions

View File

@ -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