ci: enable the nolintlint linter (#5221)

This linter helps us find unneeded nolint statements.
This commit is contained in:
Marten Seemann
2025-06-11 12:52:21 +08:00
committed by GitHub
parent 01921ede97
commit aa22706d78
7 changed files with 3 additions and 9 deletions

View File

@@ -229,7 +229,7 @@ func TestContextOnClientSide(t *testing.T) {
return &tlsServerConf.Certificates[0], nil
}
ctx, cancel := context.WithCancel(context.WithValue(context.Background(), "foo", "bar")) //nolint:staticcheck
ctx, cancel := context.WithCancel(context.WithValue(context.Background(), "foo", "bar"))
conn, err := quic.Dial(
ctx,
newUDPConnLocalhost(t),

View File

@@ -675,7 +675,7 @@ func TestHTTPConnContext(t *testing.T) {
func(s *http3.Server) {
s.ConnContext = func(ctx context.Context, c *quic.Conn) context.Context {
connCtxChan <- ctx
ctx = context.WithValue(ctx, "foo", "bar") //nolint:staticcheck
ctx = context.WithValue(ctx, "foo", "bar")
return ctx
}
},