forked from rackspace-cookbooks/jenkinsstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
44 lines (34 loc) · 1.01 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
# 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
# Don't complain about Guardfile
AllCops:
Exclude:
- 'Guardfile'