File tree 1 file changed +34
-26
lines changed 1 file changed +34
-26
lines changed Original file line number Diff line number Diff line change 1
- version : " 2"
1
+ formatters :
2
+ enable :
3
+ - gofmt
4
+ - gofumpt
5
+ - goimports
6
+
7
+ exclusions :
8
+ generated : strict
9
+
10
+ paths :
11
+ - ^.*\.(pb|y)\.go$
12
+
13
+ settings :
14
+ gofumpt :
15
+ extra-rules : true
16
+
17
+ goimports :
18
+ local-prefixes :
19
+ - github.com/prometheus/client_golang
20
+
2
21
issues :
3
22
max-same-issues : 0
4
23
@@ -16,25 +35,29 @@ linters:
16
35
- unconvert
17
36
- usestdlibvars
18
37
- wastedassign
38
+
19
39
exclusions :
20
- generated : lax
40
+ generated : strict
41
+
42
+ paths :
43
+ - ^.*\.(pb|y)\.go$
44
+
21
45
presets :
22
46
- comments
23
47
- common-false-positives
24
48
- legacy
25
49
- std-error-handling
50
+
26
51
rules :
27
52
- linters :
28
53
- errcheck
29
54
- govet
30
55
- structcheck
31
56
- nolintlint
32
57
path : _test.go
33
- paths :
34
- - ^.*\.(pb|y)\.go$
35
- - third_party$
36
- - builtin$
37
- - examples$
58
+
59
+ warn-unused : true
60
+
38
61
settings :
39
62
depguard :
40
63
rules :
@@ -46,12 +69,14 @@ linters:
46
69
desc : Use github.com/go-kit/log instead of github.com/go-kit/kit/log
47
70
- pkg : io/ioutil
48
71
desc : Use corresponding 'os' or 'io' functions instead.
72
+
49
73
errcheck :
50
74
exclude-functions :
51
75
# The following 2 methods always return nil as the error
52
76
- (*github.com/cespare/xxhash/v2.Digest).Write
53
77
- (*github.com/cespare/xxhash/v2.Digest).WriteString
54
78
- (*bufio.Writer).WriteRune
79
+
55
80
perfsprint :
56
81
# Optimizes even if it requires an int or uint type cast.
57
82
int-conversion : true
@@ -63,28 +88,11 @@ linters:
63
88
sprintf1 : true
64
89
# Optimizes into strings concatenation.
65
90
strconcat : true
91
+
66
92
revive :
67
93
rules :
68
-
69
94
- name : unused-parameter
70
95
severity : warning
71
96
disabled : true
72
97
73
- formatters :
74
- enable :
75
- - gofmt
76
- - gofumpt
77
- - goimports
78
- settings :
79
- gofumpt :
80
- extra-rules : true
81
- goimports :
82
- local-prefixes :
83
- - github.com/prometheus/client_golang
84
- exclusions :
85
- generated : lax
86
- paths :
87
- - ^.*\.(pb|y)\.go$
88
- - third_party$
89
- - builtin$
90
- - examples$
98
+ version : " 2"
You can’t perform that action at this time.
0 commit comments