File tree Expand file tree Collapse file tree 3 files changed +66
-27
lines changed
Expand file tree Collapse file tree 3 files changed +66
-27
lines changed Original file line number Diff line number Diff line change 5353 echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
5454 echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
5555
56- - uses : golangci/golangci-lint-action@v3
56+ - uses : golangci/golangci-lint-action@v8.0.0
5757 with :
58- version : v1.62.2
58+ version : v2.4.0
5959 working-directory : src/github.com/containerd/imgcrypt
6060 args : --timeout 120s
6161
Original file line number Diff line number Diff line change 1+ linters :
2+ enable :
3+ - depguard
4+ - staticcheck
5+ - unconvert
6+ - gofmt
7+ - goimports
8+ - govet
9+ - revive
10+ - ineffassign
11+ - unused
12+ - misspell
13+
14+ issue :
15+ exclude-dirs :
16+ - cmd/ctr/commands/run
17+ - cmd/ctr/commands/images
18+ - cmd\\ctr\\commands\\run
19+ - cmd\\ctr\\commands\\images
20+ exclude-files :
21+ - cmd/ctr/commands/commands.go
22+ - cmd\\ctr\\commands\\commands.go
23+
24+ linters-settings :
25+ depguard :
26+ rules :
27+ main :
28+ files :
29+ - $all
30+ deny :
31+ - pkg : " io/ioutil"
Original file line number Diff line number Diff line change 1+ version : " 2"
12linters :
23 enable :
34 - depguard
4- - staticcheck
5+ - misspell
6+ - revive
57 - unconvert
8+ settings :
9+ depguard :
10+ rules :
11+ main :
12+ files :
13+ - $all
14+ deny :
15+ - pkg : io/ioutil
16+ exclusions :
17+ generated : lax
18+ presets :
19+ - comments
20+ - common-false-positives
21+ - legacy
22+ - std-error-handling
23+ paths :
24+ - cmd/ctr/commands/run
25+ - cmd/ctr/commands/images
26+ - cmd\\ctr\\commands\\run
27+ - cmd\\ctr\\commands\\images
28+ - cmd/ctr/commands/commands.go
29+ - cmd\\ctr\\commands\\commands.go
30+ formatters :
31+ enable :
632 - gofmt
733 - goimports
8- - govet
9- - revive
10- - ineffassign
11- - unused
12- - misspell
13-
14- issue :
15- exclude-dirs :
16- - cmd/ctr/commands/run
17- - cmd/ctr/commands/images
18- - cmd\\ctr\\commands\\run
19- - cmd\\ctr\\commands\\images
20- exclude-files :
21- - cmd/ctr/commands/commands.go
22- - cmd\\ctr\\commands\\commands.go
23-
24- linters-settings :
25- depguard :
26- rules :
27- main :
28- files :
29- - $all
30- deny :
31- - pkg : " io/ioutil"
34+ exclusions :
35+ generated : lax
36+ paths :
37+ - third_party$
38+ - builtin$
39+ - examples$
You can’t perform that action at this time.
0 commit comments