From 18942e2a2ce28948a16987ba1b1136388a7a4d00 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Fri, 12 Aug 2022 20:36:09 +0800 Subject: [PATCH] update golang lint Signed-off-by: yxxhero --- .github/workflows/lint.yaml | 2 +- .golangci.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a8045d95..138c9e33 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -25,4 +25,4 @@ jobs: - name: Golangci lint uses: golangci/golangci-lint-action@v3 with: - version: v1.46.2 \ No newline at end of file + version: v1.48.0 \ No newline at end of file diff --git a/.golangci.yaml b/.golangci.yaml index ae0f6f9e..427e5700 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -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