Skip to content

Commit 1c0202e

Browse files
Deps: update
1 parent cc2ae8e commit 1c0202e

File tree

7 files changed

+654
-658
lines changed

7 files changed

+654
-658
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,29 @@ permissions:
66

77
jobs:
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

.golangci.yml

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,43 @@
1+
version: "2"
12
linters:
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$

data.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ type Data struct {
99

1010
// Provider -
1111
type 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

0 commit comments

Comments
 (0)