File tree Expand file tree Collapse file tree 2 files changed +50
-31
lines changed Expand file tree Collapse file tree 2 files changed +50
-31
lines changed Original file line number Diff line number Diff line change 21
21
fetch-depth : ' 0'
22
22
23
23
- name : Golangci lint
24
- uses : golangci/golangci-lint-action@051d91933864810ecd5e2ea2cfd98f6a5bca5347
24
+ uses : golangci/golangci-lint-action@v7
25
25
with :
26
- version : v1.62
27
- args : --verbose --timeout=10m
26
+ version : v2.0
28
27
29
28
- name : Markdown lint
30
29
uses : docker://avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee
Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
run :
2
- deadline : 3m
3
3
modules-download-mode : readonly
4
-
5
- linters-settings :
6
- gocyclo :
7
- min-complexity : 100
8
- gci :
9
- sections :
10
- - standard
11
- - default
12
- - prefix(d7y.io/api)
13
- - prefix(d7y.io/dragonfly/v2)
14
-
15
- issues :
16
- new : true
17
- exclude-rules :
18
- - linters :
19
- - staticcheck
20
- text : " SA1019:"
21
-
22
4
linters :
23
- disable-all : true
5
+ default : none
24
6
enable :
25
- - gci
26
- - gofmt
27
- - misspell
28
- - govet
7
+ - errcheck
29
8
- goconst
30
9
- gocyclo
10
+ - govet
11
+ - misspell
31
12
- staticcheck
32
- - errcheck
13
+ settings :
14
+ gocyclo :
15
+ min-complexity : 100
16
+ exclusions :
17
+ generated : lax
18
+ presets :
19
+ - comments
20
+ - common-false-positives
21
+ - legacy
22
+ - std-error-handling
23
+ rules :
24
+ - linters :
25
+ - staticcheck
26
+ text : ' SA1019:'
27
+ paths :
28
+ - third_party$
29
+ - builtin$
30
+ - examples$
31
+ issues :
32
+ new : true
33
+ formatters :
34
+ enable :
35
+ - gci
36
+ - gofmt
37
+ settings :
38
+ gci :
39
+ sections :
40
+ - standard
41
+ - default
42
+ - prefix(d7y.io/api)
43
+ - prefix(d7y.io/dragonfly/v2)
44
+ exclusions :
45
+ generated : lax
46
+ paths :
47
+ - third_party$
48
+ - builtin$
49
+ - examples$
33
50
34
51
output :
35
- format : colored-line-number
36
- print-issued-lines : true
37
- print-linter-name : true
52
+ formats :
53
+ text :
54
+ path : stdout
55
+ print-linter-name : true
56
+ print-issued-lines : true
57
+ colors : true
You can’t perform that action at this time.
0 commit comments