lunchmoney 1.3.0 → 1.4.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/.github/dependabot.yml +7 -0
- data/.github/workflows/build_and_publish_yard_docs.yml +2 -2
- data/.github/workflows/ci.yml +1 -1
- data/.ruby-version +1 -1
- data/.simplecov +2 -2
- data/Gemfile +2 -3
- data/Gemfile.lock +90 -84
- data/lib/lunchmoney/api.rb +1 -0
- data/lib/lunchmoney/calls/categories.rb +0 -2
- data/lib/lunchmoney/calls/transactions.rb +0 -1
- data/lib/lunchmoney/deprecate.rb +35 -0
- data/lib/lunchmoney/objects/asset.rb +6 -1
- data/lib/lunchmoney/objects/plaid_account.rb +6 -1
- data/lib/lunchmoney/objects/transaction.rb +9 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +36 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/gems/{activesupport@7.1.3.2.rbi → activesupport@7.2.2.1.rbi} +1407 -1292
- data/sorbet/rbi/gems/{addressable@2.8.6.rbi → addressable@2.8.7.rbi} +2 -1
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/{bigdecimal@3.1.7.rbi → bigdecimal@3.1.9.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.5.rbi} +108 -41
- data/sorbet/rbi/gems/{connection_pool@2.4.1.rbi → connection_pool@2.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +1 -0
- data/sorbet/rbi/gems/{dotenv@3.1.2.rbi → dotenv@3.1.7.rbi} +21 -29
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
- data/sorbet/rbi/gems/{faraday-net_http@3.1.0.rbi → faraday-net_http@3.4.0.rbi} +30 -29
- data/sorbet/rbi/gems/{faraday@2.9.0.rbi → faraday@2.12.2.rbi} +104 -49
- data/sorbet/rbi/gems/{hashdiff@1.1.0.rbi → hashdiff@1.1.2.rbi} +3 -2
- data/sorbet/rbi/gems/{i18n@1.14.4.rbi → i18n@1.14.7.rbi} +109 -80
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.10.2.rbi} +697 -146
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
- data/sorbet/rbi/gems/logger@1.6.6.rbi +940 -0
- data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.25.5.rbi} +319 -302
- 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.7.1.rbi} +174 -149
- data/sorbet/rbi/gems/{net-http@0.4.1.rbi → net-http@0.6.0.rbi} +360 -181
- 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.7.1.rbi} +256 -203
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.4.0.rbi} +15882 -12137
- 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.9.rbi} +704 -989
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
- data/sorbet/rbi/gems/rbi@0.3.1.rbi +6599 -0
- data/sorbet/rbi/gems/rbs@3.9.0.rbi +6978 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.1.rbi → regexp_parser@2.10.0.rbi} +195 -172
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.1.rbi} +844 -279
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.38.0.rbi} +1380 -732
- data/sorbet/rbi/gems/{rubocop-minitest@0.35.0.rbi → rubocop-minitest@0.36.0.rbi} +13 -10
- data/sorbet/rbi/gems/{rubocop-rails@2.24.1.rbi → rubocop-rails@2.29.1.rbi} +9604 -6343
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.3.rbi → rubocop-sorbet@0.8.7.rbi} +168 -67
- data/sorbet/rbi/gems/{rubocop@1.63.5.rbi → rubocop@1.71.2.rbi} +6831 -4378
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
- data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
- data/sorbet/rbi/gems/{tapioca@0.14.1.rbi → tapioca@0.16.11.rbi} +471 -384
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +58 -31
- 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/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{uri@0.13.0.rbi → uri@1.0.3.rbi} +278 -256
- 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.25.1.rbi} +102 -78
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -235
- metadata +55 -58
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3426
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
- 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
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4421
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
@@ -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
|
|
@@ -276,6 +276,9 @@ RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), Str
|
|
276
276
|
#
|
277
277
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#36
|
278
278
|
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Base
|
279
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#46
|
280
|
+
def on_csend(node); end
|
281
|
+
|
279
282
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#46
|
280
283
|
def on_send(node); end
|
281
284
|
end
|
@@ -322,10 +325,12 @@ end
|
|
322
325
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#22
|
323
326
|
RuboCop::Cop::Sorbet::EmptyLineAfterSig::MSG = T.let(T.unsafe(nil), String)
|
324
327
|
|
325
|
-
# Checks that the Sorbet sigil comes as the first magic comment in the file.
|
328
|
+
# Checks that the Sorbet sigil comes as the first magic comment in the file, after the encoding comment if any.
|
326
329
|
#
|
327
330
|
# The expected order for magic comments is: (en)?coding, typed, warn_indent then frozen_string_literal.
|
328
331
|
#
|
332
|
+
# The ordering is for consistency only, except for the encoding comment which must be first, if present.
|
333
|
+
#
|
329
334
|
# For example, the following bad ordering:
|
330
335
|
#
|
331
336
|
# ```ruby
|
@@ -341,42 +346,42 @@ RuboCop::Cop::Sorbet::EmptyLineAfterSig::MSG = T.let(T.unsafe(nil), String)
|
|
341
346
|
# Only `(en)?coding`, `typed`, `warn_indent` and `frozen_string_literal` magic comments are considered,
|
342
347
|
# other comments or magic comments are left in the same place.
|
343
348
|
#
|
344
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
349
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#32
|
345
350
|
class RuboCop::Cop::Sorbet::EnforceSigilOrder < ::RuboCop::Cop::Sorbet::ValidSigil
|
346
351
|
include ::RuboCop::Cop::RangeHelp
|
347
352
|
|
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
|
353
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#35
|
354
|
+
def on_new_investigation; end
|
353
355
|
|
354
356
|
protected
|
355
357
|
|
358
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#93
|
359
|
+
def autocorrect(corrector); end
|
360
|
+
|
356
361
|
# checks
|
357
362
|
#
|
358
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
363
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#70
|
359
364
|
def check_magic_comments_order(tokens); end
|
360
365
|
|
361
366
|
# Get all the tokens in `processed_source` that match `MAGIC_REGEX`
|
362
367
|
#
|
363
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
368
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#62
|
364
369
|
def extract_magic_comments(processed_source); end
|
365
370
|
end
|
366
371
|
|
367
|
-
# 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#46
|
368
373
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::CODING_REGEX = T.let(T.unsafe(nil), Regexp)
|
369
374
|
|
370
|
-
# 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#48
|
371
376
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::FROZEN_REGEX = T.let(T.unsafe(nil), Regexp)
|
372
377
|
|
373
|
-
# 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#47
|
374
379
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::INDENT_REGEX = T.let(T.unsafe(nil), Regexp)
|
375
380
|
|
376
|
-
# 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#57
|
377
382
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::MAGIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
378
383
|
|
379
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
384
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#50
|
380
385
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil), Hash)
|
381
386
|
|
382
387
|
# Checks that every method definition and attribute accessor has a Sorbet signature.
|
@@ -400,87 +405,88 @@ RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil),
|
|
400
405
|
# * `ReturnTypePlaceholder`: placeholders used for return types (default: 'T.untyped')
|
401
406
|
#
|
402
407
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#27
|
403
|
-
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::
|
408
|
+
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Base
|
404
409
|
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
410
|
+
extend ::RuboCop::Cop::AutoCorrector
|
405
411
|
|
406
412
|
# @return [EnforceSignatures] a new instance of EnforceSignatures
|
407
413
|
#
|
408
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
414
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#31
|
409
415
|
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
|
410
416
|
|
411
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
417
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#37
|
412
418
|
def accessor?(param0 = T.unsafe(nil)); end
|
413
419
|
|
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
|
420
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#41
|
418
421
|
def on_def(node); end
|
419
422
|
|
420
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
423
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#45
|
421
424
|
def on_defs(node); end
|
422
425
|
|
423
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
426
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#49
|
424
427
|
def on_send(node); end
|
425
428
|
|
426
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
429
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#53
|
427
430
|
def on_signature(node); end
|
428
431
|
|
429
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
432
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#57
|
430
433
|
def scope(node); end
|
431
434
|
|
432
435
|
private
|
433
436
|
|
434
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
437
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#79
|
438
|
+
def autocorrect(corrector, node); end
|
439
|
+
|
440
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#66
|
435
441
|
def check_node(node); end
|
436
442
|
|
437
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
443
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#96
|
438
444
|
def param_type_placeholder; end
|
439
445
|
|
440
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
446
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#100
|
441
447
|
def return_type_placeholder; end
|
442
448
|
end
|
443
449
|
|
444
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
450
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#104
|
445
451
|
class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
|
446
452
|
# @return [SigSuggestion] a new instance of SigSuggestion
|
447
453
|
#
|
448
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
454
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#107
|
449
455
|
def initialize(indent, param_placeholder, return_placeholder); end
|
450
456
|
|
451
457
|
# Returns the value of attribute params.
|
452
458
|
#
|
453
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
459
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
454
460
|
def params; end
|
455
461
|
|
456
462
|
# Sets the attribute params
|
457
463
|
#
|
458
464
|
# @param value the value to set the attribute params to.
|
459
465
|
#
|
460
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
466
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
461
467
|
def params=(_arg0); end
|
462
468
|
|
463
469
|
# Returns the value of attribute returns.
|
464
470
|
#
|
465
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
471
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
466
472
|
def returns; end
|
467
473
|
|
468
474
|
# Sets the attribute returns
|
469
475
|
#
|
470
476
|
# @param value the value to set the attribute returns to.
|
471
477
|
#
|
472
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
478
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
473
479
|
def returns=(_arg0); end
|
474
480
|
|
475
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
481
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#115
|
476
482
|
def to_autocorrect; end
|
477
483
|
|
478
484
|
private
|
479
485
|
|
480
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
486
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#127
|
481
487
|
def generate_params; end
|
482
488
|
|
483
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
489
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#139
|
484
490
|
def generate_return; end
|
485
491
|
end
|
486
492
|
|
@@ -504,15 +510,15 @@ end
|
|
504
510
|
class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
505
511
|
include ::RuboCop::Cop::RangeHelp
|
506
512
|
|
507
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#40
|
508
|
-
def autocorrect(_node); end
|
509
|
-
|
510
513
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#29
|
511
|
-
def
|
514
|
+
def on_new_investigation; end
|
512
515
|
|
513
516
|
protected
|
514
517
|
|
515
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#
|
518
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#50
|
519
|
+
def autocorrect(corrector); end
|
520
|
+
|
521
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#44
|
516
522
|
def extract_all_sigils(processed_source); end
|
517
523
|
end
|
518
524
|
|
@@ -667,15 +673,15 @@ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::RESTRICT_ON_SEND = T.let(T.unsa
|
|
667
673
|
# # sorbet/rbi/any/path/for/file.rbi
|
668
674
|
#
|
669
675
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#23
|
670
|
-
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::
|
676
|
+
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Base
|
671
677
|
include ::RuboCop::Cop::RangeHelp
|
672
678
|
|
673
679
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#26
|
674
|
-
def
|
680
|
+
def on_new_investigation; end
|
675
681
|
|
676
682
|
private
|
677
683
|
|
678
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#
|
684
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#48
|
679
685
|
def allowed_paths; end
|
680
686
|
end
|
681
687
|
|
@@ -996,6 +1002,25 @@ end
|
|
996
1002
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#26
|
997
1003
|
RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), String)
|
998
1004
|
|
1005
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#6
|
1006
|
+
module RuboCop::Cop::Sorbet::GemVersionAnnotationHelper
|
1007
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#9
|
1008
|
+
def gem_version_annotations; end
|
1009
|
+
|
1010
|
+
private
|
1011
|
+
|
1012
|
+
# @return [Boolean]
|
1013
|
+
#
|
1014
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#17
|
1015
|
+
def gem_version_annotation?(comment); end
|
1016
|
+
|
1017
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#21
|
1018
|
+
def gem_versions(comment); end
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/gem_version_annotation_helper.rb#7
|
1022
|
+
RuboCop::Cop::Sorbet::GemVersionAnnotationHelper::VERSION_PREFIX = T.let(T.unsafe(nil), String)
|
1023
|
+
|
999
1024
|
# Makes the Sorbet typed sigil mandatory in all files.
|
1000
1025
|
#
|
1001
1026
|
# Options:
|
@@ -1009,7 +1034,7 @@ RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), Strin
|
|
1009
1034
|
class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
1010
1035
|
# @return [Boolean]
|
1011
1036
|
#
|
1012
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#
|
1037
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#18
|
1013
1038
|
def require_sigil_on_all_files?; end
|
1014
1039
|
end
|
1015
1040
|
|
@@ -1084,7 +1109,7 @@ RuboCop::Cop::Sorbet::ImplicitConversionMethod::RESTRICT_ON_SEND = T.let(T.unsaf
|
|
1084
1109
|
# def foo(b:, a: 1); end
|
1085
1110
|
#
|
1086
1111
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#20
|
1087
|
-
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::
|
1112
|
+
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Base
|
1088
1113
|
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
1089
1114
|
|
1090
1115
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#23
|
@@ -1232,6 +1257,46 @@ RuboCop::Cop::Sorbet::RedundantExtendTSig::MSG = T.let(T.unsafe(nil), String)
|
|
1232
1257
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb#33
|
1233
1258
|
RuboCop::Cop::Sorbet::RedundantExtendTSig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
1234
1259
|
|
1260
|
+
# Checks for the use of Ruby Refinements library. Refinements add
|
1261
|
+
# complexity and incur a performance penalty that can be significant
|
1262
|
+
# for large code bases. Good examples are cases of unrelated
|
1263
|
+
# methods that happen to have the same name as these module methods.
|
1264
|
+
#
|
1265
|
+
# @example
|
1266
|
+
# # bad
|
1267
|
+
# module Foo
|
1268
|
+
# refine(Date) do
|
1269
|
+
# end
|
1270
|
+
# end
|
1271
|
+
#
|
1272
|
+
# # bad
|
1273
|
+
# module Foo
|
1274
|
+
# using(Date) do
|
1275
|
+
# end
|
1276
|
+
# end
|
1277
|
+
#
|
1278
|
+
# # good
|
1279
|
+
# module Foo
|
1280
|
+
# bar.refine(Date)
|
1281
|
+
# end
|
1282
|
+
#
|
1283
|
+
# # good
|
1284
|
+
# module Foo
|
1285
|
+
# bar.using(Date)
|
1286
|
+
# end
|
1287
|
+
#
|
1288
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/refinement.rb#34
|
1289
|
+
class RuboCop::Cop::Sorbet::Refinement < ::RuboCop::Cop::Base
|
1290
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/refinement.rb#38
|
1291
|
+
def on_send(node); end
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/refinement.rb#35
|
1295
|
+
RuboCop::Cop::Sorbet::Refinement::MSG = T.let(T.unsafe(nil), String)
|
1296
|
+
|
1297
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/refinement.rb#36
|
1298
|
+
RuboCop::Cop::Sorbet::Refinement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
1299
|
+
|
1235
1300
|
# Checks for the correct order of `sig` builder methods.
|
1236
1301
|
#
|
1237
1302
|
# Options:
|
@@ -1445,6 +1510,42 @@ end
|
|
1445
1510
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#18
|
1446
1511
|
RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
1447
1512
|
|
1513
|
+
# Checks that gem versions in RBI annotations are properly formatted per the Bundler gem specification.
|
1514
|
+
#
|
1515
|
+
# @example
|
1516
|
+
# # bad
|
1517
|
+
# # @version > not a version number
|
1518
|
+
#
|
1519
|
+
# # good
|
1520
|
+
# # @version = 1
|
1521
|
+
#
|
1522
|
+
# # good
|
1523
|
+
# # @version > 1.2.3
|
1524
|
+
#
|
1525
|
+
# # good
|
1526
|
+
# # @version <= 4.3-preview
|
1527
|
+
#
|
1528
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#21
|
1529
|
+
class RuboCop::Cop::Sorbet::ValidGemVersionAnnotations < ::RuboCop::Cop::Base
|
1530
|
+
include ::RuboCop::Cop::Sorbet::GemVersionAnnotationHelper
|
1531
|
+
|
1532
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#27
|
1533
|
+
def on_new_investigation; end
|
1534
|
+
|
1535
|
+
private
|
1536
|
+
|
1537
|
+
# @return [Boolean]
|
1538
|
+
#
|
1539
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#50
|
1540
|
+
def valid_version?(version_string); end
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#24
|
1544
|
+
RuboCop::Cop::Sorbet::ValidGemVersionAnnotations::MSG = T.let(T.unsafe(nil), String)
|
1545
|
+
|
1546
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb#25
|
1547
|
+
RuboCop::Cop::Sorbet::ValidGemVersionAnnotations::VALID_OPERATORS = T.let(T.unsafe(nil), Array)
|
1548
|
+
|
1448
1549
|
# Checks that every Ruby file contains a valid Sorbet sigil.
|
1449
1550
|
# Adapted from: https://gist.github.com/clarkdave/85aca4e16f33fd52aceb6a0a29936e52
|
1450
1551
|
#
|
@@ -1459,69 +1560,69 @@ RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
|
1459
1560
|
# Otherwise, if a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
|
1460
1561
|
#
|
1461
1562
|
# 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
|
1563
|
+
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Base
|
1564
|
+
extend ::RuboCop::Cop::AutoCorrector
|
1465
1565
|
|
1466
|
-
# So we can properly subclass this cop
|
1467
|
-
#
|
1468
1566
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#23
|
1469
|
-
def
|
1567
|
+
def on_new_investigation; end
|
1470
1568
|
|
1471
1569
|
protected
|
1472
1570
|
|
1571
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#150
|
1572
|
+
def autocorrect(corrector); end
|
1573
|
+
|
1473
1574
|
# checks
|
1474
1575
|
#
|
1475
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1576
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#55
|
1476
1577
|
def check_sigil_present(sigil); end
|
1477
1578
|
|
1478
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1579
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#118
|
1479
1580
|
def check_strictness_level(sigil, strictness); end
|
1480
1581
|
|
1481
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1582
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#94
|
1482
1583
|
def check_strictness_not_empty(sigil, strictness); end
|
1483
1584
|
|
1484
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1585
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#106
|
1485
1586
|
def check_strictness_valid(sigil, strictness); end
|
1486
1587
|
|
1487
1588
|
# Default is `nil`
|
1488
1589
|
#
|
1489
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1590
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#184
|
1490
1591
|
def exact_strictness; end
|
1491
1592
|
|
1492
1593
|
# extraction
|
1493
1594
|
#
|
1494
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1595
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#43
|
1495
1596
|
def extract_sigil(processed_source); end
|
1496
1597
|
|
1497
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1598
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#49
|
1498
1599
|
def extract_strictness(sigil); end
|
1499
1600
|
|
1500
1601
|
# Default is `nil`
|
1501
1602
|
#
|
1502
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1603
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#178
|
1503
1604
|
def minimum_strictness; end
|
1504
1605
|
|
1505
1606
|
# Default is `false`
|
1506
1607
|
#
|
1507
1608
|
# @return [Boolean]
|
1508
1609
|
#
|
1509
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1610
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#167
|
1510
1611
|
def require_sigil_on_all_files?; end
|
1511
1612
|
|
1512
1613
|
# Default is `'false'`
|
1513
1614
|
#
|
1514
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1615
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#172
|
1515
1616
|
def suggested_strictness; end
|
1516
1617
|
|
1517
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1618
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#72
|
1518
1619
|
def suggested_strictness_level; end
|
1519
1620
|
end
|
1520
1621
|
|
1521
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1622
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#39
|
1522
1623
|
RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
|
1523
1624
|
|
1524
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1625
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#38
|
1525
1626
|
RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
|
1526
1627
|
|
1527
1628
|
# Disallows the usage of `.void.checked(:tests)`.
|