style: move nolint:gosmopolitan to the line containing CJK literals

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
dj-oyu 2026-03-01 00:34:20 +09:00
parent b81e4e407c
commit 3872d1b228

View file

@ -645,8 +645,9 @@ func (al *AgentLoop) processMessage(ctx context.Context, msg bus.InboundMessage)
lower := strings.ToLower(content) lower := strings.ToLower(content)
// Check for stop keywords // Check for stop keywords
stopKeywords := []string{ //nolint:gosmopolitan // intentional CJK stop words stopKeywords := []string{
"stop", "cancel", "abort", "停止", "中止", "やめて", "stop", "cancel", "abort",
"停止", "中止", "やめて", //nolint:gosmopolitan // intentional CJK stop words
} }
isStop := false isStop := false
for _, kw := range stopKeywords { for _, kw := range stopKeywords {