-
Notifications
You must be signed in to change notification settings - Fork 0
/
revive.toml
40 lines (33 loc) · 949 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
# When set to false, ignores files with "GENERATED" header, similar to golint
ignoreGeneratedHeader = true
# 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 = 0
# Sets the error code for failures with severity "warning"
# warningCode = 0
# Enable all available rules
enableAllRules = true
# Disabled rules
[rule.banned-characters]
Disabled = true
[rule.file-header]
Disabled = true
[rule.max-public-structs]
Disabled = true
# Rule tuning
[rule.argument-limit]
Arguments = [5]
[rule.cyclomatic]
Arguments = [10]
[rule.cognitive-complexity]
Arguments = [7]
[rule.function-result-limit]
Arguments = [3]
[rule.line-length-limit]
Arguments = [100]
[rule.function-length]
Arguments = [10,0]