Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 9 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion static_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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[:]
}
Expand Down