-
Notifications
You must be signed in to change notification settings - Fork 1
/
revive.toml
40 lines (36 loc) · 893 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
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.banned-characters]
Disabled = true
[rule.package-comments]
Disabled = true
# Rule tuning
[rule.argument-limit]
Arguments = [6]
[rule.cyclomatic]
Arguments = [14]
[rule.cognitive-complexity]
Arguments = [18]
[rule.function-result-limit]
Arguments = [4]
[rule.unhandled-error]
Arguments = ["fmt.Printf", "fmt.Println", "buf.WriteString", "buf.Write", "buf.WriteByte"]
[rule.line-length-limit]
Arguments = [120]
[rule.defer]
Arguments = [["loop", "method-call", "recover", "return"]]