Skip to content

Commit 84232fd

Browse files
committed
Make rubocop happy
1 parent 92d0bdf commit 84232fd

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.rubocop_todo.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2025-03-14 19:22:00 UTC using RuboCop version 1.27.0.
3+
# on 2025-03-24 19:18:19 UTC using RuboCop version 1.27.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -66,7 +66,7 @@ Lint/UnusedMethodArgument:
6666
Exclude:
6767
- 'lib/meilisearch-rails.rb'
6868

69-
# Offense count: 13
69+
# Offense count: 15
7070
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
7171
Metrics/AbcSize:
7272
Max: 105
@@ -82,12 +82,12 @@ Metrics/BlockLength:
8282
Metrics/ClassLength:
8383
Max: 171
8484

85-
# Offense count: 9
85+
# Offense count: 11
8686
# Configuration parameters: IgnoredMethods.
8787
Metrics/CyclomaticComplexity:
8888
Max: 28
8989

90-
# Offense count: 20
90+
# Offense count: 23
9191
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
9292
Metrics/MethodLength:
9393
Max: 102
@@ -97,7 +97,7 @@ Metrics/MethodLength:
9797
Metrics/ModuleLength:
9898
Max: 437
9999

100-
# Offense count: 8
100+
# Offense count: 9
101101
# Configuration parameters: IgnoredMethods.
102102
Metrics/PerceivedComplexity:
103103
Max: 35
@@ -139,7 +139,7 @@ RSpec/ContextWording:
139139
- 'spec/options_spec.rb'
140140
- 'spec/system/tech_shop_spec.rb'
141141

142-
# Offense count: 61
142+
# Offense count: 72
143143
# Configuration parameters: CountAsOne.
144144
RSpec/ExampleLength:
145145
Max: 16
@@ -177,11 +177,12 @@ RSpec/VerifiedDoubles:
177177
Exclude:
178178
- 'spec/configuration_spec.rb'
179179

180-
# Offense count: 3
180+
# Offense count: 6
181181
# Configuration parameters: ForbiddenMethods, AllowedMethods.
182182
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
183183
Rails/SkipsModelValidations:
184184
Exclude:
185+
- 'spec/federated_search_spec.rb'
185186
- 'spec/multi_search_spec.rb'
186187

187188
# Offense count: 2
@@ -240,7 +241,7 @@ Style/StringLiterals:
240241
Exclude:
241242
- 'spec/ms_clean_up_job_spec.rb'
242243

243-
# Offense count: 16
244+
# Offense count: 20
244245
# This cop supports safe auto-correction (--auto-correct).
245246
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
246247
# URISchemes: http, https

spec/federated_search_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
[Book, Color, Product].each(&:delete_all)
1010
[Book, Color, Product].each(&:clear_index!)
1111

12-
# rubocop:disable Rails::SkipsModelValidations
1312
Product.insert_all([
1413
{ name: 'palm pixi plus', href: 'ebay', tags: ['terrible'] },
1514
{ name: 'lg vortex', href: 'ebay', tags: ['decent'] },
@@ -26,7 +25,6 @@
2625
{ name: 'Steve Jobs', author: 'Walter Isaacson' },
2726
{ name: 'Moby Dick', author: 'Herman Melville' }
2827
])
29-
# rubocop:enable Rails::SkipsModelValidations
3028

3129
[Book, Color, Product].each(&:reindex!)
3230
AsyncHelper.await_last_task

0 commit comments

Comments
 (0)