Skip to content

Commit b226332

Browse files
committed
chore: update lint config for golangci-lint v2.11 compat
1 parent 9805c57 commit b226332

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/mcp/.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,18 @@ linters:
3232
excludes:
3333
- G301 # directory permissions 0755 — fine for user-facing dirs
3434
- G302 # file permissions 0644 — fine for user-facing files
35+
- G204 # subprocess with variable — we call quint/git as subprocess intentionally
3536
- G304 # file inclusion via variable — we read user-specified paths intentionally
3637
- G306 # WriteFile permissions 0644 — fine for markdown/config files
38+
- G703 # path traversal — we construct paths from project root intentionally
3739
exclusions:
3840
rules:
3941
- linters:
4042
- staticcheck
4143
text: "QF1003"
44+
- linters:
45+
- staticcheck
46+
text: "QF1012"
4247
- linters:
4348
- errcheck
4449
source: "defer .*(Close|Rollback)\\(\\)"

0 commit comments

Comments
 (0)