-
Notifications
You must be signed in to change notification settings - Fork 196
/
.rubocop.yml
67 lines (52 loc) · 1.46 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
60
61
62
63
64
65
66
67
inherit_from: .rubocop_todo.yml
inherit_mode:
merge:
- Exclude
require:
- rubocop-minitest
- rubocop-packaging
- rubocop-performance
- rubocop-rake
AllCops:
NewCops: enable
TargetRubyVersion: 3.0
# Put development dependencies in the gemspec so rubygems.org knows about them
Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
Layout/LineContinuationLeadingSpace:
EnforcedStyle: leading
# 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
# Allow minitest-spec blocks to have any length
Metrics/BlockLength:
Exclude:
- 'test/integration/**_test.rb'
# Allow test classes to have any length
Metrics/ClassLength:
Exclude:
- 'test/**/*'
# Allow test methods to have any length
Metrics/MethodLength:
Exclude:
- 'test/**/*'
# Allow else clauses with explicit nil value
Style/EmptyElse:
EnforcedStyle: empty
# 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