Skip to content

Commit 449b19d

Browse files
committed
chore: Update golangci-lint version and configuration
- Update the `golangci-lint-action` in `.github/workflows/ci.yml` to use `v2.6.2`. - Update the `version` field in `.golangci.yml` to `"2"`. - Rescope `issues.exclude-rules` to `exclusions.rules` in `.golangci.yml` for newer versions. - Update the `golangci-lint` version in `.mise.toml` to `2.6.2`.
1 parent 816df40 commit 449b19d

3 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: golangci-lint
5454
uses: golangci/golangci-lint-action@v6
5555
with:
56-
version: latest
56+
version: v2.6.2
5757
args: --timeout=5m
5858

5959
build-cross-platform:

.golangci.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# golangci-lint configuration v2
2-
version: 2
1+
version: "2"
32

43
run:
54
timeout: 5m
@@ -9,13 +8,13 @@ linters:
98
- unused # Disabled due to restructuring - some runner types may appear unused
109
- errcheck # Too noisy for test files - use go vet instead
1110

12-
issues:
13-
exclude-rules:
14-
# Exclude specific issues in internal/runners.go
15-
- path: internal/runners.go
16-
linters:
17-
- unused
18-
# Don't require error checking in test files
19-
- path: _test\.go
20-
linters:
21-
- errcheck
11+
exclusions:
12+
rules:
13+
# Exclude specific issues in internal/runners.go
14+
- path: internal/runners.go
15+
linters:
16+
- unused
17+
# Don't require error checking in test files
18+
- path: _test\.go
19+
linters:
20+
- errcheck

.mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tools]
22
go = "1.25"
3-
golangci-lint = "2"
3+
golangci-lint = "2.6.2"
44
lefthook = "1"
55

66
[tasks.format]

0 commit comments

Comments
 (0)