File tree 1 file changed +32
-29
lines changed
1 file changed +32
-29
lines changed Original file line number Diff line number Diff line change 1
- version : " 2"
1
+ formatters :
2
+ enable :
3
+ - gofumpt
4
+ - goimports
5
+
6
+ exclusions :
7
+ generated : strict
8
+
9
+ settings :
10
+ goimports :
11
+ local-prefixes :
12
+ - github.com/prometheus/common
13
+
14
+ issues :
15
+ max-issues-per-linter : 0
16
+
17
+ max-same-issues : 0
18
+
2
19
linters :
3
20
enable :
4
21
- errorlint
5
22
- misspell
6
23
- perfsprint
7
24
- revive
8
25
- testifylint
26
+
27
+ exclusions :
28
+ generated : strict
29
+
30
+ presets :
31
+ - comments
32
+ - common-false-positives
33
+ - legacy
34
+ - std-error-handling
35
+
9
36
settings :
10
37
perfsprint :
11
38
# Optimizes even if it requires an int or uint type cast.
@@ -18,43 +45,19 @@ linters:
18
45
sprintf1 : true
19
46
# Optimizes into strings concatenation.
20
47
strconcat : false
48
+
21
49
revive :
22
50
rules :
23
51
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
24
52
- name : unused-parameter
25
53
severity : warning
26
54
disabled : true
55
+
27
56
testifylint :
28
57
enable-all : true
29
58
disable :
30
59
- go-require
31
60
formatter :
32
61
require-f-funcs : true
33
- exclusions :
34
- generated : lax
35
- presets :
36
- - comments
37
- - common-false-positives
38
- - legacy
39
- - std-error-handling
40
- paths :
41
- - third_party$
42
- - builtin$
43
- - examples$
44
- issues :
45
- max-issues-per-linter : 0
46
- max-same-issues : 0
47
- formatters :
48
- enable :
49
- - gofumpt
50
- - goimports
51
- settings :
52
- goimports :
53
- local-prefixes :
54
- - github.com/prometheus/common
55
- exclusions :
56
- generated : lax
57
- paths :
58
- - third_party$
59
- - builtin$
60
- - examples$
62
+
63
+ version : " 2"
You can’t perform that action at this time.
0 commit comments