From 3e0a67b2476e1819752f04d75968de042b197b56 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 18 Nov 2024 16:01:39 +0100 Subject: [PATCH] ci: update golangci-lint to v1.62.0 (#4725) --- .github/workflows/lint.yml | 2 +- .golangci.yml | 2 +- connection_test.go | 1 - http3/conn_test.go | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a193943dd..22fc9a584 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -41,7 +41,7 @@ jobs: matrix: go: [ "1.22.x", "1.23.x" ] env: - GOLANGCI_LINT_VERSION: v1.60.1 + GOLANGCI_LINT_VERSION: v1.62.0 name: golangci-lint (Go ${{ matrix.go }}) steps: - uses: actions/checkout@v4 diff --git a/.golangci.yml b/.golangci.yml index 63b40cc34..72a4c7ad7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,9 +16,9 @@ linters: disable-all: true enable: - asciicheck + - copyloopvar - depguard - exhaustive - - exportloopref - goimports - gofmt # redundant, since gofmt *should* be a no-op after gofumpt - gofumpt diff --git a/connection_test.go b/connection_test.go index 6ece26dc7..1c301b84f 100644 --- a/connection_test.go +++ b/connection_test.go @@ -1639,7 +1639,6 @@ var _ = Describe("Connection", func() { }) for _, withGSO := range []bool{false, true} { - withGSO := withGSO It(fmt.Sprintf("doesn't try to send if the send queue is full: %t", withGSO), func() { if withGSO { enableGSO() diff --git a/http3/conn_test.go b/http3/conn_test.go index 552a6f4f6..7eb338404 100644 --- a/http3/conn_test.go +++ b/http3/conn_test.go @@ -257,7 +257,6 @@ var _ = Describe("Connection", func() { }) for _, pers := range []protocol.Perspective{protocol.PerspectiveServer, protocol.PerspectiveClient} { - pers := pers expectedErr := ErrCodeIDError if pers == protocol.PerspectiveClient { expectedErr = ErrCodeStreamCreationError