simd/archsimd/_gen: annotate text/template usage

Internal scanning tools think we are using text/template for generating
YAML. We are not, we are using it for generating Go code, which is
reviewed before being checked in. The internal tooling must be quieted,
so I've annotated the text/template import. I don't think leaking these
internal abstractions, but we don't have much choice unfortunately.

Change-Id: Ie6dfa27bf4f4b5df8dbd492ae95b474f8145e745
Reviewed-on: https://go-review.googlesource.com/c/go/+/774480
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Roland Shoemaker 2026-05-05 11:14:08 -07:00
parent 661e0c610e
commit abdc5da461

View file

@ -16,7 +16,7 @@ import (
"slices"
"sort"
"strings"
"text/template"
"text/template" // NOLINT
"unicode"
)