-
Notifications
You must be signed in to change notification settings - Fork 1
/
revive.toml
75 lines (65 loc) · 1.62 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
# When set to false, ignores files with "GENERATED" header, similar to golint
ignoreGeneratedHeader = false
# Sets the default severity to "warning"
severity = "warning"
# Sets the default failure confidence. This means that linting errors
# with less than 0.8 confidence will be ignored.
confidence = 0.8
# Sets the error code for failures with severity "error"
errorCode = 1
# Sets the error code for failures with severity "warning"
warningCode = 1
enableAllRules = true
# Configuration of the `cyclomatic` rule. Here we specify that
# the rule should fail if it detects code with higher complexity than 10.
# [rule.cyclomatic]
# arguments = [10]
# Sets the severity of the `package-comments` rule to "error".
# Disabled rules
[rule.package-comments]
Disabled = true
[rule.file-header]
Disabled = true
[rule.max-public-structs]
Disabled = true
[rule.function-length]
Disabled = true
[rule.blank-imports]
Disabled = true
# Temp disabled rules
[rule.add-constant]
Disabled = true
[rule.line-length-limit]
Disabled = true
# Arguments = [80]
[rule.cognitive-complexity]
Disabled = true
# Arguments = [7]
[rule.flag-parameter]
Disabled = true
[rule.unused-parameter]
Disabled = true
[rule.unused-receiver]
Disabled = true
[rule.function-result-limit]
Disabled = true
# Arguments = [4]
[rule.get-return]
Disabled = true
[rule.nested-structs]
Disabled = true
[rule.bare-return]
Disabled = true
[rule.empty-lines]
Disabled = true
[rule.unhandled-error]
Disabled = true
[rule.comment-spacings]
Disabled = true
[rule.redundant-import-alias]
Disabled = true
# Rule tunning
[rule.argument-limit]
Arguments = [8]
[rule.cyclomatic]
Arguments = [80]