-
Notifications
You must be signed in to change notification settings - Fork 417
/
.revive.toml
152 lines (150 loc) · 3.47 KB
/
.revive.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
severity = "warning"
confidence = 0.8
errorCode = 1
warningCode = 1
# Enable all available rules
enableAllRules = true
[rule.add-constant]
Disabled = true
[rule.argument-limit]
Disabled = true
[rule.atomic]
Disabled = false
[rule.bare-return]
Disabled = false
[rule.banned-characters]
Disabled = true
[rule.blank-imports]
Disabled = false
[rule.bool-literal-in-expr]
Disabled = false
[rule.call-to-gc]
Disabled = false
[rule.confusing-naming]
Disabled = true
[rule.comment-spacings]
Disabled = false
[rule.confusing-results]
Disabled = true
[rule.cognitive-complexity]
Disabled = true
[rule.constant-logical-expr]
Disabled = false
[rule.context-as-argument]
Disabled = false
[rule.context-keys-type]
Disabled = false
[rule.cyclomatic]
Disabled = true
[rule.datarace]
Disabled = false
[rule.deep-exit]
Disabled = true
[rule.defer]
Disabled = false
[rule.dot-imports]
Disabled = false
[rule.duplicated-imports]
Disabled = false
[rule.early-return]
Disabled = false
[rule.empty-block]
Disabled = false
[rule.empty-lines]
Disabled = false
[rule.error-naming]
Disabled = false
[rule.error-return]
Disabled = false
[rule.error-strings]
Disabled = false
[rule.errorf]
Disabled = false
[rule.exported]
Disabled = true # TODO: add comments to exported functions
[rule.file-header]
Disabled = true
[rule.flag-parameter]
Disabled = true
[rule.function-result-limit]
Disabled = true
[rule.function-length]
Disabled = true
[rule.get-return]
Disabled = false
[rule.identical-branches]
Disabled = false
[rule.if-return]
Disabled = false
[rule.increment-decrement]
Disabled = false
[rule.indent-error-flow]
Disabled = false
[rule.imports-blacklist]
Disabled = true
[rule.import-shadowing]
Disabled = false
[rule.line-length-limit]
Disabled = true # TODO: set max length to 100 max
[rule.max-public-structs]
Disabled = true
[rule.modifies-parameter]
Disabled = false
[rule.modifies-value-receiver]
Disabled = true
[rule.nested-structs]
Disabled = true
[rule.optimize-operands-order]
Disabled = false
[rule.package-comments]
Disabled = true # TODO: add comments to all packages
[rule.range]
Disabled = false
[rule.range-val-in-closure]
Disabled = false
[rule.range-val-address]
Disabled = false
[rule.receiver-naming]
Disabled = false
[rule.redefines-builtin-id]
Disabled = true
[rule.string-of-int]
Disabled = true
[rule.struct-tag]
Disabled = true # TODO: interesting to check
[rule.string-format]
Disabled = true # TODO: interesting to check
[rule.superfluous-else]
Disabled = false
[rule.time-equal]
Disabled = false
[rule.time-naming]
Disabled = false
[rule.var-naming]
Disabled = true # TODO: rename variables correctly
[rule.var-declaration]
Disabled = false
[rule.unchecked-type-assertion]
Disabled = false
[rule.unconditional-recursion]
Disabled = false
[rule.unexported-naming]
Disabled = false
[rule.unexported-return]
Disabled = true # TODO: consider enabling this
[rule.unhandled-error]
Disabled = true # TODO: already being done by errcheck (change ?)
[rule.unnecessary-stmt]
Disabled = true
[rule.unreachable-code]
Disabled = false
[rule.unused-parameter]
Disabled = true
[rule.unused-receiver]
Disabled = true
[rule.use-any]
Disabled = true # TODO: should we rename interface{} to any ?
[rule.useless-break]
Disabled = false
[rule.waitgroup-by-value]
Disabled = false