forked from DataDog/chef-datadog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
57 lines (44 loc) · 1.23 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
# inherit_from: .rubocop_todo.yml
# Stylistic choices of this cookbook.
AllCops:
Exclude:
- 'vendor/**/*' # ignore non-local files
- Guardfile
# We enjoy parameters lining up for visual comprehension
Layout/SpaceBeforeFirstArg:
Enabled: false
# We like longer lines
Metrics/LineLength:
Max: 160
# Exclude Rakefile and tests since there are long blocks that aren't worth shortening there
# Also, slightly longer blocks are fine
Metrics/BlockLength:
Max: 30
Exclude:
- 'Rakefile'
- 'spec/**/*.rb'
- 'test/**/*.rb'
# Slightly longer methods are fine
Metrics/MethodLength:
Max: 15
# We're fine with multi-line blocks defined with `{...}` instead of `do...end`
Style/BlockDelimiters:
Enabled: false
# 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
# Only enforce a wordlist for 5 or longer lists.
Style/WordArray:
MinSize: 5