chore(lint): keep recognising x/net's deprecated GoAwayError

x/net v0.60.0 marks http2.GoAwayError deprecated while its Transport still
returns it, so the transport classifier must keep matching it. Scope the
SA1019 exclusion to that file.
This commit is contained in:
esengine committed 2026-10-13 08:49:14 -07:00
1 parent 1b9afa89c7
commit 8ef15184db
1 file changed
+6
+6
View File
@@ -64,6 +64,12 @@ linters:
linters:
- staticcheck
text: SA5011
# x/net's Transport still returns GoAwayError although the type is marked
# deprecated, so the classifier has to keep recognising it.
- path: internal/provider/transport_diagnostic
linters:
- staticcheck
text: SA1019
# SA4023 is trivially true on GOOS=windows: dialAgent's Windows stub
# (agent_windows.go) always returns a non-nil error until named-pipe
# transport lands. Suppress only this call site; the comparison stays