forked from QuangTung97/svloc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
revive.toml
44 lines (40 loc) · 976 Bytes
/
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
severity = "error"
confidence = 0.8
# Sets the error code for failures with severity "error"
errorCode = 2
# Sets the error code for failures with severity "warning"
warningCode = 1
# Enable all available rules
enableAllRules = true
# Disabled rules
[rule.file-header]
Disabled = true
[rule.max-public-structs]
Disabled = true
[rule.function-length]
Disabled = true
[rule.add-constant]
Disabled = true
[rule.deep-exit]
Disabled = true
[rule.unused-receiver]
Disabled = true
[rule.banned-characters]
Disabled = true
[rule.package-comments]
Disabled = true
# Rule tuning
[rule.argument-limit]
Arguments = [6]
[rule.cyclomatic]
Arguments = [14]
[rule.cognitive-complexity]
Arguments = [16]
[rule.function-result-limit]
Arguments = [4]
[rule.unhandled-error]
Arguments = ["fmt.Printf", "fmt.Println"]
[rule.line-length-limit]
Arguments = [120]
[rule.defer]
Arguments = [["loop", "method-call", "recover", "return"]]