style: fix last 3 lint errors (gci, golines, nolintlint)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d8f00d4148
commit
1a2c001e76
2 changed files with 5 additions and 3 deletions
|
|
@ -467,7 +467,8 @@ func (p *agentLoopDataProvider) GetGitRepos() []miniapp.GitRepoSummary {
|
||||||
seen[repoDir] = true
|
seen[repoDir] = true
|
||||||
name := filepath.Base(repoDir)
|
name := filepath.Base(repoDir)
|
||||||
branch := ""
|
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))
|
branch = strings.TrimSpace(string(out))
|
||||||
}
|
}
|
||||||
repos = append(repos, miniapp.GitRepoSummary{Name: name, Branch: branch})
|
repos = append(repos, miniapp.GitRepoSummary{Name: name, Branch: branch})
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
//nolint:gosmopolitan // intentional CJK stop words
|
stopKeywords := []string{ //nolint:gosmopolitan // intentional CJK stop words
|
||||||
stopKeywords := []string{"stop", "cancel", "abort", "停止", "中止", "やめて"}
|
"stop", "cancel", "abort", "停止", "中止", "やめて",
|
||||||
|
}
|
||||||
isStop := false
|
isStop := false
|
||||||
for _, kw := range stopKeywords {
|
for _, kw := range stopKeywords {
|
||||||
if lower == kw {
|
if lower == kw {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue