Skip to content

Commit 5a486d5

Browse files
authored
chore: upgrade golangci-lint to v2.6 (#348)
1 parent e970f6a commit 5a486d5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Run golangci-lint
4747
uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9.0.0
4848
with:
49-
version: v2.5
49+
version: v2.6
5050
go-fmt:
5151
permissions:
5252
contents: read # to fetch code (actions/checkout)

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Run golangci-lint
4646
uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9.0.0
4747
with:
48-
version: v2.5
48+
version: v2.6
4949
go-fmt:
5050
permissions:
5151
contents: read # to fetch code (actions/checkout)

.golangci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ linters:
2424
- wrapcheck # not (yet) convinced
2525
- wsl # disagree with, for now
2626
- wsl_v5 # disagree with, for now
27+
28+
- modernize
2729
settings:
2830
depguard:
2931
rules:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test-with-coverage:
2121
lint: lint-with-golangci-lint lint-with-go-fmt
2222

2323
lint-with-golangci-lint:
24-
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.5.0 run ./...
24+
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.2 run ./...
2525

2626
lint-with-go-fmt:
2727
gofmt -s -d */**.go

0 commit comments

Comments
 (0)