Skip to content

Commit 1e74e30

Browse files
committed
Make rubocop happy
1 parent ab541ab commit 1e74e30

File tree

1 file changed

+151
-3
lines changed

1 file changed

+151
-3
lines changed

.rubocop_todo.yml

Lines changed: 151 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2025-03-13 16:42:45 UTC using RuboCop version 1.27.0.
3+
# on 2025-03-13 17:07:56 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
77
# versions of RuboCop, may require this file to be generated again.
88

9+
# Offense count: 1
10+
# This cop supports safe auto-correction (--auto-correct).
11+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
13+
Bundler/OrderedGems:
14+
Exclude:
15+
- 'Gemfile'
16+
17+
# Offense count: 1
18+
# This cop supports safe auto-correction (--auto-correct).
19+
# Configuration parameters: Include.
20+
# Include: **/*.gemspec
21+
Gemspec/RequireMFA:
22+
Exclude:
23+
- 'meilisearch-rails.gemspec'
24+
25+
# Offense count: 1
26+
# This cop supports safe auto-correction (--auto-correct).
27+
# Configuration parameters: EnforcedStyle.
28+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
29+
Layout/EmptyLinesAroundModuleBody:
30+
Exclude:
31+
- 'lib/meilisearch-rails.rb'
32+
933
# Offense count: 1
1034
# This cop supports safe auto-correction (--auto-correct).
1135
# Configuration parameters: EnforcedStyle.
@@ -14,6 +38,90 @@ Layout/MultilineMethodCallBraceLayout:
1438
Exclude:
1539
- 'spec/ms_clean_up_job_spec.rb'
1640

41+
# Offense count: 1
42+
# This cop supports safe auto-correction (--auto-correct).
43+
# Configuration parameters: EnforcedStyle, IndentationWidth.
44+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
45+
Layout/MultilineMethodCallIndentation:
46+
Exclude:
47+
- 'lib/meilisearch/rails/pagination.rb'
48+
49+
# Offense count: 1
50+
# Configuration parameters: AllowComments, AllowNil.
51+
Lint/SuppressedException:
52+
Exclude:
53+
- 'lib/meilisearch-rails.rb'
54+
55+
# Offense count: 1
56+
# This cop supports safe auto-correction (--auto-correct).
57+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
58+
Lint/UnusedBlockArgument:
59+
Exclude:
60+
- 'lib/meilisearch-rails.rb'
61+
62+
# Offense count: 2
63+
# This cop supports safe auto-correction (--auto-correct).
64+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
65+
Lint/UnusedMethodArgument:
66+
Exclude:
67+
- 'lib/meilisearch-rails.rb'
68+
69+
# Offense count: 13
70+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
71+
Metrics/AbcSize:
72+
Max: 103
73+
74+
# Offense count: 1
75+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
76+
# IgnoredMethods: refine
77+
Metrics/BlockLength:
78+
Max: 30
79+
80+
# Offense count: 1
81+
# Configuration parameters: CountComments, CountAsOne.
82+
Metrics/ClassLength:
83+
Max: 171
84+
85+
# Offense count: 9
86+
# Configuration parameters: IgnoredMethods.
87+
Metrics/CyclomaticComplexity:
88+
Max: 27
89+
90+
# Offense count: 20
91+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
92+
Metrics/MethodLength:
93+
Max: 102
94+
95+
# Offense count: 1
96+
# Configuration parameters: CountComments, CountAsOne.
97+
Metrics/ModuleLength:
98+
Max: 437
99+
100+
# Offense count: 8
101+
# Configuration parameters: IgnoredMethods.
102+
Metrics/PerceivedComplexity:
103+
Max: 34
104+
105+
# Offense count: 1
106+
Naming/AccessorMethodName:
107+
Exclude:
108+
- 'lib/meilisearch/rails/utilities.rb'
109+
110+
# Offense count: 1
111+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
112+
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
113+
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
114+
Naming/FileName:
115+
Exclude:
116+
- 'lib/meilisearch-rails.rb'
117+
118+
# Offense count: 1
119+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
120+
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
121+
Naming/MethodParameterName:
122+
Exclude:
123+
- 'lib/meilisearch-rails.rb'
124+
17125
# Offense count: 5
18126
RSpec/BeforeAfterAll:
19127
Exclude:
@@ -76,6 +184,39 @@ Rails/SkipsModelValidations:
76184
Exclude:
77185
- 'spec/multi_search_spec.rb'
78186

187+
# Offense count: 2
188+
# This cop supports safe auto-correction (--auto-correct).
189+
# Configuration parameters: EnforcedStyle.
190+
# SupportedStyles: prefer_alias, prefer_alias_method
191+
Style/Alias:
192+
Exclude:
193+
- 'lib/meilisearch-rails.rb'
194+
195+
# Offense count: 3
196+
# Configuration parameters: MinBodyLength.
197+
Style/GuardClause:
198+
Exclude:
199+
- 'lib/meilisearch-rails.rb'
200+
201+
# Offense count: 7
202+
# This cop supports safe auto-correction (--auto-correct).
203+
Style/IfUnlessModifier:
204+
Exclude:
205+
- 'lib/meilisearch-rails.rb'
206+
207+
# Offense count: 1
208+
# This cop supports unsafe auto-correction (--auto-correct-all).
209+
# Configuration parameters: InverseMethods, InverseBlocks.
210+
Style/InverseMethods:
211+
Exclude:
212+
- 'lib/meilisearch-rails.rb'
213+
214+
# Offense count: 1
215+
# This cop supports safe auto-correction (--auto-correct).
216+
Style/MultilineIfModifier:
217+
Exclude:
218+
- 'lib/meilisearch-rails.rb'
219+
79220
# Offense count: 1
80221
# This cop supports safe auto-correction (--auto-correct).
81222
# Configuration parameters: AllowedMethods.
@@ -84,6 +225,13 @@ Style/NestedParenthesizedCalls:
84225
Exclude:
85226
- 'spec/ms_clean_up_job_spec.rb'
86227

228+
# Offense count: 9
229+
# Configuration parameters: AllowedMethods.
230+
# AllowedMethods: respond_to_missing?
231+
Style/OptionalBooleanParameter:
232+
Exclude:
233+
- 'lib/meilisearch-rails.rb'
234+
87235
# Offense count: 5
88236
# This cop supports safe auto-correction (--auto-correct).
89237
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
@@ -92,9 +240,9 @@ Style/StringLiterals:
92240
Exclude:
93241
- 'spec/ms_clean_up_job_spec.rb'
94242

95-
# Offense count: 7
243+
# Offense count: 16
96244
# This cop supports safe auto-correction (--auto-correct).
97245
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
98246
# URISchemes: http, https
99247
Layout/LineLength:
100-
Max: 146
248+
Max: 159

0 commit comments

Comments
 (0)