solargraph-rails 1.1.2 → 1.2.1

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