Update CI configs to v0.11.26

Update lint scripts and CI configs.
This commit is contained in:
Pion
2025-09-01 03:03:40 +00:00
committed by Sean DuBois
parent 850dec457f
commit 67dccba0a6

View File

@@ -91,6 +91,10 @@ linters:
- pattern: ^os.Exit$ - pattern: ^os.Exit$
- pattern: ^panic$ - pattern: ^panic$
- pattern: ^print(ln)?$ - pattern: ^print(ln)?$
- pattern: ^testing.T.(Error|Errorf|Fatal|Fatalf|Fail|FailNow)$
pkg: ^testing$
msg: use testify/assert instead
analyze-types: true
gomodguard: gomodguard:
blocked: blocked:
modules: modules:
@@ -100,6 +104,12 @@ linters:
govet: govet:
enable: enable:
- shadow - shadow
revive:
rules:
# Prefer 'any' type alias over 'interface{}' for Go 1.18+ compatibility
- name: use-any
severity: warning
disabled: false
misspell: misspell:
locale: US locale: US
varnamelen: varnamelen:
@@ -120,7 +130,10 @@ linters:
- linters: - linters:
- forbidigo - forbidigo
- gocognit - gocognit
path: (examples|main\.go|_test\.go) path: (examples|main\.go)
- linters:
- gocognit
path: _test\.go
- linters: - linters:
- forbidigo - forbidigo
path: cmd path: cmd