-
Notifications
You must be signed in to change notification settings - Fork 113
/
golint.toml
74 lines (66 loc) · 1.5 KB
/
golint.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
enableAllRules = true
errorCode = 2
#warningCode = 1
#TODO we should eventually comment all public methods
[rule.package-comments]
Disabled = true
#TODO get rid of all (or most) magic numbers
[rule.add-constant]
Disabled = true
#TODO we should handle all errors
[rule.unhandled-error]
Disabled = true
#TODO use uniform casing everywhere
[rule.var-naming]
Disabled = true
# Eventually we want to update all warnings to errors
# For now, we disable them one by one
[rule.comment-spacings]
severity = "error"
[rule.superfluous-else]
severity = "error"
[rule.defer]
Disabled = true
[rule.empty-block]
Disabled = true
[ruile.var-declaration]
Disabled = true
[rule.confusing-results]
Disabled = true
[rule.call-to-gc]
Disabled = true
[rule.import-shadowing]
Disabled = true
[rule.receiver-naming]
Disabled = true
[rule.error-strings]
Disabled = true
[rule.exported]
Disabled = true
[rule.early-return]
Disabled = true
[rule.deep-exit]
Disabled = true
[rule.function-length]
Disabled = true
[rule.file-header]
Disabled = true
[rule.banned-characters]
Disabled = true
[rule.max-public-structs]
Disabled = true
[rule.line-length-limit]
Disabled = true
[rule.cognitive-complexity]
Disabled = true
[rule.increment-decrement]
Disabled = true
[rule.flag-parameter]
Disabled = true
[rule.argument-limit]
Arguments = [7]
# TODO reduce to 10 or so
[rule.cyclomatic]
Arguments = [35]
[rule.function-result-limit]
Arguments = [3]