forked from umee-network/umee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.revive.toml
66 lines (61 loc) · 1.48 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
# Sets the default severity to "error"
severity = "error"
# Sets the default failure confidence. This means that linting errors
# with less than 0 confidence will be ignored.
confidence = 0
# https://github.com/mgechev/revive#configuration
# Recommended configuration, minus what's commented out
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.empty-block]
[rule.error-return]
[rule.error-strings]
[rule.error-naming]
[rule.errorf]
#[rule.exported]
[rule.if-return]
[rule.increment-decrement]
[rule.indent-error-flow]
#[rule.package-comments]
[rule.range]
[rule.receiver-naming]
#[rule.redefines-builtin-id]
[rule.superfluous-else]
[rule.time-naming]
[rule.unexported-return]
[rule.unreachable-code]
[rule.unused-parameter]
[rule.var-declaration]
[rule.var-naming]
# Additional rules
[rule.atomic]
[rule.bool-literal-in-expr]
[rule.constant-logical-expr]
[rule.datarace]
[rule.duplicated-imports]
[rule.early-return]
#[rule.empty-lines]
[rule.get-return]
[rule.identical-branches]
[rule.modifies-value-receiver]
#[rule.optimize-operands-order]
[rule.range-val-address]
[rule.range-val-in-closure]
[rule.string-of-int]
[rule.struct-tag]
[rule.time-equal]
[rule.unconditional-recursion]
#[rule.unexported-naming]
#[rule.unhandled-error]
[rule.unnecessary-stmt]
#[rule.unused-receiver]
#[rule.use-any]
#[rule.useless-break]
[rule.waitgroup-by-value]
# Rules that we might want to enable
#[rule.bare-return]
#[rule.deep-exit]
#[rule.defer]
#[rule.import-shadowing]