lunchmoney 1.2.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/build_and_publish_yard_docs.yml +1 -1
- data/.github/workflows/check_pipeline.yml +2 -2
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/{dependabot-rbi-updater.yml → rbi-updater.yml} +2 -3
- data/.simplecov +1 -2
- data/Gemfile +2 -3
- data/Gemfile.lock +70 -75
- data/lib/lunchmoney/objects/transaction.rb +9 -1
- data/lib/lunchmoney/objects/user.rb +4 -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/dsl/active_support/callbacks.rbi +1 -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/{dotenv@3.1.0.rbi → dotenv@3.1.2.rbi} +20 -17
- 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/{json@2.7.1.rbi → json@2.7.2.rbi} +72 -72
- 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.1.0.rbi → mocha@2.4.5.rbi} +169 -144
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.4.2.rbi} +233 -186
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.30.0.rbi} +20933 -12761
- 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.9.rbi → rbi@0.1.14.rbi} +904 -622
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -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.2.rbi → rubocop-ast@1.32.1.rbi} +393 -349
- 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.0.rbi → rubocop-sorbet@0.8.5.rbi} +253 -127
- data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.65.1.rbi} +2334 -1779
- data/sorbet/rbi/gems/securerandom@0.3.1.rbi +73 -0
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.4.2.rbi} +2003 -848
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/{tapioca@0.13.1.rbi → tapioca@0.16.1.rbi} +294 -259
- 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 +46 -49
- 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/prettier_print@1.2.1.rbi +0 -951
- 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/syntax_tree@6.2.0.rbi +0 -23136
@@ -4,6 +4,7 @@
|
|
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
|
+
|
7
8
|
# source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#3
|
8
9
|
module RuboCop; end
|
9
10
|
|
@@ -190,16 +191,30 @@ RuboCop::Cop::Sorbet::BuggyObsoleteStrictMemoization::MSG = T.let(T.unsafe(nil),
|
|
190
191
|
# end
|
191
192
|
#
|
192
193
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#35
|
193
|
-
class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < ::RuboCop::Cop::
|
194
|
-
|
195
|
-
|
194
|
+
class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < ::RuboCop::Cop::Base
|
195
|
+
include ::RuboCop::Cop::Alignment
|
196
|
+
extend ::RuboCop::Cop::AutoCorrector
|
196
197
|
|
197
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#
|
198
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#81
|
199
|
+
def argumentless_unbound_callable_callback_conditional?(param0 = T.unsafe(nil)); end
|
200
|
+
|
201
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#91
|
198
202
|
def on_send(node); end
|
203
|
+
|
204
|
+
private
|
205
|
+
|
206
|
+
# Find the immediately enclosing class or module name.
|
207
|
+
# Returns `nil`` if the immediate parent (skipping begin if present) is not a class or module.
|
208
|
+
#
|
209
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#128
|
210
|
+
def immediately_enclosing_module_name(node); end
|
199
211
|
end
|
200
212
|
|
201
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#
|
202
|
-
RuboCop::Cop::Sorbet::CallbackConditionalsBinding::
|
213
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#39
|
214
|
+
RuboCop::Cop::Sorbet::CallbackConditionalsBinding::MSG = T.let(T.unsafe(nil), String)
|
215
|
+
|
216
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#41
|
217
|
+
RuboCop::Cop::Sorbet::CallbackConditionalsBinding::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
203
218
|
|
204
219
|
# Disallows the usage of `checked(true)`. This usage could cause
|
205
220
|
# confusion; it could lead some people to believe that a method would be checked
|
@@ -216,7 +231,7 @@ RuboCop::Cop::Sorbet::CallbackConditionalsBinding::CALLBACKS = T.let(T.unsafe(ni
|
|
216
231
|
# sig { void }
|
217
232
|
#
|
218
233
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#19
|
219
|
-
class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::
|
234
|
+
class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::Base
|
220
235
|
include ::RuboCop::Cop::RangeHelp
|
221
236
|
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
222
237
|
|
@@ -259,15 +274,18 @@ RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), Str
|
|
259
274
|
# # good
|
260
275
|
# { "User" => User }.fetch(class_name)
|
261
276
|
#
|
262
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#
|
263
|
-
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::
|
264
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#
|
265
|
-
def constant_from_string?(param0 = T.unsafe(nil)); end
|
266
|
-
|
267
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#42
|
277
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#36
|
278
|
+
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Base
|
279
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#46
|
268
280
|
def on_send(node); end
|
269
281
|
end
|
270
282
|
|
283
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#37
|
284
|
+
RuboCop::Cop::Sorbet::ConstantsFromStrings::MSG = T.let(T.unsafe(nil), String)
|
285
|
+
|
286
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#40
|
287
|
+
RuboCop::Cop::Sorbet::ConstantsFromStrings::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
288
|
+
|
271
289
|
# Checks for blank lines after signatures.
|
272
290
|
#
|
273
291
|
# @example
|
@@ -304,10 +322,12 @@ end
|
|
304
322
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb#22
|
305
323
|
RuboCop::Cop::Sorbet::EmptyLineAfterSig::MSG = T.let(T.unsafe(nil), String)
|
306
324
|
|
307
|
-
# 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.
|
308
326
|
#
|
309
327
|
# The expected order for magic comments is: (en)?coding, typed, warn_indent then frozen_string_literal.
|
310
328
|
#
|
329
|
+
# The ordering is for consistency only, except for the encoding comment which must be first, if present.
|
330
|
+
#
|
311
331
|
# For example, the following bad ordering:
|
312
332
|
#
|
313
333
|
# ```ruby
|
@@ -323,42 +343,42 @@ RuboCop::Cop::Sorbet::EmptyLineAfterSig::MSG = T.let(T.unsafe(nil), String)
|
|
323
343
|
# Only `(en)?coding`, `typed`, `warn_indent` and `frozen_string_literal` magic comments are considered,
|
324
344
|
# other comments or magic comments are left in the same place.
|
325
345
|
#
|
326
|
-
# 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
|
327
347
|
class RuboCop::Cop::Sorbet::EnforceSigilOrder < ::RuboCop::Cop::Sorbet::ValidSigil
|
328
348
|
include ::RuboCop::Cop::RangeHelp
|
329
349
|
|
330
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#
|
331
|
-
def
|
332
|
-
|
333
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#33
|
334
|
-
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
|
335
352
|
|
336
353
|
protected
|
337
354
|
|
355
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#93
|
356
|
+
def autocorrect(corrector); end
|
357
|
+
|
338
358
|
# checks
|
339
359
|
#
|
340
|
-
# 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
|
341
361
|
def check_magic_comments_order(tokens); end
|
342
362
|
|
343
363
|
# Get all the tokens in `processed_source` that match `MAGIC_REGEX`
|
344
364
|
#
|
345
|
-
# 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
|
346
366
|
def extract_magic_comments(processed_source); end
|
347
367
|
end
|
348
368
|
|
349
|
-
# 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
|
350
370
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::CODING_REGEX = T.let(T.unsafe(nil), Regexp)
|
351
371
|
|
352
|
-
# 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
|
353
373
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::FROZEN_REGEX = T.let(T.unsafe(nil), Regexp)
|
354
374
|
|
355
|
-
# 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
|
356
376
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::INDENT_REGEX = T.let(T.unsafe(nil), Regexp)
|
357
377
|
|
358
|
-
# 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
|
359
379
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::MAGIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
360
380
|
|
361
|
-
# 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
|
362
382
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil), Hash)
|
363
383
|
|
364
384
|
# Checks that every method definition and attribute accessor has a Sorbet signature.
|
@@ -382,87 +402,88 @@ RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil),
|
|
382
402
|
# * `ReturnTypePlaceholder`: placeholders used for return types (default: 'T.untyped')
|
383
403
|
#
|
384
404
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#27
|
385
|
-
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::
|
405
|
+
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Base
|
386
406
|
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
407
|
+
extend ::RuboCop::Cop::AutoCorrector
|
387
408
|
|
388
409
|
# @return [EnforceSignatures] a new instance of EnforceSignatures
|
389
410
|
#
|
390
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
411
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#31
|
391
412
|
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
|
392
413
|
|
393
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
414
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#37
|
394
415
|
def accessor?(param0 = T.unsafe(nil)); end
|
395
416
|
|
396
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
397
|
-
def autocorrect(node); end
|
398
|
-
|
399
|
-
# 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
|
400
418
|
def on_def(node); end
|
401
419
|
|
402
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
420
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#45
|
403
421
|
def on_defs(node); end
|
404
422
|
|
405
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
423
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#49
|
406
424
|
def on_send(node); end
|
407
425
|
|
408
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
426
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#53
|
409
427
|
def on_signature(node); end
|
410
428
|
|
411
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
429
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#57
|
412
430
|
def scope(node); end
|
413
431
|
|
414
432
|
private
|
415
433
|
|
416
|
-
# 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
|
417
438
|
def check_node(node); end
|
418
439
|
|
419
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
440
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#96
|
420
441
|
def param_type_placeholder; end
|
421
442
|
|
422
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
443
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#100
|
423
444
|
def return_type_placeholder; end
|
424
445
|
end
|
425
446
|
|
426
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
447
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#104
|
427
448
|
class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
|
428
449
|
# @return [SigSuggestion] a new instance of SigSuggestion
|
429
450
|
#
|
430
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
451
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#107
|
431
452
|
def initialize(indent, param_placeholder, return_placeholder); end
|
432
453
|
|
433
454
|
# Returns the value of attribute params.
|
434
455
|
#
|
435
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
456
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
436
457
|
def params; end
|
437
458
|
|
438
459
|
# Sets the attribute params
|
439
460
|
#
|
440
461
|
# @param value the value to set the attribute params to.
|
441
462
|
#
|
442
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
463
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
443
464
|
def params=(_arg0); end
|
444
465
|
|
445
466
|
# Returns the value of attribute returns.
|
446
467
|
#
|
447
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
468
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
448
469
|
def returns; end
|
449
470
|
|
450
471
|
# Sets the attribute returns
|
451
472
|
#
|
452
473
|
# @param value the value to set the attribute returns to.
|
453
474
|
#
|
454
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
475
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#105
|
455
476
|
def returns=(_arg0); end
|
456
477
|
|
457
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
478
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#115
|
458
479
|
def to_autocorrect; end
|
459
480
|
|
460
481
|
private
|
461
482
|
|
462
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
483
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#127
|
463
484
|
def generate_params; end
|
464
485
|
|
465
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#
|
486
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#139
|
466
487
|
def generate_return; end
|
467
488
|
end
|
468
489
|
|
@@ -486,15 +507,15 @@ end
|
|
486
507
|
class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
487
508
|
include ::RuboCop::Cop::RangeHelp
|
488
509
|
|
489
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#40
|
490
|
-
def autocorrect(_node); end
|
491
|
-
|
492
510
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#29
|
493
|
-
def
|
511
|
+
def on_new_investigation; end
|
494
512
|
|
495
513
|
protected
|
496
514
|
|
497
|
-
# 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
|
498
519
|
def extract_all_sigils(processed_source); end
|
499
520
|
end
|
500
521
|
|
@@ -506,6 +527,42 @@ class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
506
527
|
def minimum_strictness; end
|
507
528
|
end
|
508
529
|
|
530
|
+
# Disallow including the `Comparable` module in `T::Enum`.
|
531
|
+
#
|
532
|
+
# @example
|
533
|
+
#
|
534
|
+
# # bad
|
535
|
+
# class Priority < T::Enum
|
536
|
+
# include Comparable
|
537
|
+
#
|
538
|
+
# enums do
|
539
|
+
# High = new(3)
|
540
|
+
# Medium = new(2)
|
541
|
+
# Low = new(1)
|
542
|
+
# end
|
543
|
+
#
|
544
|
+
# def <=>(other)
|
545
|
+
# serialize <=> other.serialize
|
546
|
+
# end
|
547
|
+
# end
|
548
|
+
#
|
549
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#24
|
550
|
+
class RuboCop::Cop::Sorbet::ForbidComparableTEnum < ::RuboCop::Cop::Base
|
551
|
+
include ::RuboCop::Cop::Sorbet::TEnum
|
552
|
+
|
553
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#32
|
554
|
+
def mix_in_comparable?(param0 = T.unsafe(nil)); end
|
555
|
+
|
556
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#36
|
557
|
+
def on_send(node); end
|
558
|
+
end
|
559
|
+
|
560
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#27
|
561
|
+
RuboCop::Cop::Sorbet::ForbidComparableTEnum::MSG = T.let(T.unsafe(nil), String)
|
562
|
+
|
563
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#29
|
564
|
+
RuboCop::Cop::Sorbet::ForbidComparableTEnum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
565
|
+
|
509
566
|
# Ensures RBI shims do not include a call to extend T::Sig
|
510
567
|
# or to extend T::Helpers
|
511
568
|
#
|
@@ -613,15 +670,15 @@ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::RESTRICT_ON_SEND = T.let(T.unsa
|
|
613
670
|
# # sorbet/rbi/any/path/for/file.rbi
|
614
671
|
#
|
615
672
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#23
|
616
|
-
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::
|
673
|
+
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Base
|
617
674
|
include ::RuboCop::Cop::RangeHelp
|
618
675
|
|
619
676
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#26
|
620
|
-
def
|
677
|
+
def on_new_investigation; end
|
621
678
|
|
622
679
|
private
|
623
680
|
|
624
|
-
# 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
|
625
682
|
def allowed_paths; end
|
626
683
|
end
|
627
684
|
|
@@ -942,6 +999,25 @@ end
|
|
942
999
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#26
|
943
1000
|
RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), String)
|
944
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
|
+
|
945
1021
|
# Makes the Sorbet typed sigil mandatory in all files.
|
946
1022
|
#
|
947
1023
|
# Options:
|
@@ -955,7 +1031,7 @@ RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), Strin
|
|
955
1031
|
class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
956
1032
|
# @return [Boolean]
|
957
1033
|
#
|
958
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#
|
1034
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#18
|
959
1035
|
def require_sigil_on_all_files?; end
|
960
1036
|
end
|
961
1037
|
|
@@ -1030,7 +1106,7 @@ RuboCop::Cop::Sorbet::ImplicitConversionMethod::RESTRICT_ON_SEND = T.let(T.unsaf
|
|
1030
1106
|
# def foo(b:, a: 1); end
|
1031
1107
|
#
|
1032
1108
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#20
|
1033
|
-
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::
|
1109
|
+
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Base
|
1034
1110
|
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
1035
1111
|
|
1036
1112
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#23
|
@@ -1042,6 +1118,42 @@ class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Cop
|
|
1042
1118
|
def check_order_for_kwoptargs(parameters); end
|
1043
1119
|
end
|
1044
1120
|
|
1121
|
+
# Disallow creating a `T::Enum` with less than two values.
|
1122
|
+
#
|
1123
|
+
# @example
|
1124
|
+
#
|
1125
|
+
# # bad
|
1126
|
+
# class ErrorMessages < T::Enum
|
1127
|
+
# enums do
|
1128
|
+
# ServerError = new("There was a server error.")
|
1129
|
+
# end
|
1130
|
+
# end
|
1131
|
+
#
|
1132
|
+
# # good
|
1133
|
+
# class ErrorMessages < T::Enum
|
1134
|
+
# enums do
|
1135
|
+
# ServerError = new("There was a server error.")
|
1136
|
+
# NotFound = new("The resource was not found.")
|
1137
|
+
# end
|
1138
|
+
# end
|
1139
|
+
#
|
1140
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#24
|
1141
|
+
class RuboCop::Cop::Sorbet::MultipleTEnumValues < ::RuboCop::Cop::Base
|
1142
|
+
include ::RuboCop::Cop::Sorbet::TEnum
|
1143
|
+
|
1144
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#30
|
1145
|
+
def enums_block?(param0 = T.unsafe(nil)); end
|
1146
|
+
|
1147
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#40
|
1148
|
+
def on_block(node); end
|
1149
|
+
|
1150
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#34
|
1151
|
+
def on_class(node); end
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#27
|
1155
|
+
RuboCop::Cop::Sorbet::MultipleTEnumValues::MSG = T.let(T.unsafe(nil), String)
|
1156
|
+
|
1045
1157
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#8
|
1046
1158
|
module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
|
1047
1159
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18
|
@@ -1106,54 +1218,6 @@ end
|
|
1106
1218
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/obsolete_strict_memoization.rb#47
|
1107
1219
|
RuboCop::Cop::Sorbet::ObsoleteStrictMemoization::MSG = T.let(T.unsafe(nil), String)
|
1108
1220
|
|
1109
|
-
# Ensures one ancestor per requires_ancestor line
|
1110
|
-
# rather than chaining them as a comma-separated list.
|
1111
|
-
#
|
1112
|
-
# @example
|
1113
|
-
#
|
1114
|
-
# # bad
|
1115
|
-
# module SomeModule
|
1116
|
-
# requires_ancestor Kernel, Minitest::Assertions
|
1117
|
-
# end
|
1118
|
-
#
|
1119
|
-
# # good
|
1120
|
-
# module SomeModule
|
1121
|
-
# requires_ancestor Kernel
|
1122
|
-
# requires_ancestor Minitest::Assertions
|
1123
|
-
# end
|
1124
|
-
#
|
1125
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#24
|
1126
|
-
class RuboCop::Cop::Sorbet::OneAncestorPerLine < ::RuboCop::Cop::Cop
|
1127
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#38
|
1128
|
-
def abstract?(param0); end
|
1129
|
-
|
1130
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#56
|
1131
|
-
def autocorrect(node); end
|
1132
|
-
|
1133
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#33
|
1134
|
-
def more_than_one_ancestor(param0 = T.unsafe(nil)); end
|
1135
|
-
|
1136
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#49
|
1137
|
-
def on_class(node); end
|
1138
|
-
|
1139
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#42
|
1140
|
-
def on_module(node); end
|
1141
|
-
|
1142
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#28
|
1143
|
-
def requires_ancestors(param0); end
|
1144
|
-
|
1145
|
-
private
|
1146
|
-
|
1147
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#72
|
1148
|
-
def new_ra_line(indent_count); end
|
1149
|
-
|
1150
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#66
|
1151
|
-
def process_node(node); end
|
1152
|
-
end
|
1153
|
-
|
1154
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#25
|
1155
|
-
RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String)
|
1156
|
-
|
1157
1221
|
# Forbids the use of redundant `extend T::Sig`. Only for use in
|
1158
1222
|
# applications that monkey patch `Module.include(T::Sig)` globally,
|
1159
1223
|
# which would make it redundant.
|
@@ -1306,6 +1370,32 @@ class RuboCop::Cop::Sorbet::StrongSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
1306
1370
|
def minimum_strictness; end
|
1307
1371
|
end
|
1308
1372
|
|
1373
|
+
# Mixing for writing cops that deal with `T::Enum`s
|
1374
|
+
#
|
1375
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#7
|
1376
|
+
module RuboCop::Cop::Sorbet::TEnum
|
1377
|
+
extend ::RuboCop::AST::NodePattern::Macros
|
1378
|
+
|
1379
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#9
|
1380
|
+
def initialize(*_arg0); end
|
1381
|
+
|
1382
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#23
|
1383
|
+
def after_class(node); end
|
1384
|
+
|
1385
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#19
|
1386
|
+
def on_class(node); end
|
1387
|
+
|
1388
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#15
|
1389
|
+
def t_enum?(param0 = T.unsafe(nil)); end
|
1390
|
+
|
1391
|
+
private
|
1392
|
+
|
1393
|
+
# @return [Boolean]
|
1394
|
+
#
|
1395
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#29
|
1396
|
+
def in_t_enum_class?; end
|
1397
|
+
end
|
1398
|
+
|
1309
1399
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/target_sorbet_version.rb#6
|
1310
1400
|
module RuboCop::Cop::Sorbet::TargetSorbetVersion
|
1311
1401
|
mixes_in_class_methods ::RuboCop::Cop::Sorbet::TargetSorbetVersion::ClassMethods
|
@@ -1377,6 +1467,42 @@ end
|
|
1377
1467
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#18
|
1378
1468
|
RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
1379
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
|
+
|
1380
1506
|
# Checks that every Ruby file contains a valid Sorbet sigil.
|
1381
1507
|
# Adapted from: https://gist.github.com/clarkdave/85aca4e16f33fd52aceb6a0a29936e52
|
1382
1508
|
#
|
@@ -1391,69 +1517,69 @@ RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
|
1391
1517
|
# Otherwise, if a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
|
1392
1518
|
#
|
1393
1519
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#20
|
1394
|
-
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::
|
1395
|
-
|
1396
|
-
def autocorrect(_node); end
|
1520
|
+
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Base
|
1521
|
+
extend ::RuboCop::Cop::AutoCorrector
|
1397
1522
|
|
1398
|
-
# So we can properly subclass this cop
|
1399
|
-
#
|
1400
1523
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#23
|
1401
|
-
def
|
1524
|
+
def on_new_investigation; end
|
1402
1525
|
|
1403
1526
|
protected
|
1404
1527
|
|
1528
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#150
|
1529
|
+
def autocorrect(corrector); end
|
1530
|
+
|
1405
1531
|
# checks
|
1406
1532
|
#
|
1407
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1533
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#55
|
1408
1534
|
def check_sigil_present(sigil); end
|
1409
1535
|
|
1410
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1536
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#118
|
1411
1537
|
def check_strictness_level(sigil, strictness); end
|
1412
1538
|
|
1413
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1539
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#94
|
1414
1540
|
def check_strictness_not_empty(sigil, strictness); end
|
1415
1541
|
|
1416
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1542
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#106
|
1417
1543
|
def check_strictness_valid(sigil, strictness); end
|
1418
1544
|
|
1419
1545
|
# Default is `nil`
|
1420
1546
|
#
|
1421
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1547
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#184
|
1422
1548
|
def exact_strictness; end
|
1423
1549
|
|
1424
1550
|
# extraction
|
1425
1551
|
#
|
1426
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1552
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#43
|
1427
1553
|
def extract_sigil(processed_source); end
|
1428
1554
|
|
1429
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1555
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#49
|
1430
1556
|
def extract_strictness(sigil); end
|
1431
1557
|
|
1432
1558
|
# Default is `nil`
|
1433
1559
|
#
|
1434
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1560
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#178
|
1435
1561
|
def minimum_strictness; end
|
1436
1562
|
|
1437
1563
|
# Default is `false`
|
1438
1564
|
#
|
1439
1565
|
# @return [Boolean]
|
1440
1566
|
#
|
1441
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1567
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#167
|
1442
1568
|
def require_sigil_on_all_files?; end
|
1443
1569
|
|
1444
1570
|
# Default is `'false'`
|
1445
1571
|
#
|
1446
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1572
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#172
|
1447
1573
|
def suggested_strictness; end
|
1448
1574
|
|
1449
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1575
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#72
|
1450
1576
|
def suggested_strictness_level; end
|
1451
1577
|
end
|
1452
1578
|
|
1453
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1579
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#39
|
1454
1580
|
RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
|
1455
1581
|
|
1456
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1582
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#38
|
1457
1583
|
RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
|
1458
1584
|
|
1459
1585
|
# Disallows the usage of `.void.checked(:tests)`.
|