-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
70 lines (55 loc) · 1.49 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
# Rubocop, we're buddies and all, but we're going to have to disagree on the following -
# Disable requirement of "encoding" headers on files
Encoding:
Enabled: false
# Increase line length, we're not on VT220s anymore
LineLength:
Max: 180
# Increase allowed lines in a method. Short methods are good, but 10 lines
# is a bit too low.
MethodLength:
Max: 40
# Favor explicit over implicit code: don't complain of "redundant returns"
RedundantReturn:
Enabled: false
# Don't complain about if/unless modifiers. The merit of this is debatable
# and it will likely require building of over-length lines.
IfUnlessModifier:
Enabled: false
# Raise allowed CyclomaticComplexity to 10.
CyclomaticComplexity:
Max: 10
# Disable Single Space before first arg
SingleSpaceBeforeFirstArg:
Enabled: false
# Don't force a word array unless 5 elements
WordArray:
MinSize: 5
# Don't complain about unused block args
UnusedBlockArgument:
Enabled: false
ParameterLists:
Max: 6
# Offense count: 8
Metrics/AbcSize:
Max: 30
# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassAndModuleChildren:
Enabled: false
# Offense count: 5
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# Offense count: 1
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
Style/Next:
Enabled: false
AllCops:
Include:
- '**/metadata.rb'
- '**/*.rb'
Exclude:
- 'libraries/**/*'
- 'spec/**/*'
- 'vendor/**/*'