File tree 1 file changed +52
-44
lines changed
1 file changed +52
-44
lines changed Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
run :
2
- timeout : " 10m"
3
3
go : " 1.24"
4
-
5
- issues :
6
- exclude :
7
- - fmt.Fprintf
8
- - fmt.Fprintln
9
- - fmt.Fprint
10
- - fmt.Printf
11
- - buf.WriteByte
12
- - buf.WriteRune
13
- - Close
14
- exclude-use-default : false
15
- exclude-rules :
16
- - path : " .*_test\\ .go"
17
- linters :
18
- - goconst
19
- - linters :
20
- - errcheck
21
- source : " defer"
22
- max-same-issues : 0
23
-
24
4
linters :
25
- enable : # Alphabetic order
5
+ enable :
26
6
- asciicheck
27
7
- bidichk
28
8
- bodyclose
@@ -32,7 +12,6 @@ linters:
32
12
- decorder
33
13
- dogsled
34
14
- durationcheck
35
- - errcheck
36
15
- errchkjson
37
16
- errname
38
17
- errorlint
@@ -43,17 +22,12 @@ linters:
43
22
- gochecknoinits
44
23
- goconst
45
24
- gocritic
46
- - gofmt
47
- - goimports
48
25
- gomoddirectives
49
- - gosimple
50
- - govet
51
- - ineffassign
52
26
- interfacebloat
53
27
- intrange
54
28
- makezero
55
- - misspell
56
29
- mirror
30
+ - misspell
57
31
- nakedret
58
32
- nilerr
59
33
- noctx
@@ -68,25 +42,59 @@ linters:
68
42
- sloglint
69
43
- sqlclosecheck
70
44
- staticcheck
71
- - stylecheck
72
45
- tagliatelle
73
- - tenv
74
46
- thelper
75
- - typecheck
76
47
- unconvert
77
48
- unparam
78
- - unused
79
49
- usestdlibvars
80
50
- wastedassign
81
51
- whitespace
82
-
83
- linters-settings :
84
- errcheck :
85
- check-type-assertions : true
86
- check-blank : true
87
- disable-default-exclusions : false
88
- tagliatelle :
89
- case :
90
- use-field-name : true
91
- rules :
92
- json : snake
52
+ settings :
53
+ errcheck :
54
+ disable-default-exclusions : false
55
+ check-type-assertions : true
56
+ check-blank : true
57
+ tagliatelle :
58
+ case :
59
+ rules :
60
+ json : snake
61
+ use-field-name : true
62
+ exclusions :
63
+ generated : lax
64
+ rules :
65
+ - linters :
66
+ - goconst
67
+ path : .*_test\.go
68
+ - linters :
69
+ - errcheck
70
+ source : defer
71
+ - path : (.+)\.go$
72
+ text : fmt.Fprintf
73
+ - path : (.+)\.go$
74
+ text : fmt.Fprintln
75
+ - path : (.+)\.go$
76
+ text : fmt.Fprint
77
+ - path : (.+)\.go$
78
+ text : fmt.Printf
79
+ - path : (.+)\.go$
80
+ text : buf.WriteByte
81
+ - path : (.+)\.go$
82
+ text : buf.WriteRune
83
+ - path : (.+)\.go$
84
+ text : Close
85
+ paths :
86
+ - third_party$
87
+ - builtin$
88
+ - examples$
89
+ issues :
90
+ max-same-issues : 0
91
+ formatters :
92
+ enable :
93
+ - gofmt
94
+ - goimports
95
+ exclusions :
96
+ generated : lax
97
+ paths :
98
+ - third_party$
99
+ - builtin$
100
+ - examples$
You can’t perform that action at this time.
0 commit comments