forked from ActsAsParanoid/acts_as_paranoid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
40 lines (32 loc) · 938 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
inherit_from: .rubocop_todo.yml
# Exclude any vendored gems
AllCops:
Exclude:
- 'vendor/**/*'
# Be lenient with line length
Layout/LineLength:
Max: 92
# Multi-line method calls should be simply indented. Aligning them makes it
# even harder to keep a sane line length.
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
# Multi-line assignment should be simply indented. Aligning them makes it even
# harder to keep a sane line length.
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
# Enable new cops
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
# In guard clauses, if ! is often more immediately clear
Style/NegatedIf:
Enabled: false
# Do not commit to use of interpolation
Style/StringLiterals:
EnforcedStyle: double_quotes
# Prefer symbols to look like symbols
Style/SymbolArray:
EnforcedStyle: brackets