forked from elastic/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
40 lines (31 loc) · 832 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
require:
# Pretend that regexps aren't mutable. They *mostly* aren't already and
# we think it is more idiomatic not to freeze them all over the place.
- ./resources/style/pretend_regexp_isnt_mutable.rb
AllCops:
TargetRubyVersion: 2.3
CacheRootDirectory: .rubocop_cache
MaxFilesInCache: 1000
Style/ReturnNil:
Enabled: true
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/WordArray:
Enabled: false
Metrics/AbcSize:
Max: 20
# The blocks in context and describe can be pretty long and that is ok.
Metrics/BlockLength:
ExcludedMethods:
- context
- describe
- file_context
- page_context
- shared_context
- shared_examples
Metrics/ClassLength:
Max: 120
Metrics/MethodLength:
Max: 20