-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
115 lines (80 loc) · 1.86 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
require:
- rubocop-performance
- rubocop-rspec
inherit_mode:
merge:
- Exclude
AllCops:
NewCops: enable
TargetRubyVersion: 3.1
Exclude:
- "db/**/*"
- "bin/**/*"
- "tmp/**/*"
- "log/**/*"
- "vendor/**/*"
- "spec/rails_helper.rb"
Layout/FrozenStringLiteralComment:
Enabled: true
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/ArrayAlignment:
EnforcedStyle: with_fixed_indentation
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/SpaceBeforeBrackets:
Enabled: false
Lint/UnusedMethodArgument:
AllowUnusedKeywordArguments: true
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/**/*'
Naming/FileName:
EnforcedStyle: snake_case
Exclude:
- 'lib/sidekiq-poison-pill-remedy.rb'
Naming/VariableNumber:
EnforcedStyle: snake_case
RSpec/MultipleExpectations:
Max: 20
RSpec/NestedGroups:
Max: 10
RSpec/ExampleLength:
Max: 15
Exclude:
- 'spec/sidekiq_poison_pill_remedy_spec.rb'
RSpec/VerifiedDoubles:
Exclude:
- 'spec/**/*.rb'
Metrics/AbcSize:
Max: 15
Exclude:
- 'lib/sidekiq_poison_pill_remedy.rb'
Metrics/MethodLength:
Max: 20
Metrics/BlockLength:
Exclude:
- 'lib/sidekiq_poison_pill_remedy.rb'
Layout/LineLength:
Max: 125
Style/StringLiterals:
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: true
Style/Documentation:
Enabled: false
RSpec/AnyInstance:
Enabled: false