From 5b098de582ba7d6f26ce0c8d48da75a59b5375b3 Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Mon, 1 Sep 2025 03:06:55 +0000 Subject: [PATCH] Update CI configs to v0.11.26 Update lint scripts and CI configs. --- .golangci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index d61e68dd..4b4025fb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -91,6 +91,10 @@ linters: - pattern: ^os.Exit$ - pattern: ^panic$ - pattern: ^print(ln)?$ + - pattern: ^testing.T.(Error|Errorf|Fatal|Fatalf|Fail|FailNow)$ + pkg: ^testing$ + msg: use testify/assert instead + analyze-types: true gomodguard: blocked: modules: @@ -100,6 +104,12 @@ linters: govet: enable: - shadow + revive: + rules: + # Prefer 'any' type alias over 'interface{}' for Go 1.18+ compatibility + - name: use-any + severity: warning + disabled: false misspell: locale: US varnamelen: @@ -120,7 +130,10 @@ linters: - linters: - forbidigo - gocognit - path: (examples|main\.go|_test\.go) + path: (examples|main\.go) + - linters: + - gocognit + path: _test\.go - linters: - forbidigo path: cmd