Skip to content

Commit 3f818e7

Browse files
committed
chore(osgen): silence gochecknoglobals on decodeEquivalentGroups lookup table
Pre-existing lint warning introduced in f95f305 (opensearch-project#844); the table is a static codegen lookup intentionally kept package-level next to its doc comment and the funcs that consult it. Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
1 parent cc29e39 commit 3f818e7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/osgen/resp_union.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ func deduplicateBranches(branches []unionBranch) []unionBranch {
429429
// so the two classes remain mutually reachable. string and bool need no group:
430430
// each has a single Go type, and exact GoType duplicates are already removed by
431431
// deduplicateBranches.
432+
//
433+
//nolint:gochecknoglobals // static lookup table; package-level so it's visible next to its doc comment and the funcs that consult it
432434
var decodeEquivalentGroups = [][]string{
433435
{"int64", "int", "int32"},
434436
{"float64", "float32"},

0 commit comments

Comments
 (0)