This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
122 lines (114 loc) · 2.5 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
require:
- rubocop-rspec
inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 2.5
Exclude:
- lib/process_balancer/private/*
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/ExtraSpacing:
AllowForAlignment: true
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
IndentationWidth: 4
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
IndentationWidth: 4
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineLength:
Max: 145
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented_relative_to_receiver
IndentationWidth: 4
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Lint/AmbiguousBlockAssociation:
Exclude:
- spec/**/*
Lint/DuplicateBranch: # (new in 1.3)
Enabled: true
Lint/DuplicateRegexpCharacterClassElement:
Enabled: true
Lint/EmptyClass: # (new in 1.3)
Enabled: true
Lint/EmptyBlock:
Enabled: true
Lint/NoReturnInBeginEndBlocks:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Lint/ToEnumArguments:
Enabled: true
Lint/UnmodifiedReduceAccumulator:
Enabled: true
Metrics:
Enabled: false
Naming/VariableNumber:
EnforcedStyle: snake_case
RSpec/ContextWording:
Prefixes:
- when
- with
- without
- and
RSpec/ExpectChange:
EnforcedStyle: block
RSpec/ImplicitSubject:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/MultipleExpectations:
Max: 2
RSpec/NamedSubject:
Enabled: false
RSpec/NestedGroups:
Enabled: false
RSpec/NotToNot:
EnforcedStyle: to_not
RSpec/StubbedMock:
Enabled: false
Style/ArgumentsForwarding:
Enabled: true
Style/CollectionCompact:
Enabled: true
Style/DocumentDynamicEvalDefinition:
Enabled: true
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/IfUnlessModifier:
Enabled: false
Style/GuardClause:
Enabled: false
Style/NegatedIfElseCondition:
Enabled: true
Style/Semicolon:
AllowAsExpressionSeparator: true
Style/SlicingWithRange:
Enabled: true
Style/SwapValues:
Enabled: true
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/NilLambda: # (new in 1.3)
Enabled: true