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:
parent
1a2c001e76
commit
911a2b1239
1 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue