update protocol for protojson (#4510)

This commit is contained in:
Paul Wells
2026-05-07 00:55:00 -07:00
committed by GitHub
parent 3de6f517e5
commit 8fbc5adfce
6 changed files with 17 additions and 8 deletions
+9
View File
@@ -2,8 +2,15 @@ version: "2"
linters:
default: none
enable:
- depguard
- staticcheck
settings:
depguard:
rules:
protojson:
deny:
- pkg: google.golang.org/protobuf/encoding/protojson
desc: use github.com/livekit/protocol/utils/protojson instead — it sets DiscardUnknown by default to avoid schema-drift footguns
staticcheck:
checks:
- "all"
@@ -14,3 +21,5 @@ linters:
- "-ST1022"
- "-SA1019"
- "-QF1008"
exclusions:
generated: strict