diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60a8dca..dd6e4b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: go.mod - - uses: golangci/golangci-lint-action@v6 + - uses: golangci/golangci-lint-action@v7 with: version: latest diff --git a/.golangci.yml b/.golangci.yml index 7885070..e3b0796 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,15 +26,15 @@ linters: - appendAssign - commentFormatting + exclusions: + rules: + - path: _test\.go + linters: + - errcheck + - gocritic + paths: + - vendor + formatters: enable: - gofmt - -issues: - exclude-rules: - - path: _test\.go - linters: - - errcheck - - gocritic - exclude-dirs: - - vendor diff --git a/catalog/types_test.go b/catalog/types_test.go index ab61133..3345d20 100644 --- a/catalog/types_test.go +++ b/catalog/types_test.go @@ -76,14 +76,14 @@ func TestIsOneClick(t *testing.T) { Meta: &Meta{ K8s: &KubernetesExtensions{ CRTemplate: map[string]any{ - "source": map[string]any{ - "type": "ContainerImage", - "containerImage": map[string]any{ - "ref": "test:latest", + "source": map[string]any{ + "type": "ContainerImage", + "containerImage": map[string]any{ + "ref": "test:latest", + }, }, }, }, - }, }, }, want: true,