-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
52 lines (38 loc) · 1.11 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
require:
- rubocop-performance
AllCops:
NewCops: enable
DisplayStyleGuide: true
Metrics:
Enabled: false
Layout/LineLength:
Enabled: false
# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
# Method definitions after `private` or `protected` isolated calls need one
# extra level of indentation.
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods
Style/FrozenStringLiteralComment:
EnforcedStyle: always
# Use `foo { bar }` not `foo {bar}`.
Layout/SpaceInsideBlockBraces:
EnforcedStyleForEmptyBraces: space
# Check quotes usage according to lint rule below.
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/RedundantReturn:
AllowMultipleReturnValues: true
Style/Semicolon:
AllowAsExpressionSeparator: true
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/RescueStandardError:
EnforcedStyle: implicit
Style/SymbolArray:
MinSize: 1
Style/DocumentationMethod:
Enabled: true
RequireForNonPublicMethods: true