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:
1 parent
b03cb8917d
commit
0459fb8e50
43 files changed
+166
-112
No files matched your search
@@ -555,11 +555,6 @@ func TestStopTimeoutPreservesShutdownCueForRetry(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
type stopCountingPlayer struct {
|
||||
stopData []byte
|
||||
stopCalls int
|
||||
}
|
||||
|
||||
type queueBlockingPlayer struct {
|
||||
stopData []byte
|
||||
entered chan struct{}
|
||||
@@ -577,13 +572,6 @@ func (player *queueBlockingPlayer) Play(ctx context.Context, data []byte, _, _ f
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
func (player *stopCountingPlayer) Play(_ context.Context, data []byte, _, _ float64) error {
|
||||
if bytes.Equal(data, player.stopData) {
|
||||
player.stopCalls++
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type stagedStopPlayer struct {
|
||||
stopData []byte
|
||||
entered chan struct{}
|
||||
|
||||
Reference in new issue
Block a user