File tree Expand file tree Collapse file tree 3 files changed +21
-19
lines changed
Expand file tree Collapse file tree 3 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,10 @@ jobs:
1818 runs-on : ubuntu-latest
1919 steps :
2020 - uses : actions/checkout@v3
21- - uses : actions/setup-go@v3
21+ - uses : actions/setup-go@v5
2222 with :
2323 go-version-file : go.mod
24- cache : true
25- cache-dependency-path : go.sum
26- - uses : golangci/golangci-lint-action@v3
24+ - uses : golangci/golangci-lint-action@v6
2725 with :
28- version : v1.52
29- skip-cache : true
30- args : --timeout 10m --verbose
26+ version : v1.63
27+ args : --verbose
Original file line number Diff line number Diff line change 22linters :
33 disable-all : true
44 enable :
5- - deadcode
6- - errcheck
7- - gosimple
8- - govet
9- - ineffassign
10- - staticcheck
11- - structcheck
12- - unused
13- - varcheck
145 - bodyclose
156 - contextcheck
7+ - copyloopvar
168 - cyclop
179 - durationcheck
10+ - errcheck
1811 - errname
1912 - errorlint
20- - exportloopref
13+ - gocritic
14+ - gofmt
2115 - goimports
2216 - gosec
23- - gocritic
17+ - gosimple
18+ - govet
19+ - ineffassign
20+ - staticcheck
21+ - unused
2422
2523linters-settings :
2624 cyclop :
2725 max-complexity : 15
2826 gocritic :
2927 disabled-checks :
3028 - singleCaseSwitch
29+ gosec :
30+ excludes :
31+ - G115
32+ - G306
3133
3234issues :
3335 exclude-rules :
3436 - path : " ."
3537 linters :
3638 - typecheck
39+
40+ run :
41+ timeout : 10m
Original file line number Diff line number Diff line change 4343
4444.PHONY : quality
4545quality :
46- which golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
46+ which golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.4
4747 golangci-lint run
4848
4949.PHONY : fix-typos
You can’t perform that action at this time.
0 commit comments