GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — chore: clear staticcheck nits surfaced by the v16 audit by gnanam1990 · Pull Request #208 · Twigpine/zero Conversation
|
| Code | File | Fix |
|---|---|---|
| S1011 ×2 | agenteval/score.go, cli/agent_eval.go |
for … { append(x, e) } → append(x, src...) |
| S1016 | tools/web_search.go |
searchResult{Title:…, URL:…, Snippet:…} → searchResult(item) (identical fields) |
| ST1005 | tools/web_fetch.go |
lowercase the "unsafe redirect URL" error string (+ test assertion) |
| SA4006 | tui/provider_wizard_test.go |
drop the dead final next = assignment (keep the type assertion) |
| S1009 | provideronboarding/localruntime_test.go |
remove redundant == nil before len() |
staticcheck ./...: 32 → 26 (the remaining 26 are the two separate audit buckets: 15 U1000 unused + 11 SA1019 deprecated Bubble Tea mouse API — each its own follow-up).gofmt -l clean · go vet clean · go build ./... · go test ./... (full) pass.deadcode unchanged (100) · govulncheck 0.Scoped deliberately to the cosmetic nits; the dead-code prune, the deprecated mouse-API migration, the unwired Slack sink, and the scoped-network wiring are tracked separately.
Bug Fixes
Refactor
Tests
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fixes the six minor staticcheck findings (no behavior change): - S1011 ×2: loop+append → append(dst, src...) in agenteval/score.go and cli/agent_eval.go. - S1016: convert rawResult to searchResult instead of a field-by-field struct literal in tools/web_search.go (identical fields). - ST1005: lowercase the "unsafe redirect URL" error string in tools/web_fetch.go (+ update its test assertion). - SA4006: drop the dead final assignment to next in a provider_wizard test (keep the type assertion). - S1009: remove the redundant nil check before len() in a provideronboarding test. staticcheck drops 32 → 26 (remaining: 15 U1000 unused + 11 SA1019 deprecated mouse API — separate audit items). gofmt/vet/build/test (full) pass; deadcode unchanged (100); govulncheck 0.
Zero automated PR reviewVerdict: No blockers found Blockers
Validation
ScopeHead: This deterministic review checks validation status and basic diff hygiene. A human reviewer still owns product judgment and design quality. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
WalkthroughSeven single-line edits across five packages: variadic ChangesMinor cleanups and micro-refactors
🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed locally in worktree review-pr208 at b6897d9. The PR title says "staticcheck nits" and the actual diff (1 commit on top of main) is just 95 lines of trivial staticcheck/SA1019-style fixes across 7 files (slice-spread syntax in score.go and agent_eval.go, lowercase error string in web_fetch, dead nil check in localruntime_test, struct-conversion in web_search.go). Confirmed gofmt -l . empty, go vet ./... clean, go build ./... clean, go test ./... only fails on the pre-existing TestRunExecUsesProjectConfigAndOpenAICompatibleProvider (reproduces on clean main, not introduced here).
(Note: gh pr diff shows 8235 lines because the branch's tip inherits 6 already-merged commits — feat(swarm), feat(sandbox), feat(daemon), etc. — but GitHub's PR diff is against main and the actual content added is 95 lines.)
Files touched (1 line each, mostly):
internal/agenteval/score.go — for ... { append } → append(slice, ...)internal/cli/agent_eval.go — same spread patterninternal/provideronboarding/localruntime_test.go — drop redundant == nil checkinternal/tools/web_fetch.go — "Unsafe redirect URL" → "unsafe redirect URL" (linter complained about the capital)internal/tools/web_fetch_test.go — match the new error stringinternal/tools/web_search.go — searchResult{Title:..., URL:..., Snippet:...} → searchResult(item) (struct conversion)internal/tui/provider_wizard_test.go — same kind of simplificationAll sound. Merging.
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.