File tree Expand file tree Collapse file tree 2 files changed +32
-21
lines changed
Expand file tree Collapse file tree 2 files changed +32
-21
lines changed Original file line number Diff line number Diff line change 1313 with :
1414 go-version-file : go.mod
1515 - name : golangci-lint
16- uses : wandera /golangci-lint-action@v4
16+ uses : golangci /golangci-lint-action@v8
1717 with :
18- version : v1.64.8
18+ version : v2.1
Original file line number Diff line number Diff line change 1- run :
2- timeout : 5m
1+ version : " 2"
32linters :
4- disable-all : true
3+ default : none
54 enable :
6- - gosimple
5+ - godot
6+ - gosec
77 - govet
88 - ineffassign
99 - staticcheck
10- - typecheck
10+ - unparam
1111 - unused
12- - gofmt
13- - gci
14- - godot
15- - gofumpt
1612 - whitespace
17-
18- issues :
19- exclude-rules :
20- # Exclude some linters from running on tests files.
21- - path : _test\.go
22- linters :
23- - ineffassign
24-
13+ exclusions :
14+ generated : lax
15+ presets :
16+ - comments
17+ - common-false-positives
18+ - legacy
19+ - std-error-handling
20+ rules :
2521 - linters :
26- - staticcheck
27- text : " SA4006:" # SA4006: this value of `not_used` is never used (staticcheck)
22+ - gosec
23+ - ineffassign
24+ path : _test\.go
25+ paths :
26+ - third_party$
27+ - builtin$
28+ - examples$
29+ formatters :
30+ enable :
31+ - gci
32+ - gofumpt
33+ exclusions :
34+ generated : lax
35+ paths :
36+ - third_party$
37+ - builtin$
38+ - examples$
You can’t perform that action at this time.
0 commit comments