-
Notifications
You must be signed in to change notification settings - Fork 37
/
.rubocop.yml
48 lines (38 loc) · 963 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
45
46
47
48
inherit_from: .rubocop_todo.yml
AllCops:
# Only enforce rules that have an entry in the style guide
StyleGuideCopsOnly: true
Exclude:
- 'cache/**/*'
- 'mediawiki/**/*'
- 'mediawiki-*/**/*'
- 'puppet/modules/activemq/**/*'
- 'puppet/modules/nginx/**/*'
- 'puppet/modules/stdlib/**/*'
- 'puppet/modules/wmflib/**/*'
- 'srv/**/*'
- 'tmp/**/*'
- 'Vagrantfile-extra.rb'
- 'vendor/**/*'
# Please enable this when this offense is fixed
#Metrics/LineLength:
# Max: 100
Metrics/MethodLength:
Enabled: false
Style/Alias:
Enabled: false
# Ignoring for now as many instances of strictly aligned parameters look
# strange
Layout/ParameterAlignment:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/SignalException:
Enabled: false
# Pick one and stay consistent
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/TrivialAccessors:
ExactNameMatch: true
Style/WordArray:
Enabled: false