gofix: exclude stringsbuilder analyzer from modernize checks

This commit is contained in:
Julian Sommer
2026-02-19 15:15:24 +10:00
parent 27a27f660a
commit e6ffecafca
+3 -2
View File
@@ -128,8 +128,9 @@ vet:
go vet ./...
@echo " go vet ok"
# newexpr — replaces aws.String() with new(), not idiomatic for AWS SDK code
GOFIX_EXCLUDE := -newexpr=false
# Excluded: newexpr (replaces aws.String with new, not idiomatic for AWS SDK)
# Excluded: stringsbuilder (replaces string += in loops with strings.Builder, not worth the complexity for small loops)
GOFIX_EXCLUDE := -newexpr=false -stringsbuilder=false
# Apply go fix modernizations
modernize: