-
Notifications
You must be signed in to change notification settings - Fork 9
/
revive.toml
39 lines (32 loc) · 1016 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
# 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.5
# Sets the error code for failures with severity "error"
errorCode = 0
# Sets the error code for failures with severity "warning"
warningCode = 0
# Configuration of the `cyclomatic` rule. Here we specify that
# the rule should fail if it detects code with higher complexity than 15.
[rule.cyclomatic]
arguments = [15]
[rule.context-as-argument]
[rule.error-return]
[rule.package-comments]
[rule.range]
[rule.superfluous-else]
[rule.modifies-parameter]
[rule.indent-error-flow]
[rule.error-strings]
[rule.error-naming]
[rule.unexported-return]
[rule.dot-imports]
[rule.receiver-naming]
[rule.unreachable-code]
[rule.var-naming]
# Those are probably not needed.
# [rule.exported]
# [rule.blank-imports]