Skip to content

Commit af0c198

Browse files
committed
Make rubocop happy
1 parent d4080ed commit af0c198

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

.rubocop_todo.yml

+10-17
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-08 11:51:39 UTC using RuboCop version 1.27.0.
3+
# on 2025-03-19 14:49:26 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
@@ -30,13 +30,6 @@ Layout/EmptyLinesAroundModuleBody:
3030
Exclude:
3131
- 'lib/meilisearch-rails.rb'
3232

33-
# Offense count: 2
34-
# This cop supports safe auto-correction (--auto-correct).
35-
# Configuration parameters: IndentationWidth.
36-
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
37-
Layout/FirstArrayElementIndentation:
38-
EnforcedStyle: consistent
39-
4033
# Offense count: 1
4134
# This cop supports safe auto-correction (--auto-correct).
4235
# Configuration parameters: EnforcedStyle.
@@ -73,7 +66,7 @@ Lint/UnusedMethodArgument:
7366
Exclude:
7467
- 'lib/meilisearch-rails.rb'
7568

76-
# Offense count: 13
69+
# Offense count: 15
7770
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
7871
Metrics/AbcSize:
7972
Max: 105
@@ -89,12 +82,12 @@ Metrics/BlockLength:
8982
Metrics/ClassLength:
9083
Max: 171
9184

92-
# Offense count: 9
85+
# Offense count: 11
9386
# Configuration parameters: IgnoredMethods.
9487
Metrics/CyclomaticComplexity:
9588
Max: 28
9689

97-
# Offense count: 20
90+
# Offense count: 23
9891
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
9992
Metrics/MethodLength:
10093
Max: 102
@@ -104,7 +97,7 @@ Metrics/MethodLength:
10497
Metrics/ModuleLength:
10598
Max: 437
10699

107-
# Offense count: 8
100+
# Offense count: 9
108101
# Configuration parameters: IgnoredMethods.
109102
Metrics/PerceivedComplexity:
110103
Max: 35
@@ -146,7 +139,7 @@ RSpec/ContextWording:
146139
- 'spec/options_spec.rb'
147140
- 'spec/system/tech_shop_spec.rb'
148141

149-
# Offense count: 57
142+
# Offense count: 72
150143
# Configuration parameters: CountAsOne.
151144
RSpec/ExampleLength:
152145
Max: 16
@@ -174,7 +167,7 @@ RSpec/MultipleDescribes:
174167
Exclude:
175168
- 'spec/search_spec.rb'
176169

177-
# Offense count: 2
170+
# Offense count: 3
178171
RSpec/NestedGroups:
179172
Max: 4
180173

@@ -184,12 +177,12 @@ RSpec/VerifiedDoubles:
184177
Exclude:
185178
- 'spec/configuration_spec.rb'
186179

187-
# Offense count: 1
180+
# Offense count: 3
188181
# Configuration parameters: ForbiddenMethods, AllowedMethods.
189182
# 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
190183
Rails/SkipsModelValidations:
191184
Exclude:
192-
- 'spec/settings_spec.rb'
185+
- 'spec/federated_search_spec.rb'
193186

194187
# Offense count: 2
195188
# This cop supports safe auto-correction (--auto-correct).
@@ -247,7 +240,7 @@ Style/StringLiterals:
247240
Exclude:
248241
- 'spec/ms_clean_up_job_spec.rb'
249242

250-
# Offense count: 15
243+
# Offense count: 20
251244
# This cop supports safe auto-correction (--auto-correct).
252245
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
253246
# URISchemes: http, https

spec/federated_search_spec.rb

-2
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)