activerecord-ejection_seat 0.3.0 → 0.3.2

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.tool-versions +1 -1
  4. data/CHANGELOG.md +6 -0
  5. data/CODE_OF_CONDUCT.md +1 -1
  6. data/Gemfile +0 -2
  7. data/Gemfile.lock +44 -55
  8. data/README.md +19 -8
  9. data/lib/activerecord-ejection_seat/version.rb +1 -1
  10. data/sorbet/rbi/gems/{activerecord@7.0.4.1.rbi → activerecord@7.0.4.3.rbi} +128 -128
  11. data/sorbet/rbi/gems/{activesupport@7.0.4.1.rbi → activesupport@7.0.4.3.rbi} +79 -103
  12. data/sorbet/rbi/gems/{concurrent-ruby@1.1.10.rbi → concurrent-ruby@1.2.2.rbi} +1180 -1267
  13. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +19 -0
  14. data/sorbet/rbi/gems/i18n@1.13.0.rbi +2320 -0
  15. data/sorbet/rbi/gems/{irb@1.6.2.rbi → irb@1.6.4.rbi} +44 -44
  16. data/sorbet/rbi/gems/json@2.6.3.rbi +65 -73
  17. data/sorbet/rbi/gems/{minitest@5.17.0.rbi → minitest@5.18.0.rbi} +79 -48
  18. data/sorbet/rbi/gems/{parallel@1.22.1.rbi → parallel@1.23.0.rbi} +75 -79
  19. data/sorbet/rbi/gems/{parser@3.2.0.0.rbi → parser@3.2.2.1.rbi} +760 -471
  20. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +11 -6
  21. data/sorbet/rbi/gems/rake@13.0.6.rbi +141 -0
  22. data/sorbet/rbi/gems/rbi@0.0.16.rbi +17 -17
  23. data/sorbet/rbi/gems/{regexp_parser@2.6.1.rbi → regexp_parser@2.8.0.rbi} +962 -340
  24. data/sorbet/rbi/gems/rexml@3.2.5.rbi +57 -0
  25. data/sorbet/rbi/gems/{rubocop-ast@1.24.1.rbi → rubocop-ast@1.28.1.rbi} +165 -146
  26. data/sorbet/rbi/gems/{rubocop-minitest@0.26.1.rbi → rubocop-minitest@0.31.0.rbi} +456 -248
  27. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +24 -50
  28. data/sorbet/rbi/gems/{rubocop-sorbet@0.6.11.rbi → rubocop-sorbet@0.7.0.rbi} +153 -124
  29. data/sorbet/rbi/gems/{rubocop@1.43.0.rbi → rubocop@1.51.0.rbi} +3237 -2084
  30. data/sorbet/rbi/gems/{ruby-progressbar@1.11.0.rbi → ruby-progressbar@1.13.0.rbi} +382 -277
  31. data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +18 -0
  32. data/sorbet/rbi/gems/{spoom@1.1.15.rbi → spoom@1.2.1.rbi} +621 -501
  33. data/sorbet/rbi/gems/{tapioca@0.10.5.rbi → tapioca@0.11.6.rbi} +293 -207
  34. data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.2.2.rbi} +76 -61
  35. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  36. data/sorbet/rbi/gems/{yard-sorbet@0.8.0.rbi → yard-sorbet@0.8.1.rbi} +13 -26
  37. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.34.rbi} +1531 -345
  38. metadata +34 -40
  39. data/activerecord-ejection_seat.gemspec +0 -40
  40. data/sorbet/rbi/gems/i18n@1.12.0.rbi +0 -8
  41. data/sorbet/rbi/gems/language_server-protocol@3.17.0.2.rbi +0 -8
  42. data/sorbet/rbi/gems/prettier_print@1.2.0.rbi +0 -8
  43. data/sorbet/rbi/gems/ruby-lsp@0.3.8.rbi +0 -14
  44. data/sorbet/rbi/gems/syntax_tree@5.2.0.rbi +0 -8
  45. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -8
  46. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2498
  47. /data/sorbet/rbi/gems/{activemodel@7.0.4.1.rbi → activemodel@7.0.4.3.rbi} +0 -0
  48. /data/sorbet/rbi/gems/{reline@0.3.2.rbi → reline@0.3.3.rbi} +0 -0
  49. /data/sorbet/rbi/gems/{sqlite3@1.6.0.rbi → sqlite3@1.6.2.rbi} +0 -0
@@ -4,32 +4,13 @@
4
4
  # This is an autogenerated file for types exported from the `rubocop-sorbet` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem rubocop-sorbet`.
6
6
 
7
+ # source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#2
7
8
  module RuboCop; end
8
- class RuboCop::ConfigNotFoundError < ::RuboCop::Error; end
9
- module RuboCop::Cop; end
10
-
11
- module RuboCop::Cop::ConfigurableNaming
12
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
13
- include ::RuboCop::Cop::ConfigurableFormatting
14
- end
15
-
16
- # source://rubocop/1.41.0/lib/rubocop/cop/mixin/configurable_naming.rb#10
17
- RuboCop::Cop::ConfigurableNaming::FORMATS = T.let(T.unsafe(nil), Hash)
18
-
19
- module RuboCop::Cop::ConfigurableNumbering
20
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
21
- include ::RuboCop::Cop::ConfigurableFormatting
22
- end
23
-
24
- # source://rubocop/1.41.0/lib/rubocop/cop/mixin/configurable_numbering.rb#11
25
- RuboCop::Cop::ConfigurableNumbering::FORMATS = T.let(T.unsafe(nil), Hash)
26
-
27
- # source://rubocop/1.41.0/lib/rubocop/cop/mixin/allowed_methods.rb#38
28
- RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
29
9
 
30
- # source://rubocop/1.41.0/lib/rubocop/cop/mixin/allowed_pattern.rb#54
31
- RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
10
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#6
11
+ module RuboCop::Cop; end
32
12
 
13
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#7
33
14
  module RuboCop::Cop::Sorbet; end
34
15
 
35
16
  # This cop disallows using `.override(allow_incompatible: true)`.
@@ -45,6 +26,8 @@ module RuboCop::Cop::Sorbet; end
45
26
  #
46
27
  # # good
47
28
  # sig.override
29
+ #
30
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#21
48
31
  class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < ::RuboCop::Cop::Cop
49
32
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#35
50
33
  def allow_incompatible?(param0); end
@@ -74,6 +57,8 @@ end
74
57
  #
75
58
  # # good
76
59
  # FooOrBar = T.type_alias { T.any(Foo, Bar) }
60
+ #
61
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#18
77
62
  class RuboCop::Cop::Sorbet::BindingConstantWithoutTypeAlias < ::RuboCop::Cop::Cop
78
63
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#116
79
64
  def autocorrect(node); end
@@ -155,6 +140,8 @@ end
155
140
  # true
156
141
  # end
157
142
  # end
143
+ #
144
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#35
158
145
  class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < ::RuboCop::Cop::Cop
159
146
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#47
160
147
  def autocorrect(node); end
@@ -179,6 +166,8 @@ RuboCop::Cop::Sorbet::CallbackConditionalsBinding::CALLBACKS = T.let(T.unsafe(ni
179
166
  #
180
167
  # # good
181
168
  # sig { void }
169
+ #
170
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#22
182
171
  class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::Sorbet::SignatureCop
183
172
  include ::RuboCop::Cop::RangeHelp
184
173
 
@@ -220,6 +209,8 @@ RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), Str
220
209
  #
221
210
  # # good
222
211
  # { "User" => User }.fetch(class_name)
212
+ #
213
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#36
223
214
  class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Cop
224
215
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#37
225
216
  def constant_from_string?(param0 = T.unsafe(nil)); end
@@ -228,9 +219,40 @@ class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Cop
228
219
  def on_send(node); end
229
220
  end
230
221
 
222
+ # This cop checks for blank lines after signatures.
223
+ #
224
+ # It also suggests an autocorrect
225
+ #
226
+ # @example
227
+ #
228
+ # # bad
229
+ # sig { void }
230
+ #
231
+ # def foo; end
232
+ #
233
+ # # good
234
+ # sig { void }
235
+ # def foo; end
236
+ #
237
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#23
238
+ class RuboCop::Cop::Sorbet::EmptyLineAfterSig < ::RuboCop::Cop::Sorbet::SignatureCop
239
+ include ::RuboCop::Cop::RangeHelp
240
+
241
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#33
242
+ def autocorrect(node); end
243
+
244
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#26
245
+ def on_signature(node); end
246
+
247
+ private
248
+
249
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#48
250
+ def next_method(node); end
251
+ end
252
+
231
253
  # This cop checks that the Sorbet sigil comes as the first magic comment in the file.
232
254
  #
233
- # The expected order for magic comments is: typed, (en)?coding, warn_indent then frozen_string_literal.
255
+ # The expected order for magic comments is: (en)?coding, typed, warn_indent then frozen_string_literal.
234
256
  #
235
257
  # For example, the following bad ordering:
236
258
  #
@@ -244,8 +266,10 @@ end
244
266
  # class Foo; end
245
267
  # ```
246
268
  #
247
- # Only `typed`, `(en)?coding`, `warn_indent` and `frozen_string_literal` magic comments are considered,
269
+ # Only `(en)?coding`, `typed`, `warn_indent` and `frozen_string_literal` magic comments are considered,
248
270
  # other comments or magic comments are left in the same place.
271
+ #
272
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#30
249
273
  class RuboCop::Cop::Sorbet::EnforceSigilOrder < ::RuboCop::Cop::Sorbet::ValidSigil
250
274
  include ::RuboCop::Cop::RangeHelp
251
275
 
@@ -302,6 +326,8 @@ RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil),
302
326
  #
303
327
  # * `ParameterTypePlaceholder`: placeholders used for parameter types (default: 'T.untyped')
304
328
  # * `ReturnTypePlaceholder`: placeholders used for return types (default: 'T.untyped')
329
+ #
330
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#29
305
331
  class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::SignatureCop
306
332
  # @return [EnforceSignatures] a new instance of EnforceSignatures
307
333
  #
@@ -341,6 +367,7 @@ class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::Signatur
341
367
  def return_type_placeholder; end
342
368
  end
343
369
 
370
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#101
344
371
  class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
345
372
  # @return [SigSuggestion] a new instance of SigSuggestion
346
373
  #
@@ -398,6 +425,8 @@ end
398
425
  # ```
399
426
  #
400
427
  # Other comments or magic comments are left in place.
428
+ #
429
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#26
401
430
  class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSigil
402
431
  include ::RuboCop::Cop::RangeHelp
403
432
 
@@ -414,6 +443,8 @@ class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSi
414
443
  end
415
444
 
416
445
  # This cop makes the Sorbet `false` sigil mandatory in all files.
446
+ #
447
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/false_sigil.rb#10
417
448
  class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil
418
449
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/false_sigil.rb#11
419
450
  def minimum_strictness; end
@@ -438,6 +469,8 @@ end
438
469
  # sig { returns(String) }
439
470
  # def foo; end
440
471
  # end
472
+ #
473
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#25
441
474
  class RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims < ::RuboCop::Cop::Cop
442
475
  include ::RuboCop::Cop::RangeHelp
443
476
 
@@ -460,6 +493,7 @@ RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::MSG = T.let(T.unsafe(nil),
460
493
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#29
461
494
  RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
462
495
 
496
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#29
463
497
  class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral < ::RuboCop::Cop::Cop
464
498
  # @return [ForbidIncludeConstLiteral] a new instance of ForbidIncludeConstLiteral
465
499
  #
@@ -495,7 +529,7 @@ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), Stri
495
529
  #
496
530
  # Options:
497
531
  #
498
- # * `AllowedPaths`: A list of the paths where RBI files are allowed (default: ["sorbet/rbi/**"])
532
+ # * `AllowedPaths`: A list of the paths where RBI files are allowed (default: ["rbi/**", "sorbet/rbi/**"])
499
533
  #
500
534
  # @example
501
535
  # # bad
@@ -503,20 +537,24 @@ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), Stri
503
537
  # # other_file.rbi
504
538
  #
505
539
  # # good
540
+ # # rbi/external_interface.rbi
506
541
  # # sorbet/rbi/some_file.rbi
507
542
  # # sorbet/rbi/any/path/for/file.rbi
543
+ #
544
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#23
508
545
  class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Cop
509
546
  include ::RuboCop::Cop::RangeHelp
510
547
 
511
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#25
548
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#26
512
549
  def investigate(processed_source); end
513
550
 
514
551
  private
515
552
 
516
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#57
553
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#58
517
554
  def allowed_paths; end
518
555
  end
519
556
 
557
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#27
520
558
  class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < ::RuboCop::Cop::Cop
521
559
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#30
522
560
  def not_lit_const_superclass?(param0 = T.unsafe(nil)); end
@@ -537,6 +575,8 @@ RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral::MSG = T.let(T.unsafe(nil), S
537
575
  #
538
576
  # # good
539
577
  # foo
578
+ #
579
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#17
540
580
  class RuboCop::Cop::Sorbet::ForbidTUnsafe < ::RuboCop::Cop::Cop
541
581
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#20
542
582
  def on_send(node); end
@@ -556,6 +596,8 @@ end
556
596
  # # good
557
597
  # sig { params(my_argument: String).void }
558
598
  # def foo(my_argument); end
599
+ #
600
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#20
559
601
  class RuboCop::Cop::Sorbet::ForbidTUntyped < ::RuboCop::Cop::Cop
560
602
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#23
561
603
  def on_send(node); end
@@ -565,38 +607,43 @@ class RuboCop::Cop::Sorbet::ForbidTUntyped < ::RuboCop::Cop::Cop
565
607
  end
566
608
 
567
609
  # This cop disallows use of `T.untyped` or `T.nilable(T.untyped)`
568
- # as a prop type for `T::Struct`.
610
+ # as a prop type for `T::Struct` or `T::ImmutableStruct`.
569
611
  #
570
612
  # @example
571
613
  #
572
614
  # # bad
573
- # class SomeClass
615
+ # class SomeClass < T::Struct
574
616
  # const :foo, T.untyped
575
617
  # prop :bar, T.nilable(T.untyped)
576
618
  # end
577
619
  #
578
620
  # # good
579
- # class SomeClass
621
+ # class SomeClass < T::Struct
580
622
  # const :foo, Integer
581
623
  # prop :bar, T.nilable(String)
582
624
  # end
625
+ #
626
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#25
583
627
  class RuboCop::Cop::Sorbet::ForbidUntypedStructProps < ::RuboCop::Cop::Cop
584
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#48
628
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#52
585
629
  def on_class(node); end
586
630
 
587
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#40
631
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#44
588
632
  def subclass_of_t_struct?(param0 = T.unsafe(nil)); end
589
633
 
590
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#36
634
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#32
635
+ def t_immutable_struct(param0 = T.unsafe(nil)); end
636
+
637
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#40
591
638
  def t_nilable_untyped(param0 = T.unsafe(nil)); end
592
639
 
593
640
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#28
594
641
  def t_struct(param0 = T.unsafe(nil)); end
595
642
 
596
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#32
643
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#36
597
644
  def t_untyped(param0 = T.unsafe(nil)); end
598
645
 
599
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#44
646
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#48
600
647
  def untyped_props(param0); end
601
648
  end
602
649
 
@@ -611,6 +658,8 @@ RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), Strin
611
658
  # * `MinimumStrictness`: If set, make offense if the strictness level in the file is below this one
612
659
  #
613
660
  # If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
661
+ #
662
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#17
614
663
  class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
615
664
  # @return [Boolean]
616
665
  #
@@ -619,6 +668,8 @@ class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
619
668
  end
620
669
 
621
670
  # This cop makes the Sorbet `ignore` sigil mandatory in all files.
671
+ #
672
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/ignore_sigil.rb#10
622
673
  class RuboCop::Cop::Sorbet::IgnoreSigil < ::RuboCop::Cop::Sorbet::HasSigil
623
674
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/ignore_sigil.rb#11
624
675
  def minimum_strictness; end
@@ -638,6 +689,8 @@ end
638
689
  # # good
639
690
  # sig { params(b: String, a: Integer).void }
640
691
  # def foo(b:, a: 1); end
692
+ #
693
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#23
641
694
  class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Sorbet::SignatureCop
642
695
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#24
643
696
  def on_signature(node); end
@@ -648,6 +701,7 @@ class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Sorbet::Si
648
701
  def check_order_for_kwoptargs(parameters); end
649
702
  end
650
703
 
704
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#8
651
705
  module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
652
706
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#15
653
707
  def on_assignment(value); end
@@ -673,6 +727,8 @@ end
673
727
  # requires_ancestor Kernel
674
728
  # requires_ancestor Minitest::Assertions
675
729
  # end
730
+ #
731
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#24
676
732
  class RuboCop::Cop::Sorbet::OneAncestorPerLine < ::RuboCop::Cop::Cop
677
733
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#35
678
734
  def abstract?(param0); end
@@ -704,6 +760,43 @@ end
704
760
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#25
705
761
  RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String)
706
762
 
763
+ # Forbids the use of redundant `extend T::Sig`. Only for use in
764
+ # applications that monkey patch `Module.include(T::Sig)` globally,
765
+ # which would make it redundant.
766
+ #
767
+ # @example
768
+ # # bad
769
+ # class Example
770
+ # extend T::Sig
771
+ # sig { void }
772
+ # def no_op; end
773
+ # end
774
+ #
775
+ # # good
776
+ # class Example
777
+ # sig { void }
778
+ # def no_op; end
779
+ # end
780
+ #
781
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#28
782
+ class RuboCop::Cop::Sorbet::RedundantExtendTSig < ::RuboCop::Cop::Cop
783
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#42
784
+ def autocorrect(node); end
785
+
786
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#32
787
+ def extend_t_sig?(param0 = T.unsafe(nil)); end
788
+
789
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#36
790
+ def on_send(node); end
791
+ end
792
+
793
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#29
794
+ RuboCop::Cop::Sorbet::RedundantExtendTSig::MSG = T.let(T.unsafe(nil), String)
795
+
796
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#30
797
+ RuboCop::Cop::Sorbet::RedundantExtendTSig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
798
+
799
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#15
707
800
  class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::SignatureCop
708
801
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#54
709
802
  def autocorrect(node); end
@@ -734,6 +827,8 @@ class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::Signat
734
827
  end
735
828
 
736
829
  # Create a subclass of AST Builder that has modern features turned on
830
+ #
831
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#72
737
832
  class RuboCop::Cop::Sorbet::SignatureBuildOrder::ModernBuilder < ::RuboCop::AST::Builder; end
738
833
 
739
834
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#16
@@ -742,23 +837,22 @@ RuboCop::Cop::Sorbet::SignatureBuildOrder::ORDER = T.let(T.unsafe(nil), Hash)
742
837
  # Abstract cop specific to Sorbet signatures
743
838
  #
744
839
  # You can subclass it to use the `on_signature` trigger and the `signature?` node matcher.
840
+ #
841
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#11
745
842
  class RuboCop::Cop::Sorbet::SignatureCop < ::RuboCop::Cop::Cop
746
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#26
747
- def allowed_recv(recv); end
748
-
749
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#33
843
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#30
750
844
  def on_block(node); end
751
845
 
752
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#37
846
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#34
753
847
  def on_signature(_); end
754
848
 
755
849
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#14
756
850
  def signature?(param0 = T.unsafe(nil)); end
757
851
 
758
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#18
852
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#22
759
853
  def with_runtime?(param0 = T.unsafe(nil)); end
760
854
 
761
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#22
855
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#26
762
856
  def without_runtime?(param0 = T.unsafe(nil)); end
763
857
  end
764
858
 
@@ -773,6 +867,8 @@ end
773
867
  #
774
868
  # # good
775
869
  # module SomeModule; end
870
+ #
871
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#17
776
872
  class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < ::RuboCop::Cop::Cop
777
873
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#28
778
874
  def autocorrect(node); end
@@ -796,18 +892,24 @@ end
796
892
  RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions::MSG = T.let(T.unsafe(nil), String)
797
893
 
798
894
  # This cop makes the Sorbet `strict` sigil mandatory in all files.
895
+ #
896
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strict_sigil.rb#10
799
897
  class RuboCop::Cop::Sorbet::StrictSigil < ::RuboCop::Cop::Sorbet::HasSigil
800
898
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strict_sigil.rb#11
801
899
  def minimum_strictness; end
802
900
  end
803
901
 
804
902
  # This cop makes the Sorbet `strong` sigil mandatory in all files.
903
+ #
904
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strong_sigil.rb#10
805
905
  class RuboCop::Cop::Sorbet::StrongSigil < ::RuboCop::Cop::Sorbet::HasSigil
806
906
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strong_sigil.rb#11
807
907
  def minimum_strictness; end
808
908
  end
809
909
 
810
910
  # This cop makes the Sorbet `true` sigil mandatory in all files.
911
+ #
912
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/true_sigil.rb#10
811
913
  class RuboCop::Cop::Sorbet::TrueSigil < ::RuboCop::Cop::Sorbet::HasSigil
812
914
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/true_sigil.rb#11
813
915
  def minimum_strictness; end
@@ -822,6 +924,8 @@ end
822
924
  #
823
925
  # # good
824
926
  # FooOrBar = T.type_alias { T.any(Foo, Bar) }
927
+ #
928
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#17
825
929
  class RuboCop::Cop::Sorbet::TypeAliasName < ::RuboCop::Cop::Cop
826
930
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#20
827
931
  def casgn_type_alias?(param0 = T.unsafe(nil)); end
@@ -843,6 +947,8 @@ RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
843
947
  # * `MinimumStrictness`: If set, make offense if the strictness level in the file is below this one
844
948
  #
845
949
  # If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
950
+ #
951
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#18
846
952
  class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Cop
847
953
  # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#33
848
954
  def autocorrect(_node); end
@@ -905,83 +1011,9 @@ module RuboCop::Cop::Style; end
905
1011
 
906
1012
  class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
907
1013
  include ::RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
908
- include ::RuboCop::Cop::Style::MutableConstant::ShareableConstantValue
909
- include ::RuboCop::Cop::FrozenStringLiteral
910
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
911
- extend ::RuboCop::Cop::AutoCorrector
912
-
913
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#15
914
- def on_assignment(value); end
915
-
916
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#127
917
- def on_casgn(node); end
918
-
919
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#224
920
- def operation_produces_immutable_object?(param0 = T.unsafe(nil)); end
921
-
922
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#241
923
- def range_enclosed_in_parentheses?(param0 = T.unsafe(nil)); end
924
-
925
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#217
926
- def splat_value(param0 = T.unsafe(nil)); end
927
-
928
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#10
929
- def t_let(param0 = T.unsafe(nil)); end
930
-
931
- private
932
-
933
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#169
934
- def autocorrect(corrector, node); end
935
-
936
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#158
937
- def check(value); end
938
-
939
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#208
940
- def correct_splat_expansion(corrector, expr, splat_value); end
941
-
942
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#200
943
- def frozen_regexp_or_range_literals?(node); end
944
-
945
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#190
946
- def immutable_literal?(node); end
947
-
948
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#184
949
- def mutable_literal?(value); end
950
-
951
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#204
952
- def requires_parentheses?(node); end
953
-
954
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#194
955
- def shareable_constant_value?(node); end
956
-
957
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#149
958
- def strict_check(value); end
959
1014
  end
960
1015
 
961
- # source://rubocop/1.41.0/lib/rubocop/cop/style/mutable_constant.rb#125
962
- RuboCop::Cop::Style::MutableConstant::MSG = T.let(T.unsafe(nil), String)
963
-
964
- class RuboCop::Error < ::StandardError; end
965
- class RuboCop::IncorrectCopNameError < ::StandardError; end
966
-
967
- # source://rubocop/1.41.0/lib/rubocop/ast_aliases.rb#5
968
- RuboCop::NodePattern = RuboCop::AST::NodePattern
969
-
970
- class RuboCop::OptionArgumentError < ::StandardError; end
971
- module RuboCop::OptionsHelp; end
972
-
973
- # source://rubocop/1.41.0/lib/rubocop/options.rb#470
974
- RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array)
975
-
976
- # source://rubocop/1.41.0/lib/rubocop/options.rb#469
977
- RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String)
978
-
979
- # source://rubocop/1.41.0/lib/rubocop/options.rb#472
980
- RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash)
981
-
982
- # source://rubocop/1.41.0/lib/rubocop/ast_aliases.rb#6
983
- RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
984
-
1016
+ # source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#3
985
1017
  module RuboCop::Sorbet; end
986
1018
 
987
1019
  # source://rubocop-sorbet//lib/rubocop/sorbet.rb#11
@@ -990,10 +1022,13 @@ RuboCop::Sorbet::CONFIG = T.let(T.unsafe(nil), Hash)
990
1022
  # source://rubocop-sorbet//lib/rubocop/sorbet.rb#10
991
1023
  RuboCop::Sorbet::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
992
1024
 
1025
+ # source://rubocop-sorbet//lib/rubocop/sorbet.rb#7
993
1026
  class RuboCop::Sorbet::Error < ::StandardError; end
994
1027
 
995
1028
  # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
996
1029
  # bit of our configuration.
1030
+ #
1031
+ # source://rubocop-sorbet//lib/rubocop/sorbet/inject.rb#9
997
1032
  module RuboCop::Sorbet::Inject
998
1033
  class << self
999
1034
  # source://rubocop-sorbet//lib/rubocop/sorbet/inject.rb#10
@@ -1006,9 +1041,3 @@ RuboCop::Sorbet::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
1006
1041
 
1007
1042
  # source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#4
1008
1043
  RuboCop::Sorbet::VERSION = T.let(T.unsafe(nil), String)
1009
-
1010
- # source://rubocop/1.41.0/lib/rubocop/ast_aliases.rb#7
1011
- RuboCop::Token = RuboCop::AST::Token
1012
-
1013
- class RuboCop::ValidationError < ::RuboCop::Error; end
1014
- class RuboCop::Warning < ::StandardError; end