-
Notifications
You must be signed in to change notification settings - Fork 3
/
.revive.toml
65 lines (62 loc) · 1.46 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
ignoreGeneratedHeader = false
severity = "warning"
confidence = 0.8
errorCode = 0
warningCode = 0
[rule.file-header]
arguments = ["MIT license.*"]
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.empty-block]
[rule.error-naming]
[rule.error-return]
[rule.error-strings]
[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]
[rule.argument-limit]
arguments = [5]
[rule.atomic]
[rule.bare-return]
[rule.bool-literal-in-expr]
[rule.call-to-gc]
[rule.confusing-naming]
[rule.confusing-results]
[rule.constant-logical-expr]
[rule.cyclomatic]
arguments = [67] # this is sick :)
[rule.deep-exit]
[rule.duplicated-imports]
[rule.flag-parameter]
[rule.function-result-limit]
arguments = [4]
[rule.import-shadowing]
[rule.line-length-limit]
arguments = [120]
[rule.modifies-parameter]
[rule.modifies-value-receiver]
[rule.range-val-in-closure]
[rule.struct-tag]
[rule.unhandled-error]
[rule.unnecessary-stmt]
[rule.unused-receiver]
[rule.waitgroup-by-value]
# [rule.add-constant]
# arguments = [{maxLitCount = "5",allowStrs ="\"\"",allowInts="0,1,2,3,4,5",allowFloats="0.0,0.,1.0,1.,2.0,2."}]
# [rule.max-public-structs]
# arguments =[5]