carlos / platform Public

staticcheck: turn SA1019 on

The deprecated-API sites are cleared: migrated where behaviour stays
the same, and marked with a lint:ignore naming the blocker where it
would not. make staticcheck is clean with the check enabled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 47a89b5da5a5528332f8c9a803a76c4bf41fcae0 parent 9e67258
1 file changed, +11 −10
  • staticcheck.conf +11 −10
diff --git a/staticcheck.conf b/staticcheck.conf
index f21e89621..5e731fcde 100644
--- a/staticcheck.conf
+++ b/staticcheck.conf
@@ -7,20 +7,21 @@
# them: ST1005 118, U1000 68, ST1013 35, S1038 26. Turning one on is its
# own branch, with the tree cleaned first, so the gate stays green.
#
-# Two SA checks are off too, each a family too large to fix safely in
-# the branch that added this file. Counts are from that branch's run on
-# 15b1ee6b, with -tags rootrunner,carlos_cutover_witness. A follow-up owns each one:
-# fix the sites, then delete the line here.
+# One SA check is off too, a family too large to fix safely in the
+# branch that added this file. The count is from that branch's run on
+# 15b1ee6b, with -tags rootrunner,carlos_cutover_witness. A follow-up owns
+# it: fix the sites, then delete the line here.
#
# SA1012 177 sites: a nil context.Context passed to a function. 153 are
# internal/registry production code (registry.go alone has 84),
# which is in the root binary's graph, so a fix is a census
# change; 20 more in internal/activator (3 outside tests).
-# SA1019 70 sites (20 outside tests): deprecated APIs, mostly
-# golang.org/x/net/http2's ClientConn, Transport and Server
-# (moved into net/http), then go/parser.ParseDir,
-# httputil.ReverseProxy's Director and ecdsa's raw key
-# coordinates. Each needs a real migration, not a rename.
+#
+# SA1019 (use of a deprecated API) was off here too, with 70 sites.
+# Branch staticcheck-sa1019 migrated what could move without changing
+# behaviour and turned it on. The sites left carry a lint:ignore naming
+# what blocks them, most of them because net/http has no replacement yet
+# for what the tunnel uses in golang.org/x/net/http2.
#
# SA4006 (a value assigned and never read) was off here too, with 70
# sites. Branch staticcheck-sa4006 read every one, removed the dead
@@ -31,4 +32,4 @@
# Deliberate cases of an enabled check carry a `//lint:ignore <check>
# <reason>` on the line above them (the empty critical sections that are
# barriers, for instance). staticcheck ignores `//nolint` comments.
-checks = ["SA*", "-SA1012", "-SA1019"]
+checks = ["SA*", "-SA1012"]