Skip to content

Commit b692c20

Browse files
authored
chore(deps): bump golangci-lint to v2.1 (#2176)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent b7128ca commit b692c20

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/setup-go@v5
2222
with:
2323
go-version-file: go.mod
24-
- uses: golangci/golangci-lint-action@v6.5.0
24+
- uses: golangci/golangci-lint-action@v7
2525
with:
26-
version: v1.64.2
27-
args: --verbose
26+
version: v2.1
27+
args: --verbose

.golangci.yml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
---
2+
version: "2"
3+
4+
formatters:
5+
enable:
6+
- gofmt
7+
- goimports
18

29
linters:
3-
disable-all: true
10+
default: none
411
enable:
512
- bodyclose
613
- contextcheck
@@ -11,31 +18,30 @@ linters:
1118
- errname
1219
- errorlint
1320
- gocritic
14-
- gofmt
15-
- goimports
1621
- gosec
17-
- gosimple
1822
- govet
1923
- ineffassign
2024
- staticcheck
2125
- unused
2226

23-
linters-settings:
24-
cyclop:
25-
max-complexity: 15
26-
gocritic:
27-
disabled-checks:
28-
- singleCaseSwitch
29-
gosec:
30-
excludes:
31-
- G115
32-
- G306
27+
settings:
28+
cyclop:
29+
max-complexity: 15
30+
gocritic:
31+
disabled-checks:
32+
- singleCaseSwitch
33+
gosec:
34+
excludes:
35+
- G115
36+
- G306
3337

34-
issues:
35-
exclude-rules:
36-
- path: "."
37-
linters:
38-
- typecheck
38+
exclusions:
39+
generated: strict
40+
presets:
41+
- comments
42+
- common-false-positives
43+
- legacy
44+
- std-error-handling
3945

4046
run:
4147
timeout: 10m

0 commit comments

Comments
 (0)