-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
52 lines (43 loc) · 1.18 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
LineLength:
Max: 80
# Use other complexity metrics instead of num lines
Metrics/MethodLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
# Comments are optional
Documentation:
Enabled: false
# Allow use of empty lines to visually group code into paragraphs
Style/EmptyLinesAroundBlockBody:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: false
Style/EmptyLinesAroundMethodBody:
Enabled: true
Style/EmptyLinesAroundModuleBody:
Enabled: false
# See https://github.com/reevoo/reevoocop/issues/10
Style/ModuleFunction:
Enabled: false
# Always use double quoted strings
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
# Trailing commas make cleaner git diffs and easier sorting
#
Style/TrailingCommaInLiteral:
Enabled: true
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArguments:
Enabled: true
EnforcedStyleForMultiline: comma
# Group gem logically. That doesn't mean alphabetical order.
Bundler/OrderedGems:
Enabled: false
# `self` can increase code clarify, which we value over tersness.
Style/RedundantSelf:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false