-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
Copy pathrevive.toml
60 lines (34 loc) · 1.01 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
# Enabled rules
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.errorf]
[rule.error-return]
[rule.error-strings]
[rule.error-naming]
[rule.exported]
[rule.increment-decrement]
[rule.indent-error-flow]
arguments = ["preserveScope"]
[rule.package-comments]
[rule.range]
[rule.receiver-naming]
[rule.superfluous-else]
arguments = ["preserveScope"]
[rule.time-naming]
[rule.unexported-return]
[rule.unnecessary-stmt]
[rule.unreachable-code]
[rule.unused-parameter]
[rule.use-any]
[rule.useless-break]
[rule.var-declaration]
[rule.var-naming]
# Disabled rules
[rule.empty-block] # Disabled to allow intentional no-op blocks (e.g., channel draining).
Disabled = true
[rule.import-shadowing] # Disabled to allow intentional reuse of variable names that are the same as package imports.
Disabled = true
[rule.redefines-builtin-id] # Disabled to allow intentional reuse of variable names that are the same as built-in functions.
Disabled = true