From f9c05e2abdfa00bb2b56deddfa0ad7edeb7ad80d Mon Sep 17 00:00:00 2001 From: plastikfan Date: Sat, 27 Apr 2024 11:09:53 +0100 Subject: [PATCH] chore: update lint to 1.56.2 and fix lint errors --- .github/workflows/ci-workflow.yml | 2 +- .vscode/settings.json | 3 +++ i18n/i18n_suite_test.go | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 330927f..dff211c 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -14,7 +14,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.54.2 + version: v1.56.2 args: --verbose test: diff --git a/.vscode/settings.json b/.vscode/settings.json index 481d918..8da9619 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -25,6 +25,7 @@ "gofmt", "goimports", "golangci", + "gomega", "gomnd", "goreleaser", "gosec", @@ -37,7 +38,9 @@ "linters", "mattn", "nakedret", + "nolint", "nolintlint", + "onsi", "outdir", "pixa", "prealloc", diff --git a/i18n/i18n_suite_test.go b/i18n/i18n_suite_test.go index 4cc92d2..dac047d 100644 --- a/i18n/i18n_suite_test.go +++ b/i18n/i18n_suite_test.go @@ -3,8 +3,8 @@ package i18n_test import ( "testing" - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" + . "github.com/onsi/ginkgo/v2" //nolint:revive // ginkgo ok + . "github.com/onsi/gomega" //nolint:revive // gomega ok ) func TestI18n(t *testing.T) {