Skip to content

Commit 21460d0

Browse files
gcmsgclaude
andcommitted
fix: use golangci-lint v2 config format for exclusion rules
issues.exclude-rules was renamed to linters.exclusions.rules in v2. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1c6d3d5 commit 21460d0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.golangci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ linters:
66
- staticcheck
77
- unused
88

9-
issues:
10-
exclude-rules:
11-
# Exclude errcheck in test files – test helpers rarely need error checking.
12-
- path: _test\.go
13-
linters:
14-
- errcheck
9+
exclusions:
10+
rules:
11+
# Exclude errcheck in test files – test helpers rarely need error checking.
12+
- path: _test\.go
13+
linters:
14+
- errcheck
1515

16-
# nhooyr.io/websocket is deprecated in favour of github.com/coder/websocket.
17-
# Migration is tracked separately; suppress SA1019 for the signaling package.
18-
- path: internal/signaling/
19-
linters:
20-
- staticcheck
21-
text: "SA1019"
16+
# nhooyr.io/websocket is deprecated in favour of github.com/coder/websocket.
17+
# Migration is tracked separately; suppress SA1019 for the signaling package.
18+
- path: internal/signaling/
19+
linters:
20+
- staticcheck
21+
text: "SA1019"
2222

23-
# QF1002 (convert if/else-if chain to tagged switch) is a style suggestion.
24-
- linters:
25-
- staticcheck
26-
text: "QF1002"
23+
# QF1002 (convert if/else-if chain to tagged switch) is a style suggestion.
24+
- linters:
25+
- staticcheck
26+
text: "QF1002"

0 commit comments

Comments
 (0)