forked from martinb3-cookbooks/xmledit-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
66 lines (51 loc) · 1.38 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
# 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
# Offense count: 2
Metrics/AbcSize:
Max: 50
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 112
# Offense count: 1
Metrics/PerceivedComplexity:
Max: 8
# Offense count: 2
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassAndModuleChildren:
Enabled: false
# Offense count: 3
Style/Documentation:
Enabled: false
AllCops:
Include:
- '**/metadata.rb'
- '**/*.rb'