-
Notifications
You must be signed in to change notification settings - Fork 6
/
.rubocop.yml
79 lines (72 loc) · 1.68 KB
/
.rubocop.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Style:
Enabled: false
Layout:
Enabled: false
# The default value of 15 is absurdly low
Metrics/AbcSize:
Max: 75
# The default value of 6 is absurdly low
Metrics/CyclomaticComplexity:
Max: 30
# The default value of 7 is absurdly low
Metrics/PerceivedComplexity:
Max: 35
# The default value of 10 is absurdly low
Metrics/MethodLength:
Max: 200
ExcludedMethods: ["schema"]
# The default value of 25 is absurdly low
Metrics/BlockLength:
Max: 100
# The default value of 100 is absurdly low
Metrics/ClassLength:
Max: 1000
# Default of 3 is reasonable, but we have some 4-deep cases that are also
# reasonable
Metrics/BlockNesting:
Max: 4
# Default of 5 is reasonable, but we have some longer cases that are also
# reasonable
Metrics/ParameterLists:
Enabled: false
# The alternative code doesn't seem to work
Lint/UriEscapeUnescape:
Enabled: false
# Yeah, we do these. Wanna fight?
Layout/LineLength:
Enabled: false
Lint/RedundantStringCoercion:
Enabled: false
Lint/Loop:
Enabled: false
Lint/NonLocalExitFromIterator:
Enabled: false
Lint/NestedMethodDefinition:
Enabled: false
Lint/LiteralAsCondition:
Enabled: false
Lint/EnsureReturn:
Enabled: false
Lint/EmptyEnsure:
Enabled: false
Lint/SuppressedException:
Enabled: false
# Complaining about these will get you mocked
Naming/MethodName:
Enabled: false
Naming/VariableName:
Enabled: false
Naming/MethodParameterName:
Enabled: false
# These genuinely matter
Lint/ShadowingOuterLocalVariable:
Severity: error
Lint/AssignmentInCondition:
Severity: error
Lint/ShadowedArgument:
Severity: error
# This is a generated file that only exists for YARD
AllCops:
Exclude:
- modules/mu/kittens.rb
- modules/mu/mu.yaml.rb