-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
44 lines (34 loc) · 919 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
42
43
44
inherit_from: .rubocop_todo.yml
# Copied from
# https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby#Base_configuration
AllCops:
StyleGuideCopsOnly: true
Exclude:
# not a Ruby script
- 'modules/smokeping/files/smokeping.fcgi'
# third party modules
- 'modules/mysql/**/*'
- 'modules/rsync/**/*'
- 'modules/stdlib/**/*'
- 'modules/puppetdbquery/**/*'
- 'modules/lvm/**/*'
# bundler installation files
- 'vendor/**/*'
# Uncomment when lines are 100 characters or less
# Metrics/LineLength:
# Max: 100
Metrics/MethodLength:
Enabled: false
Style/Alias:
Enabled: false
# Let us whatever delimiters we want eg: %{One Two} or %r%/tmp%
Style/PercentLiteralDelimiters:
Enabled: false
Style/SignalException:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/TrivialAccessors:
ExactNameMatch: true
Style/WordArray:
Enabled: false