-
Notifications
You must be signed in to change notification settings - Fork 88
/
.rubocop.yml
64 lines (50 loc) · 1.44 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
58
59
60
61
62
63
64
inherit_from: .rubocop_todo.yml
# Copied from
# https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby#Base_configuration
# and modified
AllCops:
TargetRubyVersion: 2.3
StyleGuideCopsOnly: true
DisplayCopNames: true
Exclude:
# core modules
- 'core_modules/**/*'
# third party modules
- 'vendor_modules/**/*'
# bundler installation files
- 'vendor/**/*'
- '**/Vagrantfile'
- 'modules/profile/files/ci/lintian-junit-report'
- 'modules/opensearch_dashboards/**/*'
# 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
# should be fixed with %i[] in Ruby >= 2.0 (>= jessie)
Style/SymbolArray:
Enabled: false
# we can't depend on ActiveRecord etc., but we can use squiggly heredocs (<<~)
# when we move to Ruby >= 2.3 (>= stretch)
Layout/IndentHeredoc:
Enabled: false
# bad advice
Style/GuardClause:
Enabled: false
# We still have to support ruby 2.1 because of jessie however i suspect many users have there
# editor lint checks set to a higher ruby version hence the warnings
Lint/UnneededDisable:
Enabled: false