File tree Expand file tree Collapse file tree 2 files changed +28
-22
lines changed
Expand file tree Collapse file tree 2 files changed +28
-22
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ ---
2+ version : " 2"
3+
4+ formatters :
5+ enable :
6+ - gofmt
7+ - goimports
18
29linters :
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
4046run :
4147 timeout : 10m
You can’t perform that action at this time.
0 commit comments