forked from Amnesthesia/apartment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
234 lines (208 loc) · 7.07 KB
/
.rubocop_todo.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-06-26 03:25:28 UTC using RuboCop version 0.93.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
Lint/MixedRegexpCaptureTypes:
Exclude:
- 'lib/apartment/elevators/domain.rb'
# Offense count: 3
# Configuration parameters: IgnoredMethods.
Metrics/AbcSize:
Max: 28
# Offense count: 5
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 83
# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 151
# Offense count: 6
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
Metrics/MethodLength:
Max: 24
# Offense count: 3
RSpec/AnyInstance:
Exclude:
- 'spec/unit/migrator_spec.rb'
# Offense count: 2
RSpec/BeforeAfterAll:
Exclude:
- 'spec/spec_helper.rb'
- 'spec/rails_helper.rb'
- 'spec/support/**/*.rb'
- 'spec/adapters/sqlite3_adapter_spec.rb'
- 'spec/tasks/apartment_rake_spec.rb'
# Offense count: 18
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/adapters/sqlite3_adapter_spec.rb'
- 'spec/examples/generic_adapter_custom_configuration_example.rb'
- 'spec/examples/schema_adapter_examples.rb'
- 'spec/support/contexts.rb'
- 'spec/tasks/apartment_rake_spec.rb'
- 'spec/tenant_spec.rb'
# Offense count: 4
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Exclude:
- 'spec/integration/apartment_rake_integration_spec.rb'
- 'spec/integration/connection_handling_spec.rb'
- 'spec/integration/query_caching_spec.rb'
- 'spec/integration/use_within_an_engine_spec.rb'
- 'spec/tasks/apartment_rake_spec.rb'
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: SkipBlocks, EnforcedStyle.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
- 'spec/apartment_spec.rb'
- 'spec/tenant_spec.rb'
- 'spec/unit/elevators/host_hash_spec.rb'
- 'spec/unit/migrator_spec.rb'
# Offense count: 5
# Cop supports --auto-correct.
RSpec/EmptyLineAfterFinalLet:
Exclude:
- 'spec/adapters/sqlite3_adapter_spec.rb'
- 'spec/examples/schema_adapter_examples.rb'
# Offense count: 14
# Configuration parameters: Max.
RSpec/ExampleLength:
Exclude:
- 'spec/examples/generic_adapter_custom_configuration_example.rb'
- 'spec/examples/generic_adapter_examples.rb'
- 'spec/examples/schema_adapter_examples.rb'
- 'spec/integration/query_caching_spec.rb'
- 'spec/tenant_spec.rb'
# Offense count: 60
# Cop supports --auto-correct.
# Configuration parameters: CustomTransform, IgnoredWords.
RSpec/ExampleWording:
Exclude:
- 'spec/adapters/sqlite3_adapter_spec.rb'
- 'spec/apartment_spec.rb'
- 'spec/examples/connection_adapter_examples.rb'
- 'spec/examples/generic_adapter_custom_configuration_example.rb'
- 'spec/examples/generic_adapter_examples.rb'
- 'spec/examples/schema_adapter_examples.rb'
- 'spec/integration/apartment_rake_integration_spec.rb'
- 'spec/integration/use_within_an_engine_spec.rb'
- 'spec/tasks/apartment_rake_spec.rb'
- 'spec/tenant_spec.rb'
# Offense count: 13
# Configuration parameters: CustomTransform, IgnoreMethods, SpecSuffixOnly.
RSpec/FilePath:
Exclude:
- 'spec/adapters/mysql2_adapter_spec.rb'
- 'spec/adapters/postgresql_adapter_spec.rb'
- 'spec/adapters/sqlite3_adapter_spec.rb'
- 'spec/tenant_spec.rb'
- 'spec/unit/config_spec.rb'
- 'spec/unit/elevators/domain_spec.rb'
- 'spec/unit/elevators/first_subdomain_spec.rb'
- 'spec/unit/elevators/generic_spec.rb'
- 'spec/unit/elevators/host_hash_spec.rb'
- 'spec/unit/elevators/host_spec.rb'
- 'spec/unit/elevators/subdomain_spec.rb'
- 'spec/unit/migrator_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, each, example
RSpec/HookArgument:
Exclude:
- 'spec/support/setup.rb'
# Offense count: 4
# Cop supports --auto-correct.
RSpec/HooksBeforeExamples:
Exclude:
- 'spec/adapters/sqlite3_adapter_spec.rb'
- 'spec/examples/schema_adapter_examples.rb'
# Offense count: 18
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/examples/generic_adapter_examples.rb'
- 'spec/examples/schema_adapter_examples.rb'
- 'spec/integration/apartment_rake_integration_spec.rb'
- 'spec/integration/use_within_an_engine_spec.rb'
- 'spec/tasks/apartment_rake_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
RSpec/LeadingSubject:
Exclude:
# Offense count: 2
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/examples/generic_adapters_callbacks_examples.rb'
- 'spec/unit/elevators/generic_spec.rb'
# Offense count: 35
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Exclude:
- 'spec/examples/generic_adapter_custom_configuration_example.rb'
- 'spec/integration/apartment_rake_integration_spec.rb'
- 'spec/integration/use_within_an_engine_spec.rb'
- 'spec/tasks/apartment_rake_spec.rb'
- 'spec/unit/elevators/domain_spec.rb'
- 'spec/unit/elevators/generic_spec.rb'
- 'spec/unit/elevators/host_hash_spec.rb'
- 'spec/unit/elevators/host_spec.rb'
- 'spec/unit/elevators/subdomain_spec.rb'
- 'spec/unit/migrator_spec.rb'
# Offense count: 29
RSpec/MultipleExpectations:
Max: 4
# Offense count: 47
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Exclude:
- 'spec/adapters/mysql2_adapter_spec.rb'
- 'spec/adapters/sqlite3_adapter_spec.rb'
- 'spec/support/contexts.rb'
- 'spec/support/requirements.rb'
- 'spec/tenant_spec.rb'
# Offense count: 24
RSpec/NestedGroups:
Max: 5
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: and_return, block
RSpec/ReturnFromStub:
Exclude:
- 'spec/integration/apartment_rake_integration_spec.rb'
- 'spec/unit/migrator_spec.rb'
# Offense count: 4
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/integration/apartment_rake_integration_spec.rb'
- 'spec/unit/elevators/first_subdomain_spec.rb'
# Offense count: 17
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'lib/apartment/adapters/jdbc_mysql_adapter.rb'
- 'lib/apartment/adapters/postgis_adapter.rb'
- 'lib/apartment/adapters/postgresql_adapter.rb'
- 'lib/apartment/adapters/sqlite3_adapter.rb'
- 'lib/apartment/custom_console.rb'
- 'lib/apartment/deprecation.rb'
- 'lib/apartment/migrator.rb'
- 'lib/apartment/model.rb'
- 'lib/apartment/railtie.rb'
- 'lib/apartment/tasks/enhancements.rb'
- 'lib/apartment/tasks/task_helper.rb'
- 'lib/generators/apartment/install/install_generator.rb'