lunchmoney 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.simplecov +1 -2
- data/Gemfile +2 -3
- data/Gemfile.lock +66 -68
- data/lib/lunchmoney/objects/transaction.rb +9 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +31 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/gems/{activesupport@7.1.3.2.rbi → activesupport@7.2.1.rbi} +1345 -1253
- data/sorbet/rbi/gems/{addressable@2.8.6.rbi → addressable@2.8.7.rbi} +2 -1
- data/sorbet/rbi/gems/{bigdecimal@3.1.7.rbi → bigdecimal@3.1.8.rbi} +1 -0
- data/sorbet/rbi/gems/{chef-utils@18.4.2.rbi → chef-utils@18.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/{concurrent-ruby@1.2.3.rbi → concurrent-ruby@1.3.4.rbi} +64 -9
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +1 -0
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
- data/sorbet/rbi/gems/{faraday-net_http@3.1.0.rbi → faraday-net_http@3.1.1.rbi} +36 -35
- data/sorbet/rbi/gems/{faraday@2.9.0.rbi → faraday@2.10.1.rbi} +79 -33
- data/sorbet/rbi/gems/{hashdiff@1.1.0.rbi → hashdiff@1.1.1.rbi} +3 -2
- data/sorbet/rbi/gems/{i18n@1.14.4.rbi → i18n@1.14.5.rbi} +43 -14
- data/sorbet/rbi/gems/logger@1.6.0.rbi +903 -0
- data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.25.1.rbi} +245 -235
- data/sorbet/rbi/gems/{mixlib-shellout@3.2.7.rbi → mixlib-shellout@3.2.8.rbi} +1 -0
- data/sorbet/rbi/gems/{mocha@2.2.0.rbi → mocha@2.4.5.rbi} +36 -47
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
- data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.4.2.rbi} +233 -186
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@0.30.0.rbi} +5670 -4445
- data/sorbet/rbi/gems/{public_suffix@5.0.4.rbi → public_suffix@6.0.1.rbi} +1 -0
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +34 -33
- data/sorbet/rbi/gems/{rack@3.0.10.rbi → rack@3.1.7.rbi} +694 -987
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
- data/sorbet/rbi/gems/{rbi@0.1.13.rbi → rbi@0.1.14.rbi} +865 -638
- data/sorbet/rbi/gems/{regexp_parser@2.9.1.rbi → regexp_parser@2.9.2.rbi} +2 -2
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.3.6.rbi} +383 -245
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.32.1.rbi} +383 -337
- data/sorbet/rbi/gems/{rubocop-minitest@0.35.0.rbi → rubocop-minitest@0.35.1.rbi} +11 -8
- data/sorbet/rbi/gems/{rubocop-rails@2.24.1.rbi → rubocop-rails@2.26.0.rbi} +604 -275
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.3.rbi → rubocop-sorbet@0.8.5.rbi} +125 -67
- data/sorbet/rbi/gems/{rubocop@1.63.5.rbi → rubocop@1.65.1.rbi} +1722 -1408
- data/sorbet/rbi/gems/securerandom@0.3.1.rbi +73 -0
- data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.4.2.rbi} +2377 -1866
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/{tapioca@0.14.1.rbi → tapioca@0.16.1.rbi} +274 -253
- data/sorbet/rbi/gems/{toys-core@0.15.5.rbi → toys-core@0.15.6.rbi} +1 -0
- data/sorbet/rbi/gems/{toys@0.15.5.rbi → toys@0.15.6.rbi} +4 -3
- data/sorbet/rbi/gems/{vcr@6.2.0.rbi → vcr@6.3.1.rbi} +72 -68
- data/sorbet/rbi/gems/{webmock@3.23.0.rbi → webmock@3.23.1.rbi} +1 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- metadata +43 -44
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3426
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
- data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +0 -93
- data/sorbet/rbi/gems/pry-sorbet@0.2.1.rbi +0 -966
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10077
@@ -231,7 +231,7 @@ RuboCop::Cop::Sorbet::CallbackConditionalsBinding::RESTRICT_ON_SEND = T.let(T.un
|
|
231
231
|
# sig { void }
|
232
232
|
#
|
233
233
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#19
|
234
|
-
class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::
|
234
|
+
class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::Base
|
235
235
|
include ::RuboCop::Cop::RangeHelp
|
236
236
|
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
237
237
|
|
@@ -322,10 +322,12 @@ end
|
|
322
322
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#22
|
323
323
|
RuboCop::Cop::Sorbet::EmptyLineAfterSig::MSG = T.let(T.unsafe(nil), String)
|
324
324
|
|
325
|
-
# Checks that the Sorbet sigil comes as the first magic comment in the file.
|
325
|
+
# Checks that the Sorbet sigil comes as the first magic comment in the file, after the encoding comment if any.
|
326
326
|
#
|
327
327
|
# The expected order for magic comments is: (en)?coding, typed, warn_indent then frozen_string_literal.
|
328
328
|
#
|
329
|
+
# The ordering is for consistency only, except for the encoding comment which must be first, if present.
|
330
|
+
#
|
329
331
|
# For example, the following bad ordering:
|
330
332
|
#
|
331
333
|
# ```ruby
|
@@ -341,42 +343,42 @@ RuboCop::Cop::Sorbet::EmptyLineAfterSig::MSG = T.let(T.unsafe(nil), String)
|
|
341
343
|
# Only `(en)?coding`, `typed`, `warn_indent` and `frozen_string_literal` magic comments are considered,
|
342
344
|
# other comments or magic comments are left in the same place.
|
343
345
|
#
|
344
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
346
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#32
|
345
347
|
class RuboCop::Cop::Sorbet::EnforceSigilOrder < ::RuboCop::Cop::Sorbet::ValidSigil
|
346
348
|
include ::RuboCop::Cop::RangeHelp
|
347
349
|
|
348
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
349
|
-
def
|
350
|
-
|
351
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#33
|
352
|
-
def investigate(processed_source); end
|
350
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#35
|
351
|
+
def on_new_investigation; end
|
353
352
|
|
354
353
|
protected
|
355
354
|
|
355
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#93
|
356
|
+
def autocorrect(corrector); end
|
357
|
+
|
356
358
|
# checks
|
357
359
|
#
|
358
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
360
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#70
|
359
361
|
def check_magic_comments_order(tokens); end
|
360
362
|
|
361
363
|
# Get all the tokens in `processed_source` that match `MAGIC_REGEX`
|
362
364
|
#
|
363
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
365
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#62
|
364
366
|
def extract_magic_comments(processed_source); end
|
365
367
|
end
|
366
368
|
|
367
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
369
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#46
|
368
370
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::CODING_REGEX = T.let(T.unsafe(nil), Regexp)
|
369
371
|
|
370
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
372
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#48
|
371
373
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::FROZEN_REGEX = T.let(T.unsafe(nil), Regexp)
|
372
374
|
|
373
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
375
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#47
|
374
376
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::INDENT_REGEX = T.let(T.unsafe(nil), Regexp)
|
375
377
|
|
376
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
378
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#57
|
377
379
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::MAGIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
378
380
|
|
379
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
381
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#50
|
380
382
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil), Hash)
|
381
383
|
|
382
384
|
# Checks that every method definition and attribute accessor has a Sorbet signature.
|
@@ -400,87 +402,88 @@ RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil),
|
|
400
402
|
# * `ReturnTypePlaceholder`: placeholders used for return types (default: 'T.untyped')
|
401
403
|
#
|
402
404
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#27
|
403
|
-
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::
|
405
|
+
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Base
|
404
406
|
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
407
|
+
extend ::RuboCop::Cop::AutoCorrector
|
405
408
|
|
406
409
|
# @return [EnforceSignatures] a new instance of EnforceSignatures
|
407
410
|
#
|
408
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
411
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#31
|
409
412
|
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
|
410
413
|
|
411
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
414
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#37
|
412
415
|
def accessor?(param0 = T.unsafe(nil)); end
|
413
416
|
|
414
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
415
|
-
def autocorrect(node); end
|
416
|
-
|
417
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#40
|
417
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#41
|
418
418
|
def on_def(node); end
|
419
419
|
|
420
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
420
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#45
|
421
421
|
def on_defs(node); end
|
422
422
|
|
423
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
423
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#49
|
424
424
|
def on_send(node); end
|
425
425
|
|
426
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
426
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#53
|
427
427
|
def on_signature(node); end
|
428
428
|
|
429
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
429
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#57
|
430
430
|
def scope(node); end
|
431
431
|
|
432
432
|
private
|
433
433
|
|
434
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
434
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#79
|
435
|
+
def autocorrect(corrector, node); end
|
436
|
+
|
437
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#66
|
435
438
|
def check_node(node); end
|
436
439
|
|
437
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
440
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#96
|
438
441
|
def param_type_placeholder; end
|
439
442
|
|
440
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
443
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#100
|
441
444
|
def return_type_placeholder; end
|
442
445
|
end
|
443
446
|
|
444
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
447
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#104
|
445
448
|
class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
|
446
449
|
# @return [SigSuggestion] a new instance of SigSuggestion
|
447
450
|
#
|
448
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
451
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#107
|
449
452
|
def initialize(indent, param_placeholder, return_placeholder); end
|
450
453
|
|
451
454
|
# Returns the value of attribute params.
|
452
455
|
#
|
453
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
456
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
454
457
|
def params; end
|
455
458
|
|
456
459
|
# Sets the attribute params
|
457
460
|
#
|
458
461
|
# @param value the value to set the attribute params to.
|
459
462
|
#
|
460
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
463
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
461
464
|
def params=(_arg0); end
|
462
465
|
|
463
466
|
# Returns the value of attribute returns.
|
464
467
|
#
|
465
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
468
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
466
469
|
def returns; end
|
467
470
|
|
468
471
|
# Sets the attribute returns
|
469
472
|
#
|
470
473
|
# @param value the value to set the attribute returns to.
|
471
474
|
#
|
472
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
475
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
473
476
|
def returns=(_arg0); end
|
474
477
|
|
475
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
478
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#115
|
476
479
|
def to_autocorrect; end
|
477
480
|
|
478
481
|
private
|
479
482
|
|
480
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
483
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#127
|
481
484
|
def generate_params; end
|
482
485
|
|
483
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
486
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#139
|
484
487
|
def generate_return; end
|
485
488
|
end
|
486
489
|
|
@@ -504,15 +507,15 @@ end
|
|
504
507
|
class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
505
508
|
include ::RuboCop::Cop::RangeHelp
|
506
509
|
|
507
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#40
|
508
|
-
def autocorrect(_node); end
|
509
|
-
|
510
510
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#29
|
511
|
-
def
|
511
|
+
def on_new_investigation; end
|
512
512
|
|
513
513
|
protected
|
514
514
|
|
515
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#
|
515
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#50
|
516
|
+
def autocorrect(corrector); end
|
517
|
+
|
518
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#44
|
516
519
|
def extract_all_sigils(processed_source); end
|
517
520
|
end
|
518
521
|
|
@@ -667,15 +670,15 @@ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::RESTRICT_ON_SEND = T.let(T.unsa
|
|
667
670
|
# # sorbet/rbi/any/path/for/file.rbi
|
668
671
|
#
|
669
672
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#23
|
670
|
-
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::
|
673
|
+
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Base
|
671
674
|
include ::RuboCop::Cop::RangeHelp
|
672
675
|
|
673
676
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#26
|
674
|
-
def
|
677
|
+
def on_new_investigation; end
|
675
678
|
|
676
679
|
private
|
677
680
|
|
678
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#
|
681
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#55
|
679
682
|
def allowed_paths; end
|
680
683
|
end
|
681
684
|
|
@@ -996,6 +999,25 @@ end
|
|
996
999
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#26
|
997
1000
|
RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), String)
|
998
1001
|
|
1002
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#6
|
1003
|
+
module RuboCop::Cop::Sorbet::GemVersionAnnotationHelper
|
1004
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#9
|
1005
|
+
def gem_version_annotations; end
|
1006
|
+
|
1007
|
+
private
|
1008
|
+
|
1009
|
+
# @return [Boolean]
|
1010
|
+
#
|
1011
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#17
|
1012
|
+
def gem_version_annotation?(comment); end
|
1013
|
+
|
1014
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#21
|
1015
|
+
def gem_versions(comment); end
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#7
|
1019
|
+
RuboCop::Cop::Sorbet::GemVersionAnnotationHelper::VERSION_PREFIX = T.let(T.unsafe(nil), String)
|
1020
|
+
|
999
1021
|
# Makes the Sorbet typed sigil mandatory in all files.
|
1000
1022
|
#
|
1001
1023
|
# Options:
|
@@ -1009,7 +1031,7 @@ RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), Strin
|
|
1009
1031
|
class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
1010
1032
|
# @return [Boolean]
|
1011
1033
|
#
|
1012
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#
|
1034
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#18
|
1013
1035
|
def require_sigil_on_all_files?; end
|
1014
1036
|
end
|
1015
1037
|
|
@@ -1084,7 +1106,7 @@ RuboCop::Cop::Sorbet::ImplicitConversionMethod::RESTRICT_ON_SEND = T.let(T.unsaf
|
|
1084
1106
|
# def foo(b:, a: 1); end
|
1085
1107
|
#
|
1086
1108
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#20
|
1087
|
-
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::
|
1109
|
+
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Base
|
1088
1110
|
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
1089
1111
|
|
1090
1112
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#23
|
@@ -1445,6 +1467,42 @@ end
|
|
1445
1467
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#18
|
1446
1468
|
RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
1447
1469
|
|
1470
|
+
# Checks that gem versions in RBI annotations are properly formatted per the Bundler gem specification.
|
1471
|
+
#
|
1472
|
+
# @example
|
1473
|
+
# # bad
|
1474
|
+
# # @version > not a version number
|
1475
|
+
#
|
1476
|
+
# # good
|
1477
|
+
# # @version = 1
|
1478
|
+
#
|
1479
|
+
# # good
|
1480
|
+
# # @version > 1.2.3
|
1481
|
+
#
|
1482
|
+
# # good
|
1483
|
+
# # @version <= 4.3-preview
|
1484
|
+
#
|
1485
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#21
|
1486
|
+
class RuboCop::Cop::Sorbet::ValidGemVersionAnnotations < ::RuboCop::Cop::Base
|
1487
|
+
include ::RuboCop::Cop::Sorbet::GemVersionAnnotationHelper
|
1488
|
+
|
1489
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#27
|
1490
|
+
def on_new_investigation; end
|
1491
|
+
|
1492
|
+
private
|
1493
|
+
|
1494
|
+
# @return [Boolean]
|
1495
|
+
#
|
1496
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#50
|
1497
|
+
def valid_version?(version_string); end
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#24
|
1501
|
+
RuboCop::Cop::Sorbet::ValidGemVersionAnnotations::MSG = T.let(T.unsafe(nil), String)
|
1502
|
+
|
1503
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#25
|
1504
|
+
RuboCop::Cop::Sorbet::ValidGemVersionAnnotations::VALID_OPERATORS = T.let(T.unsafe(nil), Array)
|
1505
|
+
|
1448
1506
|
# Checks that every Ruby file contains a valid Sorbet sigil.
|
1449
1507
|
# Adapted from: https://gist.github.com/clarkdave/85aca4e16f33fd52aceb6a0a29936e52
|
1450
1508
|
#
|
@@ -1459,69 +1517,69 @@ RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
|
1459
1517
|
# Otherwise, if a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
|
1460
1518
|
#
|
1461
1519
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#20
|
1462
|
-
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::
|
1463
|
-
|
1464
|
-
def autocorrect(_node); end
|
1520
|
+
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Base
|
1521
|
+
extend ::RuboCop::Cop::AutoCorrector
|
1465
1522
|
|
1466
|
-
# So we can properly subclass this cop
|
1467
|
-
#
|
1468
1523
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#23
|
1469
|
-
def
|
1524
|
+
def on_new_investigation; end
|
1470
1525
|
|
1471
1526
|
protected
|
1472
1527
|
|
1528
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#150
|
1529
|
+
def autocorrect(corrector); end
|
1530
|
+
|
1473
1531
|
# checks
|
1474
1532
|
#
|
1475
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1533
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#55
|
1476
1534
|
def check_sigil_present(sigil); end
|
1477
1535
|
|
1478
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1536
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#118
|
1479
1537
|
def check_strictness_level(sigil, strictness); end
|
1480
1538
|
|
1481
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1539
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#94
|
1482
1540
|
def check_strictness_not_empty(sigil, strictness); end
|
1483
1541
|
|
1484
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1542
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#106
|
1485
1543
|
def check_strictness_valid(sigil, strictness); end
|
1486
1544
|
|
1487
1545
|
# Default is `nil`
|
1488
1546
|
#
|
1489
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1547
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#184
|
1490
1548
|
def exact_strictness; end
|
1491
1549
|
|
1492
1550
|
# extraction
|
1493
1551
|
#
|
1494
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1552
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#43
|
1495
1553
|
def extract_sigil(processed_source); end
|
1496
1554
|
|
1497
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1555
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#49
|
1498
1556
|
def extract_strictness(sigil); end
|
1499
1557
|
|
1500
1558
|
# Default is `nil`
|
1501
1559
|
#
|
1502
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1560
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#178
|
1503
1561
|
def minimum_strictness; end
|
1504
1562
|
|
1505
1563
|
# Default is `false`
|
1506
1564
|
#
|
1507
1565
|
# @return [Boolean]
|
1508
1566
|
#
|
1509
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1567
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#167
|
1510
1568
|
def require_sigil_on_all_files?; end
|
1511
1569
|
|
1512
1570
|
# Default is `'false'`
|
1513
1571
|
#
|
1514
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1572
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#172
|
1515
1573
|
def suggested_strictness; end
|
1516
1574
|
|
1517
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1575
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#72
|
1518
1576
|
def suggested_strictness_level; end
|
1519
1577
|
end
|
1520
1578
|
|
1521
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1579
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#39
|
1522
1580
|
RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
|
1523
1581
|
|
1524
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1582
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#38
|
1525
1583
|
RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
|
1526
1584
|
|
1527
1585
|
# Disallows the usage of `.void.checked(:tests)`.
|