ros-apartment 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop_todo.yml DELETED
@@ -1,439 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2024-05-07 18:57:21 UTC using RuboCop version 1.63.4.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: Severity, Include.
12
- # Include: **/*.gemspec
13
- Gemspec/DeprecatedAttributeAssignment:
14
- Exclude:
15
- - 'ros-apartment.gemspec'
16
-
17
- # Offense count: 20
18
- # Configuration parameters: EnforcedStyle, AllowedGems, Include.
19
- # SupportedStyles: Gemfile, gems.rb, gemspec
20
- # Include: **/*.gemspec, **/Gemfile, **/gems.rb
21
- Gemspec/DevelopmentDependencies:
22
- Exclude:
23
- - 'ros-apartment.gemspec'
24
-
25
- # Offense count: 1
26
- # This cop supports safe autocorrection (--autocorrect).
27
- # Configuration parameters: Severity, Include.
28
- # Include: **/*.gemspec
29
- Gemspec/RequireMFA:
30
- Exclude:
31
- - 'ros-apartment.gemspec'
32
-
33
- # Offense count: 6
34
- # This cop supports safe autocorrection (--autocorrect).
35
- Layout/EmptyLineAfterMagicComment:
36
- Exclude:
37
- - 'spec/dummy/config/initializers/backtrace_silencers.rb'
38
- - 'spec/dummy/config/initializers/inflections.rb'
39
- - 'spec/dummy/config/initializers/mime_types.rb'
40
- - 'spec/dummy_engine/test/dummy/config/initializers/backtrace_silencers.rb'
41
- - 'spec/dummy_engine/test/dummy/config/initializers/inflections.rb'
42
- - 'spec/dummy_engine/test/dummy/config/initializers/mime_types.rb'
43
-
44
- # Offense count: 3
45
- # This cop supports safe autocorrection (--autocorrect).
46
- # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
47
- Layout/LeadingCommentSpace:
48
- Exclude:
49
- - 'ros-apartment.gemspec'
50
-
51
- # Offense count: 2
52
- # This cop supports safe autocorrection (--autocorrect).
53
- # Configuration parameters: EnforcedStyle, IndentationWidth.
54
- # SupportedStyles: aligned, indented
55
- Layout/LineEndStringConcatenationIndentation:
56
- Exclude:
57
- - 'lib/apartment/custom_console.rb'
58
-
59
- # Offense count: 3
60
- # This cop supports safe autocorrection (--autocorrect).
61
- Layout/SpaceBeforeComment:
62
- Exclude:
63
- - 'ros-apartment.gemspec'
64
-
65
- # Offense count: 1
66
- Lint/MixedRegexpCaptureTypes:
67
- Exclude:
68
- - 'lib/apartment/elevators/domain.rb'
69
-
70
- # Offense count: 1
71
- # This cop supports safe autocorrection (--autocorrect).
72
- Lint/RedundantCopDisableDirective:
73
- Exclude:
74
- - 'spec/support/config.rb'
75
-
76
- # Offense count: 2
77
- # This cop supports unsafe autocorrection (--autocorrect-all).
78
- Lint/RedundantDirGlobSort:
79
- Exclude:
80
- - 'spec/spec_helper.rb'
81
-
82
- # Offense count: 2
83
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
84
- Metrics/AbcSize:
85
- Max: 28
86
-
87
- # Offense count: 4
88
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
89
- # AllowedMethods: refine
90
- Metrics/BlockLength:
91
- Max: 83
92
-
93
- # Offense count: 1
94
- # Configuration parameters: CountComments, CountAsOne.
95
- Metrics/ClassLength:
96
- Max: 151
97
-
98
- # Offense count: 6
99
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
100
- Metrics/MethodLength:
101
- Max: 23
102
-
103
- # Offense count: 3
104
- # This cop supports safe autocorrection (--autocorrect).
105
- # Configuration parameters: EnforcedStyle, BlockForwardingName.
106
- # SupportedStyles: anonymous, explicit
107
- Naming/BlockForwarding:
108
- Exclude:
109
- - 'lib/apartment/adapters/abstract_adapter.rb'
110
- - 'lib/apartment/log_subscriber.rb'
111
-
112
- # Offense count: 1
113
- # This cop supports safe autocorrection (--autocorrect).
114
- Performance/RedundantBlockCall:
115
- Exclude:
116
- - 'lib/apartment/tasks/task_helper.rb'
117
-
118
- # Offense count: 1
119
- # This cop supports safe autocorrection (--autocorrect).
120
- Performance/StringIdentifierArgument:
121
- Exclude:
122
- - 'lib/apartment/railtie.rb'
123
-
124
- # Offense count: 3
125
- RSpec/AnyInstance:
126
- Exclude:
127
- - 'spec/unit/migrator_spec.rb'
128
-
129
- # Offense count: 4
130
- # This cop supports unsafe autocorrection (--autocorrect-all).
131
- RSpec/BeEq:
132
- Exclude:
133
- - 'spec/adapters/sqlite3_adapter_spec.rb'
134
- - 'spec/unit/elevators/first_subdomain_spec.rb'
135
-
136
- # Offense count: 2
137
- RSpec/BeforeAfterAll:
138
- Exclude:
139
- - 'spec/adapters/sqlite3_adapter_spec.rb'
140
- - 'spec/tasks/apartment_rake_spec.rb'
141
-
142
- # Offense count: 18
143
- # Configuration parameters: Prefixes, AllowedPatterns.
144
- # Prefixes: when, with, without
145
- RSpec/ContextWording:
146
- Exclude:
147
- - 'spec/adapters/sqlite3_adapter_spec.rb'
148
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
149
- - 'spec/examples/schema_adapter_examples.rb'
150
- - 'spec/support/contexts.rb'
151
- - 'spec/tasks/apartment_rake_spec.rb'
152
- - 'spec/tenant_spec.rb'
153
-
154
- # Offense count: 5
155
- # Configuration parameters: IgnoredMetadata.
156
- RSpec/DescribeClass:
157
- Exclude:
158
- - 'spec/integration/apartment_rake_integration_spec.rb'
159
- - 'spec/integration/connection_handling_spec.rb'
160
- - 'spec/integration/query_caching_spec.rb'
161
- - 'spec/integration/use_within_an_engine_spec.rb'
162
- - 'spec/tasks/apartment_rake_spec.rb'
163
-
164
- # Offense count: 6
165
- # This cop supports unsafe autocorrection (--autocorrect-all).
166
- # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
167
- # SupportedStyles: described_class, explicit
168
- RSpec/DescribedClass:
169
- Exclude:
170
- - 'spec/apartment_spec.rb'
171
- - 'spec/tenant_spec.rb'
172
- - 'spec/unit/elevators/host_hash_spec.rb'
173
- - 'spec/unit/migrator_spec.rb'
174
-
175
- # Offense count: 5
176
- # This cop supports safe autocorrection (--autocorrect).
177
- RSpec/EmptyLineAfterFinalLet:
178
- Exclude:
179
- - 'spec/adapters/sqlite3_adapter_spec.rb'
180
- - 'spec/examples/schema_adapter_examples.rb'
181
-
182
- # Offense count: 14
183
- # Configuration parameters: CountAsOne.
184
- RSpec/ExampleLength:
185
- Max: 12
186
-
187
- # Offense count: 58
188
- # This cop supports safe autocorrection (--autocorrect).
189
- # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
190
- # DisallowedExamples: works
191
- RSpec/ExampleWording:
192
- Exclude:
193
- - 'spec/adapters/sqlite3_adapter_spec.rb'
194
- - 'spec/apartment_spec.rb'
195
- - 'spec/examples/connection_adapter_examples.rb'
196
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
197
- - 'spec/examples/generic_adapter_examples.rb'
198
- - 'spec/examples/schema_adapter_examples.rb'
199
- - 'spec/integration/apartment_rake_integration_spec.rb'
200
- - 'spec/integration/use_within_an_engine_spec.rb'
201
- - 'spec/tasks/apartment_rake_spec.rb'
202
- - 'spec/tenant_spec.rb'
203
-
204
- # Offense count: 12
205
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
206
- # Include: **/*_spec*rb*, **/spec/**/*
207
- RSpec/FilePath:
208
- Exclude:
209
- - 'spec/adapters/mysql2_adapter_spec.rb'
210
- - 'spec/adapters/trilogy_adapter_spec.rb'
211
- - 'spec/adapters/postgresql_adapter_spec.rb'
212
- - 'spec/adapters/sqlite3_adapter_spec.rb'
213
- - 'spec/tenant_spec.rb'
214
- - 'spec/unit/config_spec.rb'
215
- - 'spec/unit/elevators/domain_spec.rb'
216
- - 'spec/unit/elevators/first_subdomain_spec.rb'
217
- - 'spec/unit/elevators/generic_spec.rb'
218
- - 'spec/unit/elevators/host_hash_spec.rb'
219
- - 'spec/unit/elevators/host_spec.rb'
220
- - 'spec/unit/elevators/subdomain_spec.rb'
221
- - 'spec/unit/migrator_spec.rb'
222
-
223
- # Offense count: 1
224
- # This cop supports safe autocorrection (--autocorrect).
225
- # Configuration parameters: EnforcedStyle.
226
- # SupportedStyles: implicit, each, example
227
- RSpec/HookArgument:
228
- Exclude:
229
- - 'spec/support/setup.rb'
230
-
231
- # Offense count: 4
232
- # This cop supports safe autocorrection (--autocorrect).
233
- RSpec/HooksBeforeExamples:
234
- Exclude:
235
- - 'spec/adapters/sqlite3_adapter_spec.rb'
236
- - 'spec/examples/schema_adapter_examples.rb'
237
-
238
- # Offense count: 4
239
- # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
240
- RSpec/IndexedLet:
241
- Exclude:
242
- - 'spec/examples/schema_adapter_examples.rb'
243
- - 'spec/support/contexts.rb'
244
-
245
- # Offense count: 16
246
- # Configuration parameters: AssignmentOnly.
247
- RSpec/InstanceVariable:
248
- Exclude:
249
- - 'spec/examples/generic_adapter_examples.rb'
250
- - 'spec/examples/schema_adapter_examples.rb'
251
- - 'spec/integration/apartment_rake_integration_spec.rb'
252
- - 'spec/integration/use_within_an_engine_spec.rb'
253
- - 'spec/tasks/apartment_rake_spec.rb'
254
-
255
- # Offense count: 2
256
- RSpec/LeakyConstantDeclaration:
257
- Exclude:
258
- - 'spec/examples/generic_adapters_callbacks_examples.rb'
259
- - 'spec/unit/elevators/generic_spec.rb'
260
-
261
- # Offense count: 27
262
- # Configuration parameters: EnforcedStyle.
263
- # SupportedStyles: have_received, receive
264
- RSpec/MessageSpies:
265
- Exclude:
266
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
267
- - 'spec/integration/apartment_rake_integration_spec.rb'
268
- - 'spec/integration/use_within_an_engine_spec.rb'
269
- - 'spec/tasks/apartment_rake_spec.rb'
270
- - 'spec/unit/elevators/domain_spec.rb'
271
- - 'spec/unit/elevators/generic_spec.rb'
272
- - 'spec/unit/elevators/host_hash_spec.rb'
273
- - 'spec/unit/elevators/host_spec.rb'
274
- - 'spec/unit/elevators/subdomain_spec.rb'
275
- - 'spec/unit/migrator_spec.rb'
276
-
277
- # Offense count: 11
278
- # This cop supports safe autocorrection (--autocorrect).
279
- # Configuration parameters: EnforcedStyle.
280
- # SupportedStyles: hash, symbol
281
- RSpec/MetadataStyle:
282
- Exclude:
283
- - 'spec/examples/schema_adapter_examples.rb'
284
- - 'spec/support/contexts.rb'
285
-
286
- # Offense count: 27
287
- RSpec/MultipleExpectations:
288
- Max: 6
289
-
290
- # Offense count: 46
291
- # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
292
- # SupportedStyles: always, named_only
293
- RSpec/NamedSubject:
294
- Exclude:
295
- - 'spec/adapters/mysql2_adapter_spec.rb'
296
- - 'spec/adapters/trilogy_adapter_spec.rb'
297
- - 'spec/adapters/sqlite3_adapter_spec.rb'
298
- - 'spec/support/contexts.rb'
299
- - 'spec/support/requirements.rb'
300
- - 'spec/tenant_spec.rb'
301
-
302
- # Offense count: 22
303
- # Configuration parameters: AllowedGroups.
304
- RSpec/NestedGroups:
305
- Max: 5
306
-
307
- # Offense count: 1
308
- # Configuration parameters: AllowedPatterns.
309
- # AllowedPatterns: ^expect_, ^assert_
310
- RSpec/NoExpectationExample:
311
- Exclude:
312
- - 'spec/tenant_spec.rb'
313
-
314
- # Offense count: 12
315
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
316
- # Include: **/*_spec.rb
317
- RSpec/SpecFilePathFormat:
318
- Exclude:
319
- - 'spec/adapters/mysql2_adapter_spec.rb'
320
- - 'spec/adapters/trilogy_adapter_spec.rb'
321
- - 'spec/adapters/postgresql_adapter_spec.rb'
322
- - 'spec/adapters/sqlite3_adapter_spec.rb'
323
- - 'spec/tenant_spec.rb'
324
- - 'spec/unit/config_spec.rb'
325
- - 'spec/unit/elevators/domain_spec.rb'
326
- - 'spec/unit/elevators/first_subdomain_spec.rb'
327
- - 'spec/unit/elevators/generic_spec.rb'
328
- - 'spec/unit/elevators/host_hash_spec.rb'
329
- - 'spec/unit/elevators/host_spec.rb'
330
- - 'spec/unit/elevators/subdomain_spec.rb'
331
- - 'spec/unit/migrator_spec.rb'
332
-
333
- # Offense count: 2
334
- # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
335
- RSpec/VerifiedDoubles:
336
- Exclude:
337
- - 'spec/integration/apartment_rake_integration_spec.rb'
338
- - 'spec/unit/elevators/first_subdomain_spec.rb'
339
-
340
- # Offense count: 2
341
- # This cop supports safe autocorrection (--autocorrect).
342
- Rails/IndexWith:
343
- Exclude:
344
- - 'lib/apartment.rb'
345
- - 'spec/unit/config_spec.rb'
346
-
347
- # Offense count: 7
348
- # This cop supports unsafe autocorrection (--autocorrect-all).
349
- Rails/Pluck:
350
- Exclude:
351
- - 'spec/adapters/jdbc_mysql_adapter_spec.rb'
352
- - 'spec/adapters/jdbc_postgresql_adapter_spec.rb'
353
- - 'spec/adapters/mysql2_adapter_spec.rb'
354
- - 'spec/adapters/postgresql_adapter_spec.rb'
355
-
356
- # Offense count: 1
357
- # This cop supports unsafe autocorrection (--autocorrect-all).
358
- Security/IoMethods:
359
- Exclude:
360
- - 'spec/support/config.rb'
361
-
362
- # Offense count: 16
363
- # Configuration parameters: AllowedConstants.
364
- Style/Documentation:
365
- Exclude:
366
- - 'lib/apartment/adapters/jdbc_mysql_adapter.rb'
367
- - 'lib/apartment/adapters/postgis_adapter.rb'
368
- - 'lib/apartment/adapters/postgresql_adapter.rb'
369
- - 'lib/apartment/adapters/sqlite3_adapter.rb'
370
- - 'lib/apartment/custom_console.rb'
371
- - 'lib/apartment/deprecation.rb'
372
- - 'lib/apartment/migrator.rb'
373
- - 'lib/apartment/model.rb'
374
- - 'lib/apartment/railtie.rb'
375
- - 'lib/apartment/tasks/enhancements.rb'
376
- - 'lib/apartment/tasks/task_helper.rb'
377
- - 'lib/generators/apartment/install/install_generator.rb'
378
-
379
- # Offense count: 4
380
- # This cop supports safe autocorrection (--autocorrect).
381
- # Configuration parameters: AllowedVars.
382
- Style/FetchEnvVar:
383
- Exclude:
384
- - 'lib/apartment/adapters/postgresql_adapter.rb'
385
-
386
- # Offense count: 3
387
- # This cop supports safe autocorrection (--autocorrect).
388
- # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
389
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
390
- # SupportedShorthandSyntax: always, never, either, consistent
391
- Style/HashSyntax:
392
- Exclude:
393
- - 'lib/apartment/active_record/connection_handling.rb'
394
- - 'spec/integration/connection_handling_spec.rb'
395
-
396
- # Offense count: 1
397
- # This cop supports unsafe autocorrection (--autocorrect-all).
398
- # Configuration parameters: EnforcedStyle, Autocorrect.
399
- # SupportedStyles: module_function, extend_self, forbidden
400
- Style/ModuleFunction:
401
- Exclude:
402
- - 'lib/apartment/migrator.rb'
403
-
404
- # Offense count: 4
405
- # This cop supports safe autocorrection (--autocorrect).
406
- Style/RedundantConstantBase:
407
- Exclude:
408
- - 'spec/apartment_spec.rb'
409
- - 'spec/dummy/config.ru'
410
- - 'spec/dummy_engine/test/dummy/config.ru'
411
- - 'spec/dummy_engine/test/dummy/config/environments/production.rb'
412
-
413
- # Offense count: 1
414
- # This cop supports safe autocorrection (--autocorrect).
415
- Style/RedundantParentheses:
416
- Exclude:
417
- - 'lib/apartment.rb'
418
-
419
- # Offense count: 1
420
- # This cop supports safe autocorrection (--autocorrect).
421
- Style/RedundantRegexpArgument:
422
- Exclude:
423
- - 'lib/apartment/tasks/enhancements.rb'
424
-
425
- # Offense count: 3
426
- # This cop supports unsafe autocorrection (--autocorrect-all).
427
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
428
- # AllowedMethods: present?, blank?, presence, try, try!
429
- Style/SafeNavigation:
430
- Exclude:
431
- - 'lib/apartment/migrator.rb'
432
- - 'lib/tasks/apartment.rake'
433
-
434
- # Offense count: 2
435
- # This cop supports safe autocorrection (--autocorrect).
436
- Style/SuperWithArgsParentheses:
437
- Exclude:
438
- - 'lib/apartment/adapters/sqlite3_adapter.rb'
439
- - 'lib/apartment/elevators/host_hash.rb'
File without changes