File tree Expand file tree Collapse file tree 7 files changed +654
-658
lines changed Expand file tree Collapse file tree 7 files changed +654
-658
lines changed Original file line number Diff line number Diff line change @@ -6,25 +6,29 @@ permissions:
66
77jobs :
88 lint :
9- name : lint
9+ name : Linter
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/setup-go@v3
12+ - name : Checkout code
13+ uses : actions/checkout@v4
14+ - name : Set up Go
15+ uses : actions/setup-go@v5
1316 with :
14- go-version : ' 1.20 '
15- - uses : actions/checkout@v3
17+ go-version : ' 1.25 '
18+ cache : false
1619 - name : golangci-lint
17- uses : golangci/golangci-lint-action@v3
20+ uses : golangci/golangci-lint-action@v8
1821 with :
19- version : v1.51.2
20- args : --timeout=4m
22+ version : v2.4.0
23+ args : --timeout=5m
24+
2125 test :
2226 runs-on : ubuntu-latest
2327 steps :
2428 - name : install Go
2529 uses : actions/setup-go@v2
2630 with :
27- go-version : 1.20 .x
31+ go-version : 1.25 .x
2832 - name : checkout code
2933 uses : actions/checkout@v2
3034 - uses : actions/cache@v2
Original file line number Diff line number Diff line change 1+ version : " 2"
12linters :
23 enable :
4+ - containedctx
5+ - copyloopvar
36 - goconst
47 - gocritic
5- - gofmt
6- - govet
8+ - gosec
9+ - makezero
10+ - mirror
11+ - misspell
12+ - musttag
13+ - noctx
714 - prealloc
15+ - protogetter
16+ - tagalign
817 - unconvert
9- - unused
10- - errcheck
11- - ineffassign
12- - containedctx
13- - tenv
14- - musttag
18+ - usetesting
19+ - zerologlint
20+ settings :
21+ gosec :
22+ excludes :
23+ - G115
24+ exclusions :
25+ generated : lax
26+ presets :
27+ - comments
28+ - common-false-positives
29+ - legacy
30+ - std-error-handling
31+ paths :
32+ - third_party$
33+ - builtin$
34+ - examples$
35+ formatters :
36+ enable :
37+ - gofmt
38+ exclusions :
39+ generated : lax
40+ paths :
41+ - third_party$
42+ - builtin$
43+ - examples$
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ type Data struct {
99
1010// Provider -
1111type Provider struct {
12- ID string `yaml:"id" validate:"required "`
13- Address string `yaml:"addr" validate:"required "`
12+ ID string `validate:"required" yaml:"id "`
13+ Address string `validate:"required" yaml:"addr "`
1414}
1515
1616// prefix
You can’t perform that action at this time.
0 commit comments