Skip to content

Commit bc386e3

Browse files
committedMar 28, 2025·
ci: updated config for golangci-lint v2
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 6613744 commit bc386e3

File tree

2 files changed

+55
-49
lines changed

2 files changed

+55
-49
lines changed
 

Diff for: ‎.github/workflows/go-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
check-latest: true
2222
cache: true
2323
- name: golangci-lint
24-
uses: golangci/golangci-lint-action@v6
24+
uses: golangci/golangci-lint-action@v7
2525
with:
2626
version: latest
2727
only-new-issues: true

Diff for: ‎.golangci.yml

+54-48
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,62 @@
1-
linters-settings:
2-
gocyclo:
3-
min-complexity: 45
4-
dupl:
5-
threshold: 200
6-
goconst:
7-
min-len: 2
8-
min-occurrences: 3
9-
1+
version: "2"
102
linters:
11-
enable-all: true
3+
default: all
124
disable:
13-
- recvcheck
14-
- unparam
15-
- lll
16-
- gochecknoinits
17-
- gochecknoglobals
5+
- cyclop
6+
- depguard
7+
- errchkjson
8+
- errorlint
9+
- exhaustruct
10+
- forcetypeassert
1811
- funlen
19-
- godox
12+
- gochecknoglobals
13+
- gochecknoinits
2014
- gocognit
21-
- whitespace
22-
- wsl
23-
- wrapcheck
24-
- testpackage
25-
- nlreturn
26-
- errorlint
27-
- nestif
2815
- godot
29-
- gofumpt
16+
- godox
17+
- gosmopolitan
18+
- inamedparam
19+
- ireturn
20+
- lll
21+
- musttag
22+
- nestif
23+
- nlreturn
24+
- nonamedreturns
3025
- paralleltest
31-
- tparallel
26+
- testpackage
3227
- thelper
33-
- exhaustruct
28+
- tparallel
29+
- unparam
3430
- varnamelen
35-
- gci
36-
- depguard
37-
- errchkjson
38-
- inamedparam
39-
- nonamedreturns
40-
- musttag
41-
- ireturn
42-
- forcetypeassert
43-
- cyclop
44-
# deprecated linters
45-
#- deadcode
46-
#- interfacer
47-
#- scopelint
48-
#- varcheck
49-
#- structcheck
50-
#- golint
51-
#- nosnakecase
52-
#- maligned
53-
#- goerr113
54-
#- ifshort
55-
#- gomnd
56-
#- exhaustivestruct
31+
- whitespace
32+
- wrapcheck
33+
- wsl
34+
settings:
35+
dupl:
36+
threshold: 200
37+
goconst:
38+
min-len: 2
39+
min-occurrences: 3
40+
gocyclo:
41+
min-complexity: 45
42+
exclusions:
43+
generated: lax
44+
presets:
45+
- comments
46+
- common-false-positives
47+
- legacy
48+
- std-error-handling
49+
paths:
50+
- third_party$
51+
- builtin$
52+
- examples$
53+
formatters:
54+
enable:
55+
- gofmt
56+
- goimports
57+
exclusions:
58+
generated: lax
59+
paths:
60+
- third_party$
61+
- builtin$
62+
- examples$

0 commit comments

Comments
 (0)
Please sign in to comment.