From 652006f3f88fa464d4eaeaaa2a41f9d9627dd902 Mon Sep 17 00:00:00 2001 From: Doria Keung Date: Wed, 20 Nov 2024 12:25:38 -0500 Subject: [PATCH] Fix annotation for FIELD_NOT_REQUIRED rule --- .../bufcheckserver/internal/bufcheckserverhandle/lint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/private/bufpkg/bufcheck/bufcheckserver/internal/bufcheckserverhandle/lint.go b/private/bufpkg/bufcheck/bufcheckserver/internal/bufcheckserverhandle/lint.go index 361acdc030..fbb23df043 100644 --- a/private/bufpkg/bufcheck/bufcheckserver/internal/bufcheckserverhandle/lint.go +++ b/private/bufpkg/bufcheck/bufcheckserver/internal/bufcheckserverhandle/lint.go @@ -408,6 +408,7 @@ func handleLintFieldNotRequired( field.NameLocation(), nil, `Field named %q should not be required.`, + field.Name(), ) } return nil