-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
51 lines (40 loc) · 997 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
49
50
51
AllCops:
Include:
- '**/Rakefile'
Exclude:
- 'bin/*'
- 'Gemfile'
NewCops: enable
# Accept single-line methods with no body
SingleLineMethods:
AllowIfMethodIsEmpty: true
# Top-level documentation of classes and modules are needless
Documentation:
Enabled: false
# Allow to chain of block after another block that spans multiple lines
MultilineBlockChain:
Enabled: false
# Allow `->` literal for multi line blocks
Lambda:
Enabled: false
# Both nested and compact are okay
ClassAndModuleChildren:
Enabled: false
# Specifying param names is unnecessary
Style/SingleLineBlockParams:
Enabled: false
# Allow using `{...}` for anytime
Style/BlockDelimiters:
Enabled: false
# Prefer Kernel#sprintf
FormatString:
EnforcedStyle: sprintf
# Maximum method length
MethodLength:
Max: 20
# Tuned to MethodLength
Metrics/AbcSize:
Max: 30
# Prefer double_quotes strings unless your string literal contains escape chars
StringLiterals:
EnforcedStyle: double_quotes