update golang lint

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2022-08-12 20:36:09 +08:00
parent 5d0a5671f2
commit 18942e2a2c
2 changed files with 8 additions and 1 deletions

View File

@ -25,4 +25,4 @@ jobs:
- name: Golangci lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46.2
version: v1.48.0

View File

@ -62,6 +62,12 @@ output:
# all available settings of specific linters
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/helmfile/helmfile)
errcheck:
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
@ -278,6 +284,7 @@ linters:
- unparam
- unused
- whitespace
- gci
# don't enable:
# - deadcode
# - gochecknoglobals