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
@@ -194,7 +194,8 @@ func next_available_table_cell(cells []atspi.DocumentNode, current atspi.Documen
|
||||
}
|
||||
s := node.Snapshot
|
||||
rowEnd, colEnd := s.TableRowIndex+max(1, s.TableRowSpan)-1, s.TableColumnIndex+max(1, s.TableColumnSpan)-1
|
||||
candidateRow, candidateCol := row, col
|
||||
candidateCol := col
|
||||
var candidateRow int
|
||||
if dr != 0 {
|
||||
if col < s.TableColumnIndex || col > colEnd {
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user