diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index bab80f0363..5d605ea934 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -1,6 +1,6 @@ name: "ReviewDog workflow" env: - GOLANGCI_LINT_VERSION: "v2.6.0" + GOLANGCI_LINT_VERSION: "v2.7.1" on: push: branches: diff --git a/.golangci.yml b/.golangci.yml index 50996eed33..2623549a58 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -126,7 +126,6 @@ linters: path: _test\.go text: 'dot-imports: should not use dot imports' # dot imports OK for tests - linters: revive - path: util/ text: 'var-naming: avoid meaningless package names' # util package is OK - linters: unused text: 'field _struct is unused' # we use _struct field tags for msgp/json encoding settings diff --git a/Makefile b/Makefile index 8edfe94a3e..ee4099c1c2 100644 --- a/Makefile +++ b/Makefile @@ -105,7 +105,7 @@ modernize: GOTOOLCHAIN=auto go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@v0.39.0 -any=false -bloop=false -rangeint=false -fmtappendf=false -waitgroup=false -stringsbuilder=false -omitzero=false -fix ./... lint: - go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.1 run -c .golangci.yml + go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.7.1 run -c .golangci.yml warninglint: custom-golangci-lint ./custom-golangci-lint run -c .golangci-warnings.yml