-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
61 lines (46 loc) · 1.27 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
# Rubocop, we're buddies and all, but we're going to have to disagree on the following -
# This trailing comma rule goes back and forth every few months
Style/TrailingCommaInLiteral:
Enabled: false
# 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
Metrics/AbcSize:
Max: 50
# 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
SpaceBeforeFirstArg:
Enabled: false
# Don't force a word array unless 5 elements
WordArray:
MinSize: 5
# Don't complain about unused block args
UnusedBlockArgument:
Enabled: false
Metrics/BlockLength:
Max: 75
Style/ClassAndModuleChildren:
Enabled: false
# Offense count: 3
Style/Documentation:
Enabled: false
AllCops:
Include:
- '**/metadata.rb'
- '**/*.rb'