Add golangci-lint gate and fix its findings

Configure golangci-lint v2 for the whole tree (brlapi/duckdb build tags, curated linters, documented exclusions) and resolve what it reports: dead code, wrapped-error comparisons and %w wrapping, unclosed websocket handshake bodies, staticcheck SA/S items, ineffectual assignments, and explicit _ = discards for best-effort teardown errors. Document the gate in CONTRIBUTING and AGENTS.
This commit is contained in:
hjozwiak committed 2026-11-10 21:13:49 -05:00
1 parent b03cb8917d
commit 0459fb8e50
43 files changed
+166 -112

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ type viewport struct {
}
func (v *viewport) replace(text string) {
v.setFrame(Frame{Text: text, Cursor: -1})
_ = v.setFrame(Frame{Text: text, Cursor: -1})
}
func (v *viewport) setFrame(frame Frame) error {