File tree 1 file changed +20
-28
lines changed
1 file changed +20
-28
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
+ exclusions :
7
+ generated : strict
8
+ paths :
9
+ - ^.*\.(pb|y)\.go$
10
+ settings :
11
+ gofumpt :
12
+ extra-rules : true
13
+ goimports :
14
+ local-prefixes :
15
+ - github.com/prometheus/client_golang
2
16
issues :
3
17
max-same-issues : 0
4
-
5
18
linters :
6
19
enable :
7
20
- copyloopvar
@@ -17,7 +30,9 @@ linters:
17
30
- usestdlibvars
18
31
- wastedassign
19
32
exclusions :
20
- generated : lax
33
+ generated : strict
34
+ paths :
35
+ - ^.*\.(pb|y)\.go$
21
36
presets :
22
37
- comments
23
38
- common-false-positives
@@ -30,11 +45,7 @@ linters:
30
45
- structcheck
31
46
- nolintlint
32
47
path : _test.go
33
- paths :
34
- - ^.*\.(pb|y)\.go$
35
- - third_party$
36
- - builtin$
37
- - examples$
48
+ warn-unused : true
38
49
settings :
39
50
depguard :
40
51
rules :
@@ -65,26 +76,7 @@ linters:
65
76
strconcat : true
66
77
revive :
67
78
rules :
68
-
69
79
- name : unused-parameter
70
80
severity : warning
71
81
disabled : true
72
-
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$
82
+ version : " 2"
You can’t perform that action at this time.
0 commit comments