-
Notifications
You must be signed in to change notification settings - Fork 36
/
.rubocop.yml
41 lines (32 loc) · 942 Bytes
/
.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
# inherit_from: .rubocop_todo.yml
# Stylistic choices of this cookbook.
AllCops:
Exclude:
- 'spec/**/*' # ignore spec tests for now
- 'vendor/**/*' # ignore non-local files
- 'test/integration/**/*' # ignore serverspec tests
- Guardfile
# We like longer lines
Metrics/LineLength:
Max: 160
# TODO: add encoding headers
Style/Encoding:
Enabled: false
# Our code has names with dashes.
Style/FileName:
Enabled: false
# We still have HashRockets in a lot of places, ignore them.
Style/HashSyntax:
Enabled: false
# Increase readability of large numbers after 5 digits (ports) only.
Style/NumericLiterals:
MinDigits: 6
# TODO: see if this should be replaced by Chef::Application.fatal!
Style/SignalException:
Enabled: false
# We enjoy parameters lining up for visual comprehension
Style/SingleSpaceBeforeFirstArg:
Enabled: false
# Only enforce a wordlist for 5 or longer lists.
Style/WordArray:
MinSize: 5