diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 68439fa..472c37a 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -8,15 +8,17 @@ on: pull_request: jobs: golangci: + strategy: + matrix: + go: [ "1.22.x", "1.23.x" ] name: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.23.x' + go-version: ${{ matrix.go }} - name: golangci-lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@v8 with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.60.3 + version: v2.1.6 diff --git a/.golangci.yml b/.golangci.yml index e6b574e..2b48866 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,23 +1,22 @@ -run: -linters-settings: +version: "2" linters: - disable-all: true + default: none enable: - asciicheck - copyloopvar - exhaustive - - goconst - - gofmt # redundant, since gofmt *should* be a no-op after gofumpt - - gofumpt - - goimports - - gosimple - govet - ineffassign - misspell + - nolintlint - prealloc - staticcheck - - stylecheck - unconvert - unparam - unused - + - usetesting +formatters: + enable: + - gofmt + - gofumpt + - goimports diff --git a/static_table.go b/static_table.go index 73c365e..93eca27 100644 --- a/static_table.go +++ b/static_table.go @@ -105,7 +105,7 @@ var staticTableEntries = [...]HeaderField{ // Only needed for tests. // use go:linkname to retrieve the static table. // -//nolint:deadcode,unused +//nolint:unused func getStaticTable() []HeaderField { return staticTableEntries[:] }