solargraph-rails 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,857 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2025-06-18 12:12:37 UTC using RuboCop version 1.76.1.
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: 4
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems:
14
+ Exclude:
15
+ - 'Gemfile'
16
+ - 'spec/rails7/Gemfile'
17
+ - 'spec/rails8/Gemfile'
18
+
19
+ # Offense count: 2
20
+ # This cop supports safe autocorrection (--autocorrect).
21
+ # Configuration parameters: Include.
22
+ # Include: **/*.gemspec
23
+ Gemspec/AddRuntimeDependency:
24
+ Exclude:
25
+ - 'solargraph-rails.gemspec'
26
+
27
+ # Offense count: 4
28
+ # Configuration parameters: EnforcedStyle, AllowedGems, Include.
29
+ # SupportedStyles: Gemfile, gems.rb, gemspec
30
+ # Include: **/*.gemspec, **/Gemfile, **/gems.rb
31
+ Gemspec/DevelopmentDependencies:
32
+ Exclude:
33
+ - 'solargraph-rails.gemspec'
34
+
35
+ # Offense count: 2
36
+ # This cop supports safe autocorrection (--autocorrect).
37
+ # Configuration parameters: Severity, Include.
38
+ # Include: **/*.gemspec
39
+ Gemspec/RequireMFA:
40
+ Exclude:
41
+ - 'ci/auto_yard/auto_yard.gemspec'
42
+ - 'solargraph-rails.gemspec'
43
+
44
+ # Offense count: 2
45
+ # Configuration parameters: Severity, Include.
46
+ # Include: **/*.gemspec
47
+ Gemspec/RequiredRubyVersion:
48
+ Exclude:
49
+ - 'ci/auto_yard/auto_yard.gemspec'
50
+ - 'solargraph-rails.gemspec'
51
+
52
+ # Offense count: 2
53
+ # This cop supports safe autocorrection (--autocorrect).
54
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
55
+ # SupportedStyles: with_first_argument, with_fixed_indentation
56
+ Layout/ArgumentAlignment:
57
+ Exclude:
58
+ - 'spec/solargraph-rails/model_spec.rb'
59
+
60
+ # Offense count: 1
61
+ # This cop supports safe autocorrection (--autocorrect).
62
+ # Configuration parameters: EnforcedStyleAlignWith.
63
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
64
+ Layout/BlockAlignment:
65
+ Exclude:
66
+ - 'spec/solargraph-rails/annotate_spec.rb'
67
+
68
+ # Offense count: 4
69
+ # This cop supports safe autocorrection (--autocorrect).
70
+ Layout/ClosingHeredocIndentation:
71
+ Exclude:
72
+ - 'spec/helpers.rb'
73
+ - 'spec/solargraph-rails/rails_spec.rb'
74
+
75
+ # Offense count: 2
76
+ # This cop supports safe autocorrection (--autocorrect).
77
+ # Configuration parameters: AllowForAlignment.
78
+ Layout/CommentIndentation:
79
+ Exclude:
80
+ - 'Gemfile'
81
+
82
+ # Offense count: 1
83
+ # This cop supports safe autocorrection (--autocorrect).
84
+ Layout/ElseAlignment:
85
+ Exclude:
86
+ - 'lib/solargraph/rails/delegate.rb'
87
+
88
+ # Offense count: 12
89
+ # This cop supports safe autocorrection (--autocorrect).
90
+ Layout/EmptyLineAfterGuardClause:
91
+ Exclude:
92
+ - 'lib/solargraph/rails/autoload.rb'
93
+ - 'lib/solargraph/rails/model.rb'
94
+ - 'lib/solargraph/rails/rails_api.rb'
95
+ - 'lib/solargraph/rails/schema.rb'
96
+ - 'spec/helpers.rb'
97
+ - 'spec/rails8/bin/bundle'
98
+
99
+ # Offense count: 1
100
+ # This cop supports safe autocorrection (--autocorrect).
101
+ # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
102
+ Layout/EmptyLineBetweenDefs:
103
+ Exclude:
104
+ - 'lib/solargraph/rails/model.rb'
105
+
106
+ # Offense count: 4
107
+ # This cop supports safe autocorrection (--autocorrect).
108
+ Layout/EmptyLines:
109
+ Exclude:
110
+ - 'lib/solargraph/rails/model.rb'
111
+ - 'solargraph-rails.gemspec'
112
+ - 'spec/helpers.rb'
113
+ - 'spec/solargraph-rails/rails_spec.rb'
114
+
115
+ # Offense count: 3
116
+ # This cop supports safe autocorrection (--autocorrect).
117
+ # Configuration parameters: AllowAliasSyntax, AllowedMethods.
118
+ # AllowedMethods: alias_method, public, protected, private
119
+ Layout/EmptyLinesAroundAttributeAccessor:
120
+ Exclude:
121
+ - 'lib/solargraph/rails/walker.rb'
122
+ - 'spec/helpers.rb'
123
+
124
+ # Offense count: 1
125
+ # This cop supports safe autocorrection (--autocorrect).
126
+ # Configuration parameters: EnforcedStyle.
127
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
128
+ Layout/EmptyLinesAroundClassBody:
129
+ Exclude:
130
+ - 'lib/solargraph/rails/annotations/active_record.rb'
131
+
132
+ # Offense count: 1
133
+ # This cop supports safe autocorrection (--autocorrect).
134
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
135
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
136
+ Layout/EndAlignment:
137
+ Exclude:
138
+ - 'lib/solargraph/rails/delegate.rb'
139
+
140
+ # Offense count: 2
141
+ # This cop supports safe autocorrection (--autocorrect).
142
+ # Configuration parameters: IndentationWidth.
143
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
144
+ Layout/FirstHashElementIndentation:
145
+ EnforcedStyle: consistent
146
+
147
+ # Offense count: 5
148
+ # This cop supports safe autocorrection (--autocorrect).
149
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
150
+ # SupportedHashRocketStyles: key, separator, table
151
+ # SupportedColonStyles: key, separator, table
152
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
153
+ Layout/HashAlignment:
154
+ Exclude:
155
+ - 'lib/solargraph/rails/schema.rb'
156
+
157
+ # Offense count: 8
158
+ # This cop supports safe autocorrection (--autocorrect).
159
+ Layout/HeredocIndentation:
160
+ Exclude:
161
+ - 'spec/helpers.rb'
162
+ - 'spec/solargraph-rails/annotate_spec.rb'
163
+ - 'spec/solargraph-rails/model_spec.rb'
164
+ - 'spec/solargraph-rails/rails_spec.rb'
165
+
166
+ # Offense count: 3
167
+ # This cop supports safe autocorrection (--autocorrect).
168
+ # Configuration parameters: Width, AllowedPatterns.
169
+ Layout/IndentationWidth:
170
+ Exclude:
171
+ - 'lib/solargraph/rails/delegate.rb'
172
+ - 'lib/solargraph/rails/util.rb'
173
+ - 'spec/solargraph-rails/annotate_spec.rb'
174
+
175
+ # Offense count: 5
176
+ # This cop supports safe autocorrection (--autocorrect).
177
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
178
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
179
+ Layout/MultilineMethodCallIndentation:
180
+ Exclude:
181
+ - 'lib/solargraph/rails/autoload.rb'
182
+ - 'lib/solargraph/rails/devise.rb'
183
+
184
+ # Offense count: 1
185
+ # This cop supports safe autocorrection (--autocorrect).
186
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
187
+ # SupportedStyles: aligned, indented
188
+ Layout/MultilineOperationIndentation:
189
+ Exclude:
190
+ - 'lib/solargraph/rails/model.rb'
191
+
192
+ # Offense count: 6
193
+ # This cop supports safe autocorrection (--autocorrect).
194
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
195
+ # SupportedStyles: space, no_space, compact
196
+ # SupportedStylesForEmptyBrackets: space, no_space
197
+ Layout/SpaceInsideArrayLiteralBrackets:
198
+ Exclude:
199
+ - 'spec/rails8/config/environments/production.rb'
200
+ - 'spec/rails8/test/application_system_test_case.rb'
201
+
202
+ # Offense count: 7
203
+ # This cop supports safe autocorrection (--autocorrect).
204
+ Layout/SpaceInsideArrayPercentLiteral:
205
+ Exclude:
206
+ - 'lib/solargraph/rails/model.rb'
207
+
208
+ # Offense count: 22
209
+ # This cop supports safe autocorrection (--autocorrect).
210
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
211
+ # SupportedStyles: space, no_space, compact
212
+ # SupportedStylesForEmptyBraces: space, no_space
213
+ Layout/SpaceInsideHashLiteralBraces:
214
+ Exclude:
215
+ - 'lib/solargraph/rails/model.rb'
216
+
217
+ # Offense count: 4
218
+ # This cop supports safe autocorrection (--autocorrect).
219
+ Layout/SpaceInsidePercentLiteralDelimiters:
220
+ Exclude:
221
+ - 'spec/rails8/Gemfile'
222
+
223
+ # Offense count: 1
224
+ # This cop supports safe autocorrection (--autocorrect).
225
+ # Configuration parameters: EnforcedStyle.
226
+ # SupportedStyles: final_newline, final_blank_line
227
+ Layout/TrailingEmptyLines:
228
+ Exclude:
229
+ - '.pryrc'
230
+
231
+ # Offense count: 2
232
+ # This cop supports unsafe autocorrection (--autocorrect-all).
233
+ Lint/BooleanSymbol:
234
+ Exclude:
235
+ - 'lib/solargraph/rails/delegate.rb'
236
+ - 'lib/solargraph/rails/model.rb'
237
+
238
+ # Offense count: 1
239
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
240
+ Lint/DuplicateBranch:
241
+ Exclude:
242
+ - 'spec/helpers.rb'
243
+
244
+ # Offense count: 1
245
+ Lint/DuplicateMethods:
246
+ Exclude:
247
+ - 'lib/solargraph/rails/annotations/date.rb'
248
+
249
+ # Offense count: 1
250
+ # This cop supports unsafe autocorrection (--autocorrect-all).
251
+ Lint/DuplicateRequire:
252
+ Exclude:
253
+ - 'spec/spec_helper.rb'
254
+
255
+ # Offense count: 1
256
+ Lint/NestedPercentLiteral:
257
+ Exclude:
258
+ - 'lib/solargraph/rails/schema.rb'
259
+
260
+ # Offense count: 5
261
+ # This cop supports safe autocorrection (--autocorrect).
262
+ Lint/RedundantStringCoercion:
263
+ Exclude:
264
+ - 'script/generate_definitions.rb'
265
+
266
+ # Offense count: 1
267
+ Lint/SelfAssignment:
268
+ Exclude:
269
+ - 'script/generate_definitions.rb'
270
+
271
+ # Offense count: 1
272
+ Lint/SharedMutableDefault:
273
+ Exclude:
274
+ - 'lib/solargraph/rails/walker.rb'
275
+
276
+ # Offense count: 2
277
+ # This cop supports safe autocorrection (--autocorrect).
278
+ # Configuration parameters: AutoCorrect, IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
279
+ Lint/UnusedBlockArgument:
280
+ Exclude:
281
+ - 'lib/solargraph/rails/model.rb'
282
+ - 'lib/solargraph/rails/util.rb'
283
+
284
+ # Offense count: 3
285
+ # This cop supports safe autocorrection (--autocorrect).
286
+ # Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
287
+ # NotImplementedExceptions: NotImplementedError
288
+ Lint/UnusedMethodArgument:
289
+ Exclude:
290
+ - 'lib/solargraph-rails.rb'
291
+ - 'spec/helpers.rb'
292
+
293
+ # Offense count: 4
294
+ # This cop supports safe autocorrection (--autocorrect).
295
+ # Configuration parameters: AutoCorrect.
296
+ Lint/UselessAssignment:
297
+ Exclude:
298
+ - 'lib/solargraph/rails/delegate.rb'
299
+ - 'script/generate_definitions.rb'
300
+ - 'spec/helpers.rb'
301
+ - 'spec/spec_helper.rb'
302
+
303
+ # Offense count: 17
304
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
305
+ Metrics/AbcSize:
306
+ Max: 124
307
+
308
+ # Offense count: 2
309
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
310
+ # AllowedMethods: refine
311
+ Metrics/BlockLength:
312
+ Max: 32
313
+
314
+ # Offense count: 1
315
+ # Configuration parameters: CountBlocks, CountModifierForms.
316
+ Metrics/BlockNesting:
317
+ Max: 4
318
+
319
+ # Offense count: 2
320
+ # Configuration parameters: CountComments, CountAsOne.
321
+ Metrics/ClassLength:
322
+ Max: 252
323
+
324
+ # Offense count: 9
325
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
326
+ Metrics/CyclomaticComplexity:
327
+ Max: 46
328
+
329
+ # Offense count: 20
330
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
331
+ Metrics/MethodLength:
332
+ Max: 116
333
+
334
+ # Offense count: 1
335
+ # Configuration parameters: CountComments, CountAsOne.
336
+ Metrics/ModuleLength:
337
+ Max: 231
338
+
339
+ # Offense count: 1
340
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
341
+ Metrics/ParameterLists:
342
+ Max: 9
343
+
344
+ # Offense count: 8
345
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
346
+ Metrics/PerceivedComplexity:
347
+ Max: 52
348
+
349
+ # Offense count: 6
350
+ # This cop supports safe autocorrection (--autocorrect).
351
+ # Configuration parameters: EnforcedStyle, BlockForwardingName.
352
+ # SupportedStyles: anonymous, explicit
353
+ Naming/BlockForwarding:
354
+ Exclude:
355
+ - 'lib/solargraph-rails.rb'
356
+ - 'lib/solargraph/rails/walker.rb'
357
+ - 'spec/helpers.rb'
358
+
359
+ # Offense count: 1
360
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
361
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
362
+ # 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
363
+ Naming/FileName:
364
+ Exclude:
365
+ - 'Rakefile.rb'
366
+ - 'lib/solargraph-rails.rb'
367
+
368
+ # Offense count: 5
369
+ # Configuration parameters: ForbiddenDelimiters.
370
+ # ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
371
+ Naming/HeredocDelimiterNaming:
372
+ Exclude:
373
+ - 'spec/solargraph-rails/rails_spec.rb'
374
+ - 'spec/solargraph-rails/storage_spec.rb'
375
+
376
+ # Offense count: 1
377
+ # This cop supports unsafe autocorrection (--autocorrect-all).
378
+ # Configuration parameters: EnforcedStyleForLeadingUnderscores.
379
+ # SupportedStylesForLeadingUnderscores: disallowed, required, optional
380
+ Naming/MemoizedInstanceVariableName:
381
+ Exclude:
382
+ - 'lib/solargraph/rails/schema.rb'
383
+
384
+ # Offense count: 23
385
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
386
+ # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
387
+ Naming/MethodParameterName:
388
+ Exclude:
389
+ - 'lib/solargraph/rails/annotate.rb'
390
+ - 'lib/solargraph/rails/annotations/module.rb'
391
+ - 'lib/solargraph/rails/annotations/object.rb'
392
+ - 'lib/solargraph/rails/autoload.rb'
393
+ - 'lib/solargraph/rails/delegate.rb'
394
+ - 'lib/solargraph/rails/devise.rb'
395
+ - 'lib/solargraph/rails/model.rb'
396
+ - 'lib/solargraph/rails/rails_api.rb'
397
+ - 'lib/solargraph/rails/schema.rb'
398
+ - 'lib/solargraph/rails/storage.rb'
399
+ - 'lib/solargraph/rails/util.rb'
400
+ - 'spec/helpers.rb'
401
+
402
+ # Offense count: 2
403
+ # This cop supports safe autocorrection (--autocorrect).
404
+ # Configuration parameters: PreferredName.
405
+ Naming/RescuedExceptionsVariableName:
406
+ Exclude:
407
+ - 'lib/solargraph-rails.rb'
408
+
409
+ # Offense count: 2
410
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
411
+ # SupportedStyles: snake_case, normalcase, non_integer
412
+ # AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
413
+ Naming/VariableNumber:
414
+ Exclude:
415
+ - 'lib/solargraph/rails/annotations/active_record.rb'
416
+
417
+ # Offense count: 3
418
+ # Configuration parameters: MinSize.
419
+ Performance/CollectionLiteralInLoop:
420
+ Exclude:
421
+ - 'lib/solargraph/rails/schema.rb'
422
+
423
+ # Offense count: 2
424
+ # This cop supports safe autocorrection (--autocorrect).
425
+ Performance/ConstantRegexp:
426
+ Exclude:
427
+ - 'spec/rails8/bin/bundle'
428
+
429
+ # Offense count: 1
430
+ # This cop supports safe autocorrection (--autocorrect).
431
+ # Configuration parameters: IncludeActiveSupportAliases.
432
+ Performance/DoubleStartEndWith:
433
+ Exclude:
434
+ - 'spec/helpers.rb'
435
+
436
+ # Offense count: 1
437
+ # Configuration parameters: Prefixes, AllowedPatterns.
438
+ # Prefixes: when, with, without
439
+ RSpec/ContextWording:
440
+ Exclude:
441
+ - 'spec/solargraph-rails/rails_spec.rb'
442
+
443
+ # Offense count: 1
444
+ # Configuration parameters: IgnoredMetadata.
445
+ RSpec/DescribeClass:
446
+ Exclude:
447
+ - '**/spec/features/**/*'
448
+ - '**/spec/requests/**/*'
449
+ - '**/spec/routing/**/*'
450
+ - '**/spec/system/**/*'
451
+ - '**/spec/views/**/*'
452
+ - 'spec/solargraph-rails/rails_spec.rb'
453
+
454
+ # Offense count: 1
455
+ # This cop supports unsafe autocorrection (--autocorrect-all).
456
+ # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
457
+ # SupportedStyles: described_class, explicit
458
+ RSpec/DescribedClass:
459
+ Exclude:
460
+ - 'spec/solargraph-rails/annotate_spec.rb'
461
+
462
+ # Offense count: 26
463
+ # Configuration parameters: CountAsOne.
464
+ RSpec/ExampleLength:
465
+ Max: 32
466
+
467
+ # Offense count: 1
468
+ # This cop supports safe autocorrection (--autocorrect).
469
+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
470
+ # DisallowedExamples: works
471
+ RSpec/ExampleWording:
472
+ Exclude:
473
+ - 'spec/solargraph-rails/rails_spec.rb'
474
+
475
+ # Offense count: 1
476
+ # This cop supports safe autocorrection (--autocorrect).
477
+ # Configuration parameters: EnforcedStyle.
478
+ # SupportedStyles: implicit, each, example
479
+ RSpec/HookArgument:
480
+ Exclude:
481
+ - 'spec/solargraph-rails/schema_spec.rb'
482
+
483
+ # Offense count: 8
484
+ RSpec/MultipleExpectations:
485
+ Max: 5
486
+
487
+ # Offense count: 2
488
+ # This cop supports safe autocorrection (--autocorrect).
489
+ # Configuration parameters: EnforcedStyle.
490
+ # SupportedStyles: not_to, to_not
491
+ RSpec/NotToNot:
492
+ Exclude:
493
+ - 'spec/helpers.rb'
494
+
495
+ # Offense count: 2
496
+ RSpec/PendingWithoutReason:
497
+ Exclude:
498
+ - 'spec/solargraph-rails/rails_spec.rb'
499
+
500
+ # Offense count: 7
501
+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
502
+ # Include: **/*_spec.rb
503
+ RSpec/SpecFilePathFormat:
504
+ Exclude:
505
+ - '**/spec/routing/**/*'
506
+ - 'spec/solargraph-rails/annotate_spec.rb'
507
+ - 'spec/solargraph-rails/autoload_spec.rb'
508
+ - 'spec/solargraph-rails/delegate_spec.rb'
509
+ - 'spec/solargraph-rails/devise_spec.rb'
510
+ - 'spec/solargraph-rails/model_spec.rb'
511
+ - 'spec/solargraph-rails/schema_spec.rb'
512
+ - 'spec/solargraph-rails/storage_spec.rb'
513
+
514
+ # Offense count: 10
515
+ # This cop supports safe autocorrection (--autocorrect).
516
+ # Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
517
+ # RedundantRestArgumentNames: args, arguments
518
+ # RedundantKeywordRestArgumentNames: kwargs, options, opts
519
+ # RedundantBlockArgumentNames: blk, block, proc
520
+ Style/ArgumentsForwarding:
521
+ Exclude:
522
+ - 'lib/solargraph/rails/walker.rb'
523
+ - 'spec/helpers.rb'
524
+ - 'spec/rails8/bin/setup'
525
+
526
+ # Offense count: 11
527
+ # This cop supports unsafe autocorrection (--autocorrect-all).
528
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
529
+ # SupportedStyles: nested, compact
530
+ # SupportedStylesForClasses: ~, nested, compact
531
+ # SupportedStylesForModules: ~, nested, compact
532
+ Style/ClassAndModuleChildren:
533
+ Exclude:
534
+ - 'lib/solargraph/rails/annotations/action_controller.rb'
535
+ - 'lib/solargraph/rails/annotations/action_mailer.rb'
536
+ - 'lib/solargraph/rails/annotations/active_record.rb'
537
+ - 'lib/solargraph/rails/annotations/rails.rb'
538
+
539
+ # Offense count: 1
540
+ # This cop supports safe autocorrection (--autocorrect).
541
+ # Configuration parameters: Keywords, RequireColon.
542
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
543
+ Style/CommentAnnotation:
544
+ Exclude:
545
+ - 'lib/solargraph/rails/annotations/active_record.rb'
546
+
547
+ # Offense count: 1
548
+ # This cop supports safe autocorrection (--autocorrect).
549
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
550
+ # SupportedStyles: assign_to_condition, assign_inside_condition
551
+ Style/ConditionalAssignment:
552
+ Exclude:
553
+ - 'spec/helpers.rb'
554
+
555
+ # Offense count: 32
556
+ # Configuration parameters: AllowedConstants.
557
+ Style/Documentation:
558
+ Enabled: false
559
+
560
+ # Offense count: 1
561
+ # This cop supports safe autocorrection (--autocorrect).
562
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
563
+ # SupportedStyles: compact, expanded
564
+ Style/EmptyMethod:
565
+ Exclude:
566
+ - 'lib/solargraph/rails/annotations/active_record.rb'
567
+
568
+ # Offense count: 1
569
+ # This cop supports safe autocorrection (--autocorrect).
570
+ Style/ExpandPathArguments:
571
+ Exclude:
572
+ - 'solargraph-rails.gemspec'
573
+
574
+ # Offense count: 10
575
+ # This cop supports safe autocorrection (--autocorrect).
576
+ # Configuration parameters: AllowedVars.
577
+ Style/FetchEnvVar:
578
+ Exclude:
579
+ - 'Gemfile'
580
+ - 'solargraph-rails.gemspec'
581
+ - 'spec/rails8/bin/bundle'
582
+
583
+ # Offense count: 81
584
+ # This cop supports unsafe autocorrection (--autocorrect-all).
585
+ # Configuration parameters: EnforcedStyle.
586
+ # SupportedStyles: always, always_true, never
587
+ Style/FrozenStringLiteralComment:
588
+ Enabled: false
589
+
590
+ # Offense count: 8
591
+ # This cop supports unsafe autocorrection (--autocorrect-all).
592
+ Style/GlobalStdStream:
593
+ Exclude:
594
+ - 'Gemfile'
595
+ - 'ci/auto_yard/plugins.rb'
596
+ - 'spec/helpers.rb'
597
+ - 'spec/rails8/bin/setup'
598
+ - 'spec/rails8/config/environments/production.rb'
599
+
600
+ # Offense count: 2
601
+ # This cop supports safe autocorrection (--autocorrect).
602
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
603
+ Style/GuardClause:
604
+ Exclude:
605
+ - 'spec/helpers.rb'
606
+
607
+ # Offense count: 1
608
+ # This cop supports unsafe autocorrection (--autocorrect-all).
609
+ # Configuration parameters: AllowedReceivers.
610
+ # AllowedReceivers: Thread.current
611
+ Style/HashEachMethods:
612
+ Exclude:
613
+ - 'lib/solargraph/rails/annotate.rb'
614
+
615
+ # Offense count: 7
616
+ # This cop supports safe autocorrection (--autocorrect).
617
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
618
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
619
+ # SupportedShorthandSyntax: always, never, either, consistent, either_consistent
620
+ Style/HashSyntax:
621
+ Exclude:
622
+ - 'Rakefile'
623
+ - 'spec/solargraph-rails/schema_spec.rb'
624
+
625
+ # Offense count: 7
626
+ # This cop supports safe autocorrection (--autocorrect).
627
+ Style/IfUnlessModifier:
628
+ Exclude:
629
+ - 'spec/helpers.rb'
630
+ - 'spec/rails8/bin/bundle'
631
+
632
+ # Offense count: 1
633
+ # This cop supports unsafe autocorrection (--autocorrect-all).
634
+ Style/MapToHash:
635
+ Exclude:
636
+ - 'spec/helpers.rb'
637
+
638
+ # Offense count: 2
639
+ Style/MultilineBlockChain:
640
+ Exclude:
641
+ - 'script/generate_definitions.rb'
642
+
643
+ # Offense count: 6
644
+ # This cop supports unsafe autocorrection (--autocorrect-all).
645
+ # Configuration parameters: EnforcedStyle.
646
+ # SupportedStyles: literals, strict
647
+ Style/MutableConstant:
648
+ Exclude:
649
+ - 'lib/solargraph/rails/model.rb'
650
+ - 'lib/solargraph/rails/schema.rb'
651
+ - 'lib/solargraph/rails/version.rb'
652
+
653
+ # Offense count: 1
654
+ # This cop supports safe autocorrection (--autocorrect).
655
+ # Configuration parameters: IncludeSemanticChanges.
656
+ Style/NonNilCheck:
657
+ Exclude:
658
+ - 'spec/helpers.rb'
659
+
660
+ # Offense count: 1
661
+ # This cop supports unsafe autocorrection (--autocorrect-all).
662
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
663
+ # SupportedStyles: predicate, comparison
664
+ Style/NumericPredicate:
665
+ Exclude:
666
+ - 'spec/**/*'
667
+ - 'Gemfile'
668
+
669
+ # Offense count: 1
670
+ # Configuration parameters: AllowedMethods.
671
+ # AllowedMethods: respond_to_missing?
672
+ Style/OptionalBooleanParameter:
673
+ Exclude:
674
+ - 'lib/solargraph/rails/annotations/time.rb'
675
+
676
+ # Offense count: 1
677
+ # This cop supports safe autocorrection (--autocorrect).
678
+ Style/PerlBackrefs:
679
+ Exclude:
680
+ - 'spec/rails8/bin/bundle'
681
+
682
+ # Offense count: 1
683
+ # This cop supports safe autocorrection (--autocorrect).
684
+ Style/RedundantCurrentDirectoryInPath:
685
+ Exclude:
686
+ - 'spec/spec_helper.rb'
687
+
688
+ # Offense count: 3
689
+ # This cop supports safe autocorrection (--autocorrect).
690
+ Style/RedundantParentheses:
691
+ Exclude:
692
+ - 'Gemfile'
693
+ - 'solargraph-rails.gemspec'
694
+
695
+ # Offense count: 1
696
+ # This cop supports safe autocorrection (--autocorrect).
697
+ # Configuration parameters: AllowMultipleReturnValues.
698
+ Style/RedundantReturn:
699
+ Exclude:
700
+ - 'spec/helpers.rb'
701
+
702
+ # Offense count: 11
703
+ # This cop supports safe autocorrection (--autocorrect).
704
+ Style/RedundantSelf:
705
+ Exclude:
706
+ - 'lib/solargraph/rails/annotate.rb'
707
+ - 'lib/solargraph/rails/autoload.rb'
708
+ - 'lib/solargraph/rails/debug.rb'
709
+ - 'lib/solargraph/rails/delegate.rb'
710
+ - 'lib/solargraph/rails/devise.rb'
711
+ - 'lib/solargraph/rails/model.rb'
712
+ - 'lib/solargraph/rails/rails_api.rb'
713
+ - 'lib/solargraph/rails/schema.rb'
714
+ - 'lib/solargraph/rails/storage.rb'
715
+ - 'lib/solargraph/rails/walker.rb'
716
+
717
+ # Offense count: 2
718
+ # This cop supports safe autocorrection (--autocorrect).
719
+ # Configuration parameters: EnforcedStyle.
720
+ # SupportedStyles: implicit, explicit
721
+ Style/RescueStandardError:
722
+ Exclude:
723
+ - 'lib/solargraph-rails.rb'
724
+
725
+ # Offense count: 2
726
+ # This cop supports unsafe autocorrection (--autocorrect-all).
727
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
728
+ Style/ReturnNilInPredicateMethodDefinition:
729
+ Exclude:
730
+ - 'lib/solargraph/rails/walker.rb'
731
+
732
+ # Offense count: 2
733
+ # This cop supports unsafe autocorrection (--autocorrect-all).
734
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
735
+ # AllowedMethods: present?, blank?, presence, try, try!
736
+ Style/SafeNavigation:
737
+ Exclude:
738
+ - 'script/generate_definitions.rb'
739
+
740
+ # Offense count: 1
741
+ # This cop supports safe autocorrection (--autocorrect).
742
+ Style/SelfAssignment:
743
+ Exclude:
744
+ - 'lib/solargraph/rails/util.rb'
745
+
746
+ # Offense count: 6
747
+ # This cop supports unsafe autocorrection (--autocorrect-all).
748
+ Style/SlicingWithRange:
749
+ Exclude:
750
+ - 'lib/solargraph/rails/autoload.rb'
751
+ - 'lib/solargraph/rails/devise.rb'
752
+ - 'lib/solargraph/rails/util.rb'
753
+ - 'lib/solargraph/rails/walker.rb'
754
+ - 'spec/helpers.rb'
755
+
756
+ # Offense count: 1
757
+ # This cop supports safe autocorrection (--autocorrect).
758
+ # Configuration parameters: AllowModifier.
759
+ Style/SoleNestedConditional:
760
+ Exclude:
761
+ - 'spec/helpers.rb'
762
+
763
+ # Offense count: 1
764
+ # This cop supports unsafe autocorrection (--autocorrect-all).
765
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
766
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
767
+ Style/SpecialGlobalVars:
768
+ Exclude:
769
+ - 'spec/rails8/bin/bundle'
770
+
771
+ # Offense count: 5
772
+ # This cop supports safe autocorrection (--autocorrect).
773
+ Style/StderrPuts:
774
+ Exclude:
775
+ - 'Gemfile'
776
+ - 'ci/auto_yard/plugins.rb'
777
+
778
+ # Offense count: 4
779
+ # This cop supports unsafe autocorrection (--autocorrect-all).
780
+ # Configuration parameters: Mode.
781
+ Style/StringConcatenation:
782
+ Exclude:
783
+ - 'ci/auto_yard/plugins.rb'
784
+ - 'lib/solargraph-rails.rb'
785
+ - 'spec/helpers.rb'
786
+
787
+ # Offense count: 299
788
+ # This cop supports safe autocorrection (--autocorrect).
789
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
790
+ # SupportedStyles: single_quotes, double_quotes
791
+ Style/StringLiterals:
792
+ Enabled: false
793
+
794
+ # Offense count: 1
795
+ # This cop supports safe autocorrection (--autocorrect).
796
+ # Configuration parameters: .
797
+ # SupportedStyles: percent, brackets
798
+ Style/SymbolArray:
799
+ EnforcedStyle: percent
800
+ MinSize: 13
801
+
802
+ # Offense count: 1
803
+ # This cop supports unsafe autocorrection (--autocorrect-all).
804
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
805
+ # AllowedMethods: define_method
806
+ Style/SymbolProc:
807
+ Exclude:
808
+ - 'spec/helpers.rb'
809
+
810
+ # Offense count: 3
811
+ # This cop supports safe autocorrection (--autocorrect).
812
+ # Configuration parameters: EnforcedStyleForMultiline.
813
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
814
+ Style/TrailingCommaInArguments:
815
+ Exclude:
816
+ - 'lib/solargraph/rails/delegate.rb'
817
+ - 'lib/solargraph/rails/model.rb'
818
+
819
+ # Offense count: 5
820
+ # This cop supports safe autocorrection (--autocorrect).
821
+ # Configuration parameters: EnforcedStyleForMultiline.
822
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
823
+ Style/TrailingCommaInArrayLiteral:
824
+ Exclude:
825
+ - 'lib/solargraph/rails/model.rb'
826
+
827
+ # Offense count: 7
828
+ # This cop supports safe autocorrection (--autocorrect).
829
+ # Configuration parameters: EnforcedStyleForMultiline.
830
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
831
+ Style/TrailingCommaInHashLiteral:
832
+ Exclude:
833
+ - 'lib/solargraph/rails/model.rb'
834
+
835
+ # Offense count: 1
836
+ # This cop supports safe autocorrection (--autocorrect).
837
+ # Configuration parameters: AllowNamedUnderscoreVariables.
838
+ Style/TrailingUnderscoreVariable:
839
+ Exclude:
840
+ - 'lib/solargraph/rails/rails_api.rb'
841
+
842
+ # Offense count: 3
843
+ # This cop supports safe autocorrection (--autocorrect).
844
+ # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
845
+ # SupportedStyles: percent, brackets
846
+ Style/WordArray:
847
+ Exclude:
848
+ - 'lib/solargraph/rails/schema.rb'
849
+ - 'spec/helpers.rb'
850
+ - 'spec/solargraph-rails/schema_spec.rb'
851
+
852
+ # Offense count: 10
853
+ # This cop supports safe autocorrection (--autocorrect).
854
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
855
+ # URISchemes: http, https
856
+ Layout/LineLength:
857
+ Max: 198