File tree 2 files changed +55
-48
lines changed
2 files changed +55
-48
lines changed Original file line number Diff line number Diff line change 21
21
check-latest : true
22
22
cache : true
23
23
- name : golangci-lint
24
- uses : golangci/golangci-lint-action@v6
24
+ uses : golangci/golangci-lint-action@v7
25
25
with :
26
26
version : latest
27
27
only-new-issues : true
Original file line number Diff line number Diff line change 1
- linters-settings :
2
- gocyclo :
3
- min-complexity : 45
4
- dupl :
5
- threshold : 200
6
- goconst :
7
- min-len : 2
8
- min-occurrences : 3
9
-
1
+ version : " 2"
10
2
linters :
11
- enable-all : true
3
+ default : all
12
4
disable :
13
- - unparam
14
- - lll
15
- - gochecknoinits
16
- - gochecknoglobals
5
+ - cyclop
6
+ - depguard
7
+ - errchkjson
8
+ - errorlint
9
+ - exhaustruct
10
+ - forcetypeassert
17
11
- funlen
18
- - godox
12
+ - gochecknoglobals
13
+ - gochecknoinits
19
14
- gocognit
20
- - whitespace
21
- - wsl
22
- - wrapcheck
23
- - testpackage
24
- - nlreturn
25
- - errorlint
26
- - nestif
27
15
- godot
28
- - gofumpt
16
+ - godox
17
+ - gosmopolitan
18
+ - inamedparam
19
+ - ireturn
20
+ - lll
21
+ - musttag
22
+ - nestif
23
+ - nlreturn
24
+ - nonamedreturns
29
25
- paralleltest
30
- - tparallel
26
+ - testpackage
31
27
- thelper
32
- - exhaustruct
28
+ - tparallel
29
+ - unparam
33
30
- varnamelen
34
- - gci
35
- - depguard
36
- - errchkjson
37
- - inamedparam
38
- - nonamedreturns
39
- - musttag
40
- - ireturn
41
- - forcetypeassert
42
- - cyclop
43
- # deprecated linters
44
- # - deadcode
45
- # - interfacer
46
- # - scopelint
47
- # - varcheck
48
- # - structcheck
49
- # - golint
50
- # - nosnakecase
51
- # - maligned
52
- # - goerr113
53
- # - ifshort
54
- # - gomnd
55
- # - exhaustivestruct
31
+ - whitespace
32
+ - wrapcheck
33
+ - wsl
34
+ settings :
35
+ dupl :
36
+ threshold : 200
37
+ goconst :
38
+ min-len : 2
39
+ min-occurrences : 3
40
+ gocyclo :
41
+ min-complexity : 45
42
+ exclusions :
43
+ generated : lax
44
+ presets :
45
+ - comments
46
+ - common-false-positives
47
+ - legacy
48
+ - std-error-handling
49
+ paths :
50
+ - third_party$
51
+ - builtin$
52
+ - examples$
53
+ formatters :
54
+ enable :
55
+ - gofmt
56
+ - goimports
57
+ exclusions :
58
+ generated : lax
59
+ paths :
60
+ - third_party$
61
+ - builtin$
62
+ - examples$
You can’t perform that action at this time.
0 commit comments