-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
59 lines (45 loc) · 1.26 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
53
54
55
56
57
58
59
require:
- rubocop-factory_bot
- rubocop-minitest
- rubocop-performance
- rubocop-rake
- rubocop-sequel
- rubocop-yard
AllCops:
NewCops: enable
DisplayStyleGuide: true
Exclude:
- 'db/schema.rb' # Autogenerated by Sequel
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