Skip to content

Commit ead293e

Browse files
committed
update golangci-lint to v2
1 parent 45a2f4e commit ead293e

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040
go-version: 1.22
4141
cache: false
4242

43-
- uses: golangci/golangci-lint-action@v6
43+
- uses: golangci/golangci-lint-action@v7
4444
with:
45-
version: v1.61
45+
version: v2.0
4646

4747
goreleaser:
4848
name: Release

.golangci.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
issues:
2-
exclude-rules:
3-
- path: _test\.go
4-
linters:
5-
- goconst
6-
- errcheck
7-
- text: "G401:" # Use of weak cryptographic primitive
8-
linters:
9-
- gosec
10-
- text: "G505:" # weak cryptographic primitive
11-
linters:
12-
- gosec
13-
- path: internal/mse/
14-
linters:
15-
- gosec
1+
version: "2"
2+
linters:
3+
exclusions:
4+
presets:
5+
- std-error-handling
6+
rules:
7+
- linters:
8+
- errcheck
9+
- goconst
10+
path: _test\.go
11+
- linters:
12+
- gosec
13+
text: 'G401:'
14+
- linters:
15+
- gosec
16+
text: 'G505:'
17+
- linters:
18+
- gosec
19+
path: internal/mse/

0 commit comments

Comments
 (0)