From ea74765a5853ec3d026fc6bc8598d665d457b340 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 16 Apr 2021 16:50:31 +0200 Subject: [PATCH] golangci.yml: update regex for ignoring SA1019 The message changed from "is deprecated" to "has been deprecated": client/hijack.go:85:16: SA1019: httputil.NewClientConn has been deprecated since Go 1.0: Use the Client or Transport in package net/http instead. (staticcheck) clientconn := httputil.NewClientConn(conn, nil) ^ integration/plugin/authz/authz_plugin_test.go:180:7: SA1019: httputil.NewClientConn has been deprecated since Go 1.0: Use the Client or Transport in package net/http instead. (staticcheck) c := httputil.NewClientConn(conn, nil) ^ integration/plugin/authz/authz_plugin_test.go:479:12: SA1019: httputil.NewClientConn has been deprecated since Go 1.0: Use the Client or Transport in package net/http instead. (staticcheck) client := httputil.NewClientConn(conn, nil) ^ Signed-off-by: Sebastiaan van Stijn --- hack/validate/golangci-lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/validate/golangci-lint.yml b/hack/validate/golangci-lint.yml index c4494b9d18..8af0a140cf 100644 --- a/hack/validate/golangci-lint.yml +++ b/hack/validate/golangci-lint.yml @@ -86,11 +86,11 @@ issues: linters: - staticcheck # FIXME temporarily suppress these. See #39926 - - text: "SA1019: httputil.NewClientConn is deprecated" + - text: "SA1019: httputil.NewClientConn" linters: - staticcheck # FIXME temporarily suppress these (related to the ones above) - - text: "SA1019: httputil.ErrPersistEOF is deprecated" + - text: "SA1019: httputil.ErrPersistEOF" linters: - staticcheck # This code is doing some fun stuff with reflect and it trips up the linter.