File tree Expand file tree Collapse file tree 3 files changed +35
-20
lines changed Expand file tree Collapse file tree 3 files changed +35
-20
lines changed Original file line number Diff line number Diff line change 45
45
check-latest : true
46
46
47
47
- name : lint
48
- uses : golangci/golangci-lint-action@4696ba8babb6127d732c3c6dde519db15edab9ea # v6.5.1
48
+ uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
49
49
with :
50
- version : v1.64.5
50
+ version : v2.1.6
Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
run :
2
- timeout : 5m
3
3
go : " 1.24"
4
-
5
- linters-settings :
6
- lll :
7
- line-length : 200
8
- misspell :
9
- locale : US
10
-
11
4
linters :
12
- disable-all : true
5
+ default : none
13
6
enable :
7
+ - copyloopvar
14
8
- errcheck
15
9
- errorlint
16
- - copyloopvar
17
10
- forcetypeassert
18
- - gci
19
- - gocritic
20
11
- goconst
12
+ - gocritic
21
13
- godot
22
- - gofmt
23
- - gofumpt
24
- - goimports
25
14
- gosec
26
- - gosimple
27
15
- govet
28
16
- ineffassign
29
17
- misspell
30
18
- revive
31
19
- staticcheck
32
- - typecheck
33
20
- unconvert
34
21
- unused
35
22
- whitespace
23
+ settings :
24
+ lll :
25
+ line-length : 200
26
+ misspell :
27
+ locale : US
28
+ exclusions :
29
+ generated : lax
30
+ presets :
31
+ - comments
32
+ - common-false-positives
33
+ - legacy
34
+ - std-error-handling
35
+ paths :
36
+ - third_party$
37
+ - builtin$
38
+ - examples$
39
+ formatters :
40
+ enable :
41
+ - gci
42
+ - gofmt
43
+ - gofumpt
44
+ - goimports
45
+ exclusions :
46
+ generated : lax
47
+ paths :
48
+ - third_party$
49
+ - builtin$
50
+ - examples$
Original file line number Diff line number Diff line change 4
4
hooks :
5
5
- id : gitleaks
6
6
- repo : https://github.com/golangci/golangci-lint
7
- rev : v1.62.0
7
+ rev : v2.1.6
8
8
hooks :
9
9
- id : golangci-lint
10
10
- repo : https://github.com/jumanjihouse/pre-commit-hooks
You can’t perform that action at this time.
0 commit comments