File tree Expand file tree Collapse file tree 2 files changed +17
-18
lines changed
Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 2424 go-version : ${{ matrix.go-version }}
2525
2626 - uses : actions/checkout@v6
27- - uses : golangci/golangci-lint-action@v6
27+ - uses : golangci/golangci-lint-action@v9
2828 with :
29- version : v1.59
29+ version : v2.7
3030 skip-cache : true
3131 args : --timeout=5m
3232
Original file line number Diff line number Diff line change 1+ version : " 2"
12linters :
23 enable :
3- - depguard
4- - staticcheck
5- - unconvert
6- - gofmt
7- - goimports
8- - ineffassign
9- - govet
10- - unused
114 - misspell
5+ - unconvert
126 disable :
137 - errcheck
14-
15- linters-settings :
16- depguard :
17- rules :
18- main :
19- deny :
20- - pkg : io/ioutil
21- desc : The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
8+ settings :
9+ staticcheck :
10+ # Enable all options, with some exceptions.
11+ # For defaults, see https://golangci-lint.run/usage/linters/#staticcheck
12+ checks :
13+ - all
14+ - -QF1008 # Omit embedded fields from selector expression; https://staticcheck.dev/docs/checks/#QF1008
15+ - -ST1000 # TODO: Incorrect or missing package comment; https://staticcheck.dev/docs/checks/#ST1000
16+ - -ST1003 # Poorly chosen identifier; https://staticcheck.dev/docs/checks/#ST1003
17+ formatters :
18+ enable :
19+ - gofmt
20+ - goimports
You can’t perform that action at this time.
0 commit comments