-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ameba.yml
63 lines (55 loc) · 2.05 KB
/
.ameba.yml
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
# This configuration file was generated by `ameba --gen-config`
# on 2019-10-15 23:45:35 UTC using Ameba version 0.10.1.
# The point is for the user to remove these configuration records
# one by one as the reported problems are removed from the code base.
# Run `ameba --only Metrics/CyclomaticComplexity` for details
Metrics/CyclomaticComplexity:
Description: Disallows methods with a cyclomatic complexity higher than `MaxComplexity`
MaxComplexity: 12
Enabled: true
Severity: Convention
# Run `ameba --only Lint/ShadowingOuterLocalVar` for details
Lint/ShadowingOuterLocalVar:
Description: Disallows the usage of the same name as outer local variables for block
or proc arguments.
Enabled: true
Severity: Warning
# Run `ameba --only Style/ConstantNames` for details
Style/ConstantNames:
Description: Enforces constant names to be in screaming case
Enabled: False
Severity: Convention
# Run `ameba --only Style/UnlessElse` for details
Style/UnlessElse:
Description: Disallows the use of an `else` block with the `unless`
Enabled: true
Severity: Convention
# Run `ameba --only Lint/UnusedArgument` for details
Lint/UnusedArgument:
Description: Disallows unused arguments
IgnoreDefs: true
IgnoreBlocks: false
IgnoreProcs: false
Enabled: true
Severity: Warning
# Run `ameba --only Lint/UselessAssign` for details
Lint/UselessAssign:
Description: Disallows useless variable assignments
Enabled: true
Severity: Warning
Excluded:
- repositories/private_drivers/lib/redis/spec/redis_spec.cr
- repositories/private_drivers/lib/pool/test/pool_test.cr
- repositories/private_drivers/lib/pool/test/connection_pool_test.cr
# Run `ameba --only Lint/UnreachableCode` for details
Lint/UnreachableCode:
Description: Reports unreachable code
Enabled: true
Severity: Warning
Excluded:
- repositories/private_drivers/lib/driver/src/driver/protocol/management.cr
# Run `ameba --only Style/VariableNames` for details
Style/VariableNames:
Description: Enforces variable names to be in underscored case
Enabled: true
Severity: Convention