File tree 2 files changed +40
-28
lines changed
2 files changed +40
-28
lines changed Original file line number Diff line number Diff line change 35
35
- uses : actions/setup-go@v5
36
36
with :
37
37
go-version : oldstable
38
- - uses : golangci/golangci-lint-action@v6
38
+ - uses : golangci/golangci-lint-action@v8
39
39
with :
40
- version : latest
40
+ version : v2.1
Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
linters :
2
3
enable :
3
- - errcheck
4
- - gosimple
5
- - govet
6
- - ineffassign
7
- - staticcheck
8
- - unused
9
4
- asasalint
10
5
- asciicheck
11
6
- bidichk
@@ -24,7 +19,6 @@ linters:
24
19
- errorlint
25
20
- exhaustive
26
21
- fatcontext
27
- - gci
28
22
- ginkgolinter
29
23
- gocheckcompilerdirectives
30
24
- gochecknoinits
@@ -33,10 +27,7 @@ linters:
33
27
- gocritic
34
28
- godot
35
29
- godox
36
- - gofmt
37
- - gofumpt
38
30
- goheader
39
- - goimports
40
31
- gomoddirectives
41
32
- gomodguard
42
33
- goprintffuncname
@@ -73,7 +64,6 @@ linters:
73
64
- spancheck
74
65
- tagalign
75
66
- tagliatelle
76
- - tenv
77
67
- testableexamples
78
68
- testifylint
79
69
- testpackage
@@ -85,18 +75,40 @@ linters:
85
75
- whitespace
86
76
- wsl
87
77
- zerologlint
88
-
89
- linters-settings :
90
- varnamelen :
91
- ignore-type-assert-ok : true
92
- ignore-decls :
93
- - i int
94
- - tx *sql.Tx
95
- - ts *ast.TypeSpec
96
- - fn *ast.FuncDecl
97
- - fun *ast.FuncDecl
98
- - fnDecl *ast.FuncDecl
99
- - funDecl *ast.FuncDecl
100
- mnd :
101
- ignored-numbers :
102
- - " 2"
78
+ settings :
79
+ mnd :
80
+ ignored-numbers :
81
+ - " 2"
82
+ varnamelen :
83
+ ignore-type-assert-ok : true
84
+ ignore-decls :
85
+ - i int
86
+ - tx *sql.Tx
87
+ - ts *ast.TypeSpec
88
+ - fn *ast.FuncDecl
89
+ - fun *ast.FuncDecl
90
+ - fnDecl *ast.FuncDecl
91
+ - funDecl *ast.FuncDecl
92
+ exclusions :
93
+ generated : lax
94
+ presets :
95
+ - comments
96
+ - common-false-positives
97
+ - legacy
98
+ - std-error-handling
99
+ paths :
100
+ - third_party$
101
+ - builtin$
102
+ - examples$
103
+ formatters :
104
+ enable :
105
+ - gci
106
+ - gofmt
107
+ - gofumpt
108
+ - goimports
109
+ exclusions :
110
+ generated : lax
111
+ paths :
112
+ - third_party$
113
+ - builtin$
114
+ - examples$
You can’t perform that action at this time.
0 commit comments