File tree Expand file tree Collapse file tree 2 files changed +35
-18
lines changed Expand file tree Collapse file tree 2 files changed +35
-18
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ permissions:
1212
1313env :
1414 GO_VERSION : v1.23.6
15- GOLANGCI_LINT_VERSION : v1.60 .1
15+ GOLANGCI_LINT_VERSION : v2 .1
1616
1717jobs :
1818 golangci :
2424 with :
2525 go-version : ${{ env.GO_VERSION }}
2626 - name : golangci-lint
27- uses : golangci/golangci-lint-action@v6
27+ uses : golangci/golangci-lint-action@v8
2828 with :
2929 version : ${{ env.GOLANGCI_LINT_VERSION }}
3030 args : --verbose
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- - gofmt
7- - revive
8- - gosec
9- - govet
10- - unused
5+ - gosec
6+ - govet
7+ - revive
8+ - unused
9+ exclusions :
10+ generated : lax
11+ presets :
12+ - comments
13+ - common-false-positives
14+ - legacy
15+ - std-error-handling
16+ rules :
17+ - linters :
18+ - gosec
19+ path : _test\.go
20+ - linters :
21+ - gosec
22+ path : ^tests/
23+ paths :
24+ - third_party$
25+ - builtin$
26+ - examples$
1127issues :
1228 fix : true
13- exclude-rules :
14- # Don't run security checks on test files
15- - path : _test\.go
16- linters :
17- - gosec
18- - path : ^tests/
19- linters :
20- - gosec
29+ formatters :
30+ enable :
31+ - gofmt
32+ exclusions :
33+ generated : lax
34+ paths :
35+ - third_party$
36+ - builtin$
37+ - examples$
You can’t perform that action at this time.
0 commit comments