style: fix last 3 lint errors (gci, golines, nolintlint)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
dj-oyu 2026-03-01 00:27:41 +09:00
parent d8f00d4148
commit 1a2c001e76
2 changed files with 5 additions and 3 deletions

View file

@ -467,7 +467,8 @@ func (p *agentLoopDataProvider) GetGitRepos() []miniapp.GitRepoSummary {
seen[repoDir] = true
name := filepath.Base(repoDir)
branch := ""
if out, err := exec.Command("git", "-C", repoDir, "rev-parse", "--abbrev-ref", "HEAD").Output(); err == nil {
out, err := exec.Command("git", "-C", repoDir, "rev-parse", "--abbrev-ref", "HEAD").Output()
if err == nil {
branch = strings.TrimSpace(string(out))
}
repos = append(repos, miniapp.GitRepoSummary{Name: name, Branch: branch})

View file

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