activerecord-ejection_seat 0.3.0 → 0.3.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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +30 -30
- data/README.md +19 -8
- data/activerecord-ejection_seat.gemspec +3 -3
- data/lib/activerecord-ejection_seat/version.rb +1 -1
- data/sorbet/rbi/gems/{activemodel@7.0.4.1.rbi → activemodel@7.0.4.2.rbi} +0 -0
- data/sorbet/rbi/gems/{activerecord@7.0.4.1.rbi → activerecord@7.0.4.2.rbi} +128 -128
- data/sorbet/rbi/gems/{activesupport@7.0.4.1.rbi → activesupport@7.0.4.2.rbi} +1 -1
- data/sorbet/rbi/gems/{concurrent-ruby@1.1.10.rbi → concurrent-ruby@1.2.0.rbi} +1158 -1220
- data/sorbet/rbi/gems/irb@1.6.2.rbi +35 -50
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.2.rbi → language_server-protocol@3.17.0.3.rbi} +0 -0
- data/sorbet/rbi/gems/{parser@3.2.0.0.rbi → parser@3.2.1.0.rbi} +596 -307
- data/sorbet/rbi/gems/{regexp_parser@2.6.1.rbi → regexp_parser@2.7.0.rbi} +598 -144
- data/sorbet/rbi/gems/{rubocop-ast@1.24.1.rbi → rubocop-ast@1.26.0.rbi} +94 -94
- data/sorbet/rbi/gems/{rubocop-minitest@0.26.1.rbi → rubocop-minitest@0.27.0.rbi} +111 -45
- data/sorbet/rbi/gems/{rubocop-sorbet@0.6.11.rbi → rubocop-sorbet@0.7.0.rbi} +158 -114
- data/sorbet/rbi/gems/{rubocop@1.43.0.rbi → rubocop@1.45.1.rbi} +1339 -954
- data/sorbet/rbi/gems/{ruby-lsp@0.3.8.rbi → ruby-lsp@0.4.0.rbi} +0 -0
- data/sorbet/rbi/gems/{syntax_tree@5.2.0.rbi → syntax_tree@6.0.0.rbi} +0 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
- metadata +22 -22
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -8
@@ -4,32 +4,19 @@
|
|
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
9
|
|
19
|
-
|
20
|
-
|
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)
|
10
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#6
|
11
|
+
module RuboCop::Cop; end
|
26
12
|
|
27
|
-
# source://rubocop/1.
|
13
|
+
# source://rubocop/1.44.1/lib/rubocop/cop/mixin/allowed_methods.rb#38
|
28
14
|
RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
|
29
15
|
|
30
|
-
# source://rubocop/1.
|
16
|
+
# source://rubocop/1.44.1/lib/rubocop/cop/mixin/allowed_pattern.rb#54
|
31
17
|
RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
|
32
18
|
|
19
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#7
|
33
20
|
module RuboCop::Cop::Sorbet; end
|
34
21
|
|
35
22
|
# This cop disallows using `.override(allow_incompatible: true)`.
|
@@ -45,6 +32,8 @@ module RuboCop::Cop::Sorbet; end
|
|
45
32
|
#
|
46
33
|
# # good
|
47
34
|
# sig.override
|
35
|
+
#
|
36
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#21
|
48
37
|
class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < ::RuboCop::Cop::Cop
|
49
38
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#35
|
50
39
|
def allow_incompatible?(param0); end
|
@@ -74,6 +63,8 @@ end
|
|
74
63
|
#
|
75
64
|
# # good
|
76
65
|
# FooOrBar = T.type_alias { T.any(Foo, Bar) }
|
66
|
+
#
|
67
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#18
|
77
68
|
class RuboCop::Cop::Sorbet::BindingConstantWithoutTypeAlias < ::RuboCop::Cop::Cop
|
78
69
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#116
|
79
70
|
def autocorrect(node); end
|
@@ -155,6 +146,8 @@ end
|
|
155
146
|
# true
|
156
147
|
# end
|
157
148
|
# end
|
149
|
+
#
|
150
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#35
|
158
151
|
class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < ::RuboCop::Cop::Cop
|
159
152
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#47
|
160
153
|
def autocorrect(node); end
|
@@ -179,6 +172,8 @@ RuboCop::Cop::Sorbet::CallbackConditionalsBinding::CALLBACKS = T.let(T.unsafe(ni
|
|
179
172
|
#
|
180
173
|
# # good
|
181
174
|
# sig { void }
|
175
|
+
#
|
176
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#22
|
182
177
|
class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::Sorbet::SignatureCop
|
183
178
|
include ::RuboCop::Cop::RangeHelp
|
184
179
|
|
@@ -220,6 +215,8 @@ RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), Str
|
|
220
215
|
#
|
221
216
|
# # good
|
222
217
|
# { "User" => User }.fetch(class_name)
|
218
|
+
#
|
219
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#36
|
223
220
|
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Cop
|
224
221
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#37
|
225
222
|
def constant_from_string?(param0 = T.unsafe(nil)); end
|
@@ -228,9 +225,40 @@ class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Cop
|
|
228
225
|
def on_send(node); end
|
229
226
|
end
|
230
227
|
|
228
|
+
# This cop checks for blank lines after signatures.
|
229
|
+
#
|
230
|
+
# It also suggests an autocorrect
|
231
|
+
#
|
232
|
+
# @example
|
233
|
+
#
|
234
|
+
# # bad
|
235
|
+
# sig { void }
|
236
|
+
#
|
237
|
+
# def foo; end
|
238
|
+
#
|
239
|
+
# # good
|
240
|
+
# sig { void }
|
241
|
+
# def foo; end
|
242
|
+
#
|
243
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#23
|
244
|
+
class RuboCop::Cop::Sorbet::EmptyLineAfterSig < ::RuboCop::Cop::Sorbet::SignatureCop
|
245
|
+
include ::RuboCop::Cop::RangeHelp
|
246
|
+
|
247
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#33
|
248
|
+
def autocorrect(node); end
|
249
|
+
|
250
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#26
|
251
|
+
def on_signature(node); end
|
252
|
+
|
253
|
+
private
|
254
|
+
|
255
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#48
|
256
|
+
def next_method(node); end
|
257
|
+
end
|
258
|
+
|
231
259
|
# This cop checks that the Sorbet sigil comes as the first magic comment in the file.
|
232
260
|
#
|
233
|
-
# The expected order for magic comments is:
|
261
|
+
# The expected order for magic comments is: (en)?coding, typed, warn_indent then frozen_string_literal.
|
234
262
|
#
|
235
263
|
# For example, the following bad ordering:
|
236
264
|
#
|
@@ -244,8 +272,10 @@ end
|
|
244
272
|
# class Foo; end
|
245
273
|
# ```
|
246
274
|
#
|
247
|
-
# Only `
|
275
|
+
# Only `(en)?coding`, `typed`, `warn_indent` and `frozen_string_literal` magic comments are considered,
|
248
276
|
# other comments or magic comments are left in the same place.
|
277
|
+
#
|
278
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#30
|
249
279
|
class RuboCop::Cop::Sorbet::EnforceSigilOrder < ::RuboCop::Cop::Sorbet::ValidSigil
|
250
280
|
include ::RuboCop::Cop::RangeHelp
|
251
281
|
|
@@ -302,6 +332,8 @@ RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil),
|
|
302
332
|
#
|
303
333
|
# * `ParameterTypePlaceholder`: placeholders used for parameter types (default: 'T.untyped')
|
304
334
|
# * `ReturnTypePlaceholder`: placeholders used for return types (default: 'T.untyped')
|
335
|
+
#
|
336
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#29
|
305
337
|
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::SignatureCop
|
306
338
|
# @return [EnforceSignatures] a new instance of EnforceSignatures
|
307
339
|
#
|
@@ -341,6 +373,7 @@ class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::Signatur
|
|
341
373
|
def return_type_placeholder; end
|
342
374
|
end
|
343
375
|
|
376
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#101
|
344
377
|
class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
|
345
378
|
# @return [SigSuggestion] a new instance of SigSuggestion
|
346
379
|
#
|
@@ -398,6 +431,8 @@ end
|
|
398
431
|
# ```
|
399
432
|
#
|
400
433
|
# Other comments or magic comments are left in place.
|
434
|
+
#
|
435
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#26
|
401
436
|
class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
402
437
|
include ::RuboCop::Cop::RangeHelp
|
403
438
|
|
@@ -414,6 +449,8 @@ class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSi
|
|
414
449
|
end
|
415
450
|
|
416
451
|
# This cop makes the Sorbet `false` sigil mandatory in all files.
|
452
|
+
#
|
453
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/false_sigil.rb#10
|
417
454
|
class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
418
455
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/false_sigil.rb#11
|
419
456
|
def minimum_strictness; end
|
@@ -438,6 +475,8 @@ end
|
|
438
475
|
# sig { returns(String) }
|
439
476
|
# def foo; end
|
440
477
|
# end
|
478
|
+
#
|
479
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#25
|
441
480
|
class RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims < ::RuboCop::Cop::Cop
|
442
481
|
include ::RuboCop::Cop::RangeHelp
|
443
482
|
|
@@ -460,6 +499,7 @@ RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::MSG = T.let(T.unsafe(nil),
|
|
460
499
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#29
|
461
500
|
RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
462
501
|
|
502
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#29
|
463
503
|
class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral < ::RuboCop::Cop::Cop
|
464
504
|
# @return [ForbidIncludeConstLiteral] a new instance of ForbidIncludeConstLiteral
|
465
505
|
#
|
@@ -495,7 +535,7 @@ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), Stri
|
|
495
535
|
#
|
496
536
|
# Options:
|
497
537
|
#
|
498
|
-
# * `AllowedPaths`: A list of the paths where RBI files are allowed (default: ["sorbet/rbi/**"])
|
538
|
+
# * `AllowedPaths`: A list of the paths where RBI files are allowed (default: ["rbi/**", "sorbet/rbi/**"])
|
499
539
|
#
|
500
540
|
# @example
|
501
541
|
# # bad
|
@@ -503,20 +543,24 @@ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), Stri
|
|
503
543
|
# # other_file.rbi
|
504
544
|
#
|
505
545
|
# # good
|
546
|
+
# # rbi/external_interface.rbi
|
506
547
|
# # sorbet/rbi/some_file.rbi
|
507
548
|
# # sorbet/rbi/any/path/for/file.rbi
|
549
|
+
#
|
550
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#23
|
508
551
|
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Cop
|
509
552
|
include ::RuboCop::Cop::RangeHelp
|
510
553
|
|
511
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#
|
554
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#26
|
512
555
|
def investigate(processed_source); end
|
513
556
|
|
514
557
|
private
|
515
558
|
|
516
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#
|
559
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#58
|
517
560
|
def allowed_paths; end
|
518
561
|
end
|
519
562
|
|
563
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#27
|
520
564
|
class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < ::RuboCop::Cop::Cop
|
521
565
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#30
|
522
566
|
def not_lit_const_superclass?(param0 = T.unsafe(nil)); end
|
@@ -537,6 +581,8 @@ RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral::MSG = T.let(T.unsafe(nil), S
|
|
537
581
|
#
|
538
582
|
# # good
|
539
583
|
# foo
|
584
|
+
#
|
585
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#17
|
540
586
|
class RuboCop::Cop::Sorbet::ForbidTUnsafe < ::RuboCop::Cop::Cop
|
541
587
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#20
|
542
588
|
def on_send(node); end
|
@@ -556,6 +602,8 @@ end
|
|
556
602
|
# # good
|
557
603
|
# sig { params(my_argument: String).void }
|
558
604
|
# def foo(my_argument); end
|
605
|
+
#
|
606
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#20
|
559
607
|
class RuboCop::Cop::Sorbet::ForbidTUntyped < ::RuboCop::Cop::Cop
|
560
608
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#23
|
561
609
|
def on_send(node); end
|
@@ -565,38 +613,43 @@ class RuboCop::Cop::Sorbet::ForbidTUntyped < ::RuboCop::Cop::Cop
|
|
565
613
|
end
|
566
614
|
|
567
615
|
# This cop disallows use of `T.untyped` or `T.nilable(T.untyped)`
|
568
|
-
# as a prop type for `T::Struct`.
|
616
|
+
# as a prop type for `T::Struct` or `T::ImmutableStruct`.
|
569
617
|
#
|
570
618
|
# @example
|
571
619
|
#
|
572
620
|
# # bad
|
573
|
-
# class SomeClass
|
621
|
+
# class SomeClass < T::Struct
|
574
622
|
# const :foo, T.untyped
|
575
623
|
# prop :bar, T.nilable(T.untyped)
|
576
624
|
# end
|
577
625
|
#
|
578
626
|
# # good
|
579
|
-
# class SomeClass
|
627
|
+
# class SomeClass < T::Struct
|
580
628
|
# const :foo, Integer
|
581
629
|
# prop :bar, T.nilable(String)
|
582
630
|
# end
|
631
|
+
#
|
632
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#25
|
583
633
|
class RuboCop::Cop::Sorbet::ForbidUntypedStructProps < ::RuboCop::Cop::Cop
|
584
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#
|
634
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#52
|
585
635
|
def on_class(node); end
|
586
636
|
|
587
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#
|
637
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#44
|
588
638
|
def subclass_of_t_struct?(param0 = T.unsafe(nil)); end
|
589
639
|
|
590
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#
|
640
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#32
|
641
|
+
def t_immutable_struct(param0 = T.unsafe(nil)); end
|
642
|
+
|
643
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#40
|
591
644
|
def t_nilable_untyped(param0 = T.unsafe(nil)); end
|
592
645
|
|
593
646
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#28
|
594
647
|
def t_struct(param0 = T.unsafe(nil)); end
|
595
648
|
|
596
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#
|
649
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#36
|
597
650
|
def t_untyped(param0 = T.unsafe(nil)); end
|
598
651
|
|
599
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#
|
652
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#48
|
600
653
|
def untyped_props(param0); end
|
601
654
|
end
|
602
655
|
|
@@ -611,6 +664,8 @@ RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), Strin
|
|
611
664
|
# * `MinimumStrictness`: If set, make offense if the strictness level in the file is below this one
|
612
665
|
#
|
613
666
|
# If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
|
667
|
+
#
|
668
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#17
|
614
669
|
class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
615
670
|
# @return [Boolean]
|
616
671
|
#
|
@@ -619,6 +674,8 @@ class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
|
619
674
|
end
|
620
675
|
|
621
676
|
# This cop makes the Sorbet `ignore` sigil mandatory in all files.
|
677
|
+
#
|
678
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/ignore_sigil.rb#10
|
622
679
|
class RuboCop::Cop::Sorbet::IgnoreSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
623
680
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/ignore_sigil.rb#11
|
624
681
|
def minimum_strictness; end
|
@@ -638,6 +695,8 @@ end
|
|
638
695
|
# # good
|
639
696
|
# sig { params(b: String, a: Integer).void }
|
640
697
|
# def foo(b:, a: 1); end
|
698
|
+
#
|
699
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#23
|
641
700
|
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Sorbet::SignatureCop
|
642
701
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#24
|
643
702
|
def on_signature(node); end
|
@@ -648,6 +707,7 @@ class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Sorbet::Si
|
|
648
707
|
def check_order_for_kwoptargs(parameters); end
|
649
708
|
end
|
650
709
|
|
710
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#8
|
651
711
|
module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
|
652
712
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#15
|
653
713
|
def on_assignment(value); end
|
@@ -673,6 +733,8 @@ end
|
|
673
733
|
# requires_ancestor Kernel
|
674
734
|
# requires_ancestor Minitest::Assertions
|
675
735
|
# end
|
736
|
+
#
|
737
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#24
|
676
738
|
class RuboCop::Cop::Sorbet::OneAncestorPerLine < ::RuboCop::Cop::Cop
|
677
739
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#35
|
678
740
|
def abstract?(param0); end
|
@@ -704,6 +766,43 @@ end
|
|
704
766
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#25
|
705
767
|
RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String)
|
706
768
|
|
769
|
+
# Forbids the use of redundant `extend T::Sig`. Only for use in
|
770
|
+
# applications that monkey patch `Module.include(T::Sig)` globally,
|
771
|
+
# which would make it redundant.
|
772
|
+
#
|
773
|
+
# @example
|
774
|
+
# # bad
|
775
|
+
# class Example
|
776
|
+
# extend T::Sig
|
777
|
+
# sig { void }
|
778
|
+
# def no_op; end
|
779
|
+
# end
|
780
|
+
#
|
781
|
+
# # good
|
782
|
+
# class Example
|
783
|
+
# sig { void }
|
784
|
+
# def no_op; end
|
785
|
+
# end
|
786
|
+
#
|
787
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#28
|
788
|
+
class RuboCop::Cop::Sorbet::RedundantExtendTSig < ::RuboCop::Cop::Cop
|
789
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#42
|
790
|
+
def autocorrect(node); end
|
791
|
+
|
792
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#32
|
793
|
+
def extend_t_sig?(param0 = T.unsafe(nil)); end
|
794
|
+
|
795
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#36
|
796
|
+
def on_send(node); end
|
797
|
+
end
|
798
|
+
|
799
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#29
|
800
|
+
RuboCop::Cop::Sorbet::RedundantExtendTSig::MSG = T.let(T.unsafe(nil), String)
|
801
|
+
|
802
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#30
|
803
|
+
RuboCop::Cop::Sorbet::RedundantExtendTSig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
804
|
+
|
805
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#15
|
707
806
|
class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::SignatureCop
|
708
807
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#54
|
709
808
|
def autocorrect(node); end
|
@@ -734,6 +833,8 @@ class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::Signat
|
|
734
833
|
end
|
735
834
|
|
736
835
|
# Create a subclass of AST Builder that has modern features turned on
|
836
|
+
#
|
837
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#72
|
737
838
|
class RuboCop::Cop::Sorbet::SignatureBuildOrder::ModernBuilder < ::RuboCop::AST::Builder; end
|
738
839
|
|
739
840
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#16
|
@@ -742,23 +843,22 @@ RuboCop::Cop::Sorbet::SignatureBuildOrder::ORDER = T.let(T.unsafe(nil), Hash)
|
|
742
843
|
# Abstract cop specific to Sorbet signatures
|
743
844
|
#
|
744
845
|
# You can subclass it to use the `on_signature` trigger and the `signature?` node matcher.
|
846
|
+
#
|
847
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#11
|
745
848
|
class RuboCop::Cop::Sorbet::SignatureCop < ::RuboCop::Cop::Cop
|
746
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#
|
747
|
-
def allowed_recv(recv); end
|
748
|
-
|
749
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#33
|
849
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#30
|
750
850
|
def on_block(node); end
|
751
851
|
|
752
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#
|
852
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#34
|
753
853
|
def on_signature(_); end
|
754
854
|
|
755
855
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#14
|
756
856
|
def signature?(param0 = T.unsafe(nil)); end
|
757
857
|
|
758
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#
|
858
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#22
|
759
859
|
def with_runtime?(param0 = T.unsafe(nil)); end
|
760
860
|
|
761
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#
|
861
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#26
|
762
862
|
def without_runtime?(param0 = T.unsafe(nil)); end
|
763
863
|
end
|
764
864
|
|
@@ -773,6 +873,8 @@ end
|
|
773
873
|
#
|
774
874
|
# # good
|
775
875
|
# module SomeModule; end
|
876
|
+
#
|
877
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#17
|
776
878
|
class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < ::RuboCop::Cop::Cop
|
777
879
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#28
|
778
880
|
def autocorrect(node); end
|
@@ -796,18 +898,24 @@ end
|
|
796
898
|
RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions::MSG = T.let(T.unsafe(nil), String)
|
797
899
|
|
798
900
|
# This cop makes the Sorbet `strict` sigil mandatory in all files.
|
901
|
+
#
|
902
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strict_sigil.rb#10
|
799
903
|
class RuboCop::Cop::Sorbet::StrictSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
800
904
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strict_sigil.rb#11
|
801
905
|
def minimum_strictness; end
|
802
906
|
end
|
803
907
|
|
804
908
|
# This cop makes the Sorbet `strong` sigil mandatory in all files.
|
909
|
+
#
|
910
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strong_sigil.rb#10
|
805
911
|
class RuboCop::Cop::Sorbet::StrongSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
806
912
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strong_sigil.rb#11
|
807
913
|
def minimum_strictness; end
|
808
914
|
end
|
809
915
|
|
810
916
|
# This cop makes the Sorbet `true` sigil mandatory in all files.
|
917
|
+
#
|
918
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/true_sigil.rb#10
|
811
919
|
class RuboCop::Cop::Sorbet::TrueSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
812
920
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/true_sigil.rb#11
|
813
921
|
def minimum_strictness; end
|
@@ -822,6 +930,8 @@ end
|
|
822
930
|
#
|
823
931
|
# # good
|
824
932
|
# FooOrBar = T.type_alias { T.any(Foo, Bar) }
|
933
|
+
#
|
934
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#17
|
825
935
|
class RuboCop::Cop::Sorbet::TypeAliasName < ::RuboCop::Cop::Cop
|
826
936
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#20
|
827
937
|
def casgn_type_alias?(param0 = T.unsafe(nil)); end
|
@@ -843,6 +953,8 @@ RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
|
843
953
|
# * `MinimumStrictness`: If set, make offense if the strictness level in the file is below this one
|
844
954
|
#
|
845
955
|
# If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
|
956
|
+
#
|
957
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#18
|
846
958
|
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Cop
|
847
959
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#33
|
848
960
|
def autocorrect(_node); end
|
@@ -905,83 +1017,15 @@ module RuboCop::Cop::Style; end
|
|
905
1017
|
|
906
1018
|
class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
|
907
1019
|
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
1020
|
end
|
960
1021
|
|
961
|
-
# source://rubocop/1.
|
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
|
1022
|
+
# source://rubocop/1.44.1/lib/rubocop/ast_aliases.rb#5
|
968
1023
|
RuboCop::NodePattern = RuboCop::AST::NodePattern
|
969
1024
|
|
970
|
-
|
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
|
1025
|
+
# source://rubocop/1.44.1/lib/rubocop/ast_aliases.rb#6
|
983
1026
|
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
|
984
1027
|
|
1028
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#3
|
985
1029
|
module RuboCop::Sorbet; end
|
986
1030
|
|
987
1031
|
# source://rubocop-sorbet//lib/rubocop/sorbet.rb#11
|
@@ -990,10 +1034,13 @@ RuboCop::Sorbet::CONFIG = T.let(T.unsafe(nil), Hash)
|
|
990
1034
|
# source://rubocop-sorbet//lib/rubocop/sorbet.rb#10
|
991
1035
|
RuboCop::Sorbet::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
992
1036
|
|
1037
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet.rb#7
|
993
1038
|
class RuboCop::Sorbet::Error < ::StandardError; end
|
994
1039
|
|
995
1040
|
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
996
1041
|
# bit of our configuration.
|
1042
|
+
#
|
1043
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet/inject.rb#9
|
997
1044
|
module RuboCop::Sorbet::Inject
|
998
1045
|
class << self
|
999
1046
|
# source://rubocop-sorbet//lib/rubocop/sorbet/inject.rb#10
|
@@ -1007,8 +1054,5 @@ RuboCop::Sorbet::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
|
1007
1054
|
# source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#4
|
1008
1055
|
RuboCop::Sorbet::VERSION = T.let(T.unsafe(nil), String)
|
1009
1056
|
|
1010
|
-
# source://rubocop/1.
|
1057
|
+
# source://rubocop/1.44.1/lib/rubocop/ast_aliases.rb#7
|
1011
1058
|
RuboCop::Token = RuboCop::AST::Token
|
1012
|
-
|
1013
|
-
class RuboCop::ValidationError < ::RuboCop::Error; end
|
1014
|
-
class RuboCop::Warning < ::StandardError; end
|