mirror of
https://github.com/pion/ice.git
synced 2025-09-26 19:41:11 +08:00
Update CI configs to v0.11.26
Update lint scripts and CI configs.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user