sorbet-result 0.2.0 → 0.2.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.
@@ -1040,6 +1040,9 @@ class RuboCop::Config
1040
1040
  # source://rubocop//lib/rubocop/config.rb#155
1041
1041
  def for_department(department_name); end
1042
1042
 
1043
+ # source://rubocop//lib/rubocop/config.rb#287
1044
+ def inspect; end
1045
+
1043
1046
  # True if this is a config file that is shipped with RuboCop
1044
1047
  #
1045
1048
  # @return [Boolean]
@@ -1125,18 +1128,18 @@ class RuboCop::Config
1125
1128
 
1126
1129
  private
1127
1130
 
1128
- # source://rubocop//lib/rubocop/config.rb#318
1131
+ # source://rubocop//lib/rubocop/config.rb#322
1129
1132
  def department_of(qualified_cop_name); end
1130
1133
 
1131
1134
  # @return [Boolean]
1132
1135
  #
1133
- # source://rubocop//lib/rubocop/config.rb#306
1136
+ # source://rubocop//lib/rubocop/config.rb#310
1134
1137
  def enable_cop?(qualified_cop_name, cop_options); end
1135
1138
 
1136
- # source://rubocop//lib/rubocop/config.rb#293
1139
+ # source://rubocop//lib/rubocop/config.rb#297
1137
1140
  def read_rails_version_from_bundler_lock_file; end
1138
1141
 
1139
- # source://rubocop//lib/rubocop/config.rb#289
1142
+ # source://rubocop//lib/rubocop/config.rb#293
1140
1143
  def target_rails_version_from_bundler_lock_file; end
1141
1144
 
1142
1145
  class << self
@@ -2914,6 +2917,9 @@ class RuboCop::Cop::Base
2914
2917
  # source://rubocop//lib/rubocop/cop/base.rb#205
2915
2918
  def external_dependency_checksum; end
2916
2919
 
2920
+ # source://rubocop//lib/rubocop/cop/base.rb#308
2921
+ def inspect; end
2922
+
2917
2923
  # Gets called if no message is specified when calling `add_offense` or
2918
2924
  # `add_global_offense`
2919
2925
  # Cops are discouraged to override this; instead pass your message directly
@@ -2977,83 +2983,83 @@ class RuboCop::Cop::Base
2977
2983
 
2978
2984
  private
2979
2985
 
2980
- # source://rubocop//lib/rubocop/cop/base.rb#432
2986
+ # source://rubocop//lib/rubocop/cop/base.rb#436
2981
2987
  def annotate(message); end
2982
2988
 
2983
- # source://rubocop//lib/rubocop/cop/base.rb#316
2989
+ # source://rubocop//lib/rubocop/cop/base.rb#320
2984
2990
  def apply_correction(corrector); end
2985
2991
 
2986
2992
  # @return [Symbol] offense status
2987
2993
  #
2988
- # source://rubocop//lib/rubocop/cop/base.rb#396
2994
+ # source://rubocop//lib/rubocop/cop/base.rb#400
2989
2995
  def attempt_correction(range, corrector); end
2990
2996
 
2991
2997
  # Reserved for Cop::Cop
2992
2998
  #
2993
- # source://rubocop//lib/rubocop/cop/base.rb#312
2999
+ # source://rubocop//lib/rubocop/cop/base.rb#316
2994
3000
  def callback_argument(range); end
2995
3001
 
2996
3002
  # Called to complete an investigation
2997
3003
  #
2998
- # source://rubocop//lib/rubocop/cop/base.rb#345
3004
+ # source://rubocop//lib/rubocop/cop/base.rb#349
2999
3005
  def complete_investigation; end
3000
3006
 
3001
3007
  # @return [Symbol, Corrector] offense status
3002
3008
  #
3003
- # source://rubocop//lib/rubocop/cop/base.rb#370
3009
+ # source://rubocop//lib/rubocop/cop/base.rb#374
3004
3010
  def correct(range); end
3005
3011
 
3006
- # source://rubocop//lib/rubocop/cop/base.rb#330
3012
+ # source://rubocop//lib/rubocop/cop/base.rb#334
3007
3013
  def current_corrector; end
3008
3014
 
3009
3015
  # Reserved for Commissioner:
3010
3016
  #
3011
- # source://rubocop//lib/rubocop/cop/base.rb#322
3017
+ # source://rubocop//lib/rubocop/cop/base.rb#326
3012
3018
  def current_offense_locations; end
3013
3019
 
3014
- # source://rubocop//lib/rubocop/cop/base.rb#334
3020
+ # source://rubocop//lib/rubocop/cop/base.rb#338
3015
3021
  def current_offenses; end
3016
3022
 
3017
- # source://rubocop//lib/rubocop/cop/base.rb#326
3023
+ # source://rubocop//lib/rubocop/cop/base.rb#330
3018
3024
  def currently_disabled_lines; end
3019
3025
 
3020
- # source://rubocop//lib/rubocop/cop/base.rb#460
3026
+ # source://rubocop//lib/rubocop/cop/base.rb#464
3021
3027
  def custom_severity; end
3022
3028
 
3023
- # source://rubocop//lib/rubocop/cop/base.rb#456
3029
+ # source://rubocop//lib/rubocop/cop/base.rb#460
3024
3030
  def default_severity; end
3025
3031
 
3026
- # source://rubocop//lib/rubocop/cop/base.rb#410
3032
+ # source://rubocop//lib/rubocop/cop/base.rb#414
3027
3033
  def disable_uncorrectable(range); end
3028
3034
 
3029
3035
  # @return [Boolean]
3030
3036
  #
3031
- # source://rubocop//lib/rubocop/cop/base.rb#446
3037
+ # source://rubocop//lib/rubocop/cop/base.rb#450
3032
3038
  def enabled_line?(line_number); end
3033
3039
 
3034
3040
  # @return [Boolean]
3035
3041
  #
3036
- # source://rubocop//lib/rubocop/cop/base.rb#438
3042
+ # source://rubocop//lib/rubocop/cop/base.rb#442
3037
3043
  def file_name_matches_any?(file, parameter, default_result); end
3038
3044
 
3039
- # source://rubocop//lib/rubocop/cop/base.rb#428
3045
+ # source://rubocop//lib/rubocop/cop/base.rb#432
3040
3046
  def find_message(range, message); end
3041
3047
 
3042
- # source://rubocop//lib/rubocop/cop/base.rb#452
3048
+ # source://rubocop//lib/rubocop/cop/base.rb#456
3043
3049
  def find_severity(_range, severity); end
3044
3050
 
3045
- # source://rubocop//lib/rubocop/cop/base.rb#473
3051
+ # source://rubocop//lib/rubocop/cop/base.rb#477
3046
3052
  def range_for_original(range); end
3047
3053
 
3048
- # source://rubocop//lib/rubocop/cop/base.rb#417
3054
+ # source://rubocop//lib/rubocop/cop/base.rb#421
3049
3055
  def range_from_node_or_range(node_or_range); end
3050
3056
 
3051
- # source://rubocop//lib/rubocop/cop/base.rb#365
3057
+ # source://rubocop//lib/rubocop/cop/base.rb#369
3052
3058
  def reset_investigation; end
3053
3059
 
3054
3060
  # @return [Symbol] offense status
3055
3061
  #
3056
- # source://rubocop//lib/rubocop/cop/base.rb#385
3062
+ # source://rubocop//lib/rubocop/cop/base.rb#389
3057
3063
  def use_corrector(range, corrector); end
3058
3064
 
3059
3065
  class << self
@@ -3143,15 +3149,15 @@ class RuboCop::Cop::Base
3143
3149
 
3144
3150
  # @return [Boolean]
3145
3151
  #
3146
- # source://rubocop//lib/rubocop/cop/base.rb#356
3152
+ # source://rubocop//lib/rubocop/cop/base.rb#360
3147
3153
  def builtin?; end
3148
3154
 
3149
- # source://rubocop//lib/rubocop/cop/base.rb#338
3155
+ # source://rubocop//lib/rubocop/cop/base.rb#342
3150
3156
  def restrict_on_send; end
3151
3157
  end
3152
3158
  end
3153
3159
 
3154
- # source://rubocop//lib/rubocop/cop/base.rb#342
3160
+ # source://rubocop//lib/rubocop/cop/base.rb#346
3155
3161
  RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array)
3156
3162
 
3157
3163
  # Reports of an investigation.
@@ -4856,7 +4862,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter
4856
4862
 
4857
4863
  # Legacy
4858
4864
  #
4859
- # source://parser/3.2.2.0/lib/parser/source/tree_rewriter.rb#252
4865
+ # source://parser/3.2.2.1/lib/parser/source/tree_rewriter.rb#252
4860
4866
  def rewrite; end
4861
4867
 
4862
4868
  # Swaps sources at the given ranges.
@@ -15444,7 +15450,7 @@ class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base
15444
15450
  # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#205
15445
15451
  def space_inside_right_brace(inner, right_brace, column); end
15446
15452
 
15447
- # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#251
15453
+ # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#253
15448
15454
  def style_for_empty_braces; end
15449
15455
  end
15450
15456
 
@@ -16294,30 +16300,34 @@ RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsaf
16294
16300
  class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base
16295
16301
  include ::RuboCop::Cop::AllowedMethods
16296
16302
  include ::RuboCop::Cop::AllowedPattern
16303
+ extend ::RuboCop::Cop::AutoCorrector
16297
16304
 
16298
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62
16305
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#64
16299
16306
  def on_csend(node); end
16300
16307
 
16301
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62
16308
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#64
16302
16309
  def on_send(node); end
16303
16310
 
16304
16311
  private
16305
16312
 
16306
16313
  # @return [Boolean]
16307
16314
  #
16308
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#81
16315
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#85
16309
16316
  def allowed_method_pattern?(node); end
16310
16317
 
16311
16318
  # @return [Boolean]
16312
16319
  #
16313
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#77
16320
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#81
16314
16321
  def ambiguous_block_association?(send_node); end
16315
16322
 
16316
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#87
16323
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#91
16317
16324
  def message(send_node); end
16325
+
16326
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#97
16327
+ def wrap_in_parentheses(corrector, node); end
16318
16328
  end
16319
16329
 
16320
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#58
16330
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#60
16321
16331
  RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String)
16322
16332
 
16323
16333
  # Checks for ambiguous operators in the first argument of a
@@ -18667,9 +18677,9 @@ RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String)
18667
18677
  #
18668
18678
  # [source,console]
18669
18679
  # ----
18670
- # % cat example.rb
18680
+ # $ cat example.rb
18671
18681
  # ERB.new('hi', nil, '-', '@output_buffer')
18672
- # % ruby -rerb example.rb
18682
+ # $ ruby -rerb example.rb
18673
18683
  # example.rb:1: warning: Passing safe_level with the 2nd argument of ERB.new is
18674
18684
  # deprecated. Do not use it, and specify other arguments as keyword arguments.
18675
18685
  # example.rb:1: warning: Passing trim_mode with the 3rd argument of ERB.new is
@@ -19244,6 +19254,9 @@ RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), Stri
19244
19254
 
19245
19255
  # This cop checks for `IO.select` that is incompatible with Fiber Scheduler since Ruby 3.0.
19246
19256
  #
19257
+ # When an array of IO objects waiting for an exception (the third argument of `IO.select`)
19258
+ # is used as an argument, there is no alternative API, so offenses are not registered.
19259
+ #
19247
19260
  # NOTE: When the method is successful the return value of `IO.select` is `[[IO]]`,
19248
19261
  # and the return value of `io.wait_readable` and `io.wait_writable` are `self`.
19249
19262
  # They are not autocorrected when assigning a return value because these types are different.
@@ -19263,31 +19276,31 @@ RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), Stri
19263
19276
  # # good
19264
19277
  # io.wait_writable(timeout)
19265
19278
  #
19266
- # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#32
19279
+ # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#35
19267
19280
  class RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler < ::RuboCop::Cop::Base
19268
19281
  extend ::RuboCop::Cop::AutoCorrector
19269
19282
 
19270
- # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#39
19283
+ # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#42
19271
19284
  def io_select(param0 = T.unsafe(nil)); end
19272
19285
 
19273
- # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#44
19286
+ # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#47
19274
19287
  def on_send(node); end
19275
19288
 
19276
19289
  private
19277
19290
 
19278
- # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#67
19291
+ # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#70
19279
19292
  def preferred_method(read, write, timeout); end
19280
19293
 
19281
19294
  # @return [Boolean]
19282
19295
  #
19283
- # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#61
19296
+ # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#64
19284
19297
  def scheduler_compatible?(io1, io2); end
19285
19298
  end
19286
19299
 
19287
- # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#35
19300
+ # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#38
19288
19301
  RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::MSG = T.let(T.unsafe(nil), String)
19289
19302
 
19290
- # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#36
19303
+ # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#39
19291
19304
  RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
19292
19305
 
19293
19306
  # Checks for `private` or `protected` access modifiers which are
@@ -19479,7 +19492,7 @@ RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String)
19479
19492
  # Checks uses of lambda without a literal block.
19480
19493
  # It emulates the following warning in Ruby 3.0:
19481
19494
  #
19482
- # % ruby -vwe 'lambda(&proc {})'
19495
+ # $ ruby -vwe 'lambda(&proc {})'
19483
19496
  # ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19]
19484
19497
  # -e:1: warning: lambda without a literal block is deprecated; use the proc without
19485
19498
  # lambda instead
@@ -20701,13 +20714,13 @@ RuboCop::Cop::Lint::NumberConversion::MSG = T.let(T.unsafe(nil), String)
20701
20714
  # Checks for uses of numbered parameter assignment.
20702
20715
  # It emulates the following warning in Ruby 2.7:
20703
20716
  #
20704
- # % ruby -ve '_1 = :value'
20717
+ # $ ruby -ve '_1 = :value'
20705
20718
  # ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
20706
20719
  # -e:1: warning: `_1' is reserved for numbered parameter; consider another name
20707
20720
  #
20708
20721
  # Assigning to a numbered parameter (from `_1` to `_9`) causes an error in Ruby 3.0.
20709
20722
  #
20710
- # % ruby -ve '_1 = :value'
20723
+ # $ ruby -ve '_1 = :value'
20711
20724
  # ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19]
20712
20725
  # -e:1: _1 is reserved for numbered parameter
20713
20726
  #
@@ -23181,27 +23194,39 @@ RuboCop::Cop::Lint::ToJSON::MSG = T.let(T.unsafe(nil), String)
23181
23194
  # always ignored. This is detected automatically since Ruby 2.7.
23182
23195
  #
23183
23196
  # @example
23197
+ # # bad
23198
+ # return 1
23184
23199
  #
23185
- # # Detected since Ruby 2.7
23186
- # return 1 # 1 is always ignored.
23200
+ # # good
23201
+ # return
23187
23202
  #
23188
- # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#14
23203
+ # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#16
23189
23204
  class RuboCop::Cop::Lint::TopLevelReturnWithArgument < ::RuboCop::Cop::Base
23205
+ extend ::RuboCop::Cop::AutoCorrector
23206
+
23190
23207
  # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#21
23191
23208
  def on_return(return_node); end
23192
23209
 
23193
23210
  private
23194
23211
 
23212
+ # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#35
23213
+ def remove_arguments(corrector, return_node); end
23214
+
23215
+ # This cop works by validating the ancestors of the return node. A
23216
+ # top-level return node's ancestors should not be of block, def, or
23217
+ # defs type.
23218
+ #
23219
+ # @return [Boolean]
23220
+ #
23221
+ # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#42
23222
+ def top_level_return?(return_node); end
23223
+
23195
23224
  # @return [Boolean]
23196
23225
  #
23197
- # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#27
23198
- def ancestors_valid?(return_node); end
23226
+ # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#31
23227
+ def top_level_return_with_any_argument?(return_node); end
23199
23228
  end
23200
23229
 
23201
- # This cop works by validating the ancestors of the return node. A
23202
- # top-level return node's ancestors should not be of block, def, or
23203
- # defs type.
23204
- #
23205
23230
  # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#19
23206
23231
  RuboCop::Cop::Lint::TopLevelReturnWithArgument::MSG = T.let(T.unsafe(nil), String)
23207
23232
 
@@ -24327,49 +24352,70 @@ RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String)
24327
24352
  # do_something(some_var)
24328
24353
  # end
24329
24354
  #
24330
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#33
24355
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#39
24331
24356
  class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base
24332
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#40
24357
+ include ::RuboCop::Cop::RangeHelp
24358
+ extend ::RuboCop::Cop::AutoCorrector
24359
+
24360
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#50
24333
24361
  def after_leaving_scope(scope, _variable_table); end
24334
24362
 
24335
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#44
24363
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#135
24364
+ def autocorrect(corrector, assignment); end
24365
+
24366
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#54
24336
24367
  def check_for_unused_assignments(variable); end
24337
24368
 
24338
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#108
24369
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#120
24339
24370
  def collect_variable_like_names(scope); end
24340
24371
 
24341
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#62
24372
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#74
24342
24373
  def message_for_useless_assignment(assignment); end
24343
24374
 
24344
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#68
24375
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#80
24345
24376
  def message_specification(assignment, variable); end
24346
24377
 
24347
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#78
24378
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#90
24348
24379
  def multiple_assignment_message(variable_name); end
24349
24380
 
24350
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#83
24381
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#95
24351
24382
  def operator_assignment_message(scope, assignment); end
24352
24383
 
24384
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#150
24385
+ def remove_exception_assignment_part(corrector, node); end
24386
+
24387
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#174
24388
+ def remove_local_variable_assignment_part(corrector, node); end
24389
+
24390
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#163
24391
+ def remove_trailing_character_from_operator(corrector, node); end
24392
+
24393
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#159
24394
+ def rename_variable_with_underscore(corrector, node); end
24395
+
24396
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#167
24397
+ def replace_named_capture_group_with_non_capturing_group(corrector, node, variable_name); end
24398
+
24353
24399
  # TODO: More precise handling (rescue, ensure, nested begin, etc.)
24354
24400
  #
24355
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#98
24401
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#110
24356
24402
  def return_value_node_of_scope(scope); end
24357
24403
 
24358
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#91
24404
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#103
24359
24405
  def similar_name_message(variable); end
24360
24406
 
24361
24407
  # @return [Boolean]
24362
24408
  #
24363
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#117
24409
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#129
24364
24410
  def variable_like_method_invocation?(node); end
24365
24411
 
24366
24412
  class << self
24367
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#36
24413
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#46
24368
24414
  def joining_forces; end
24369
24415
  end
24370
24416
  end
24371
24417
 
24372
- # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#34
24418
+ # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#44
24373
24419
  RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String)
24374
24420
 
24375
24421
  # Checks for useless `else` in `begin..end` without `rescue`.
@@ -24816,87 +24862,108 @@ RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
24816
24862
  #
24817
24863
  # source://rubocop//lib/rubocop/cop/lint/void.rb#43
24818
24864
  class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base
24819
- # source://rubocop//lib/rubocop/cop/lint/void.rb#76
24865
+ include ::RuboCop::Cop::RangeHelp
24866
+ extend ::RuboCop::Cop::AutoCorrector
24867
+
24868
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#80
24820
24869
  def on_begin(node); end
24821
24870
 
24822
- # source://rubocop//lib/rubocop/cop/lint/void.rb#67
24871
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#71
24823
24872
  def on_block(node); end
24824
24873
 
24825
- # source://rubocop//lib/rubocop/cop/lint/void.rb#76
24874
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#80
24826
24875
  def on_kwbegin(node); end
24827
24876
 
24828
- # source://rubocop//lib/rubocop/cop/lint/void.rb#67
24877
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#71
24829
24878
  def on_numblock(node); end
24830
24879
 
24831
24880
  private
24832
24881
 
24833
- # source://rubocop//lib/rubocop/cop/lint/void.rb#83
24882
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#200
24883
+ def autocorrect_nonmutating_send(corrector, node, suggestion); end
24884
+
24885
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#196
24886
+ def autocorrect_void_expression(corrector, node); end
24887
+
24888
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#188
24889
+ def autocorrect_void_literal(corrector, node); end
24890
+
24891
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#172
24892
+ def autocorrect_void_op(corrector, node); end
24893
+
24894
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#192
24895
+ def autocorrect_void_self(corrector, node); end
24896
+
24897
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#184
24898
+ def autocorrect_void_var(corrector, node); end
24899
+
24900
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#87
24834
24901
  def check_begin(node); end
24835
24902
 
24836
- # source://rubocop//lib/rubocop/cop/lint/void.rb#89
24903
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#93
24837
24904
  def check_expression(expr); end
24838
24905
 
24839
- # source://rubocop//lib/rubocop/cop/lint/void.rb#112
24906
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#122
24840
24907
  def check_literal(node); end
24841
24908
 
24842
- # source://rubocop//lib/rubocop/cop/lint/void.rb#130
24909
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#146
24843
24910
  def check_nonmutating(node); end
24844
24911
 
24845
- # source://rubocop//lib/rubocop/cop/lint/void.rb#118
24912
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#130
24846
24913
  def check_self(node); end
24847
24914
 
24848
- # source://rubocop//lib/rubocop/cop/lint/void.rb#106
24915
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#113
24849
24916
  def check_var(node); end
24850
24917
 
24851
- # source://rubocop//lib/rubocop/cop/lint/void.rb#124
24918
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#138
24852
24919
  def check_void_expression(node); end
24853
24920
 
24854
- # source://rubocop//lib/rubocop/cop/lint/void.rb#100
24921
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#104
24855
24922
  def check_void_op(node); end
24856
24923
 
24857
24924
  # @return [Boolean]
24858
24925
  #
24859
- # source://rubocop//lib/rubocop/cop/lint/void.rb#145
24926
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#164
24860
24927
  def in_void_context?(node); end
24861
24928
  end
24862
24929
 
24863
- # source://rubocop//lib/rubocop/cop/lint/void.rb#51
24930
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#55
24864
24931
  RuboCop::Cop::Lint::Void::BINARY_OPERATORS = T.let(T.unsafe(nil), Array)
24865
24932
 
24866
- # source://rubocop//lib/rubocop/cop/lint/void.rb#48
24933
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#52
24867
24934
  RuboCop::Cop::Lint::Void::EXPRESSION_MSG = T.let(T.unsafe(nil), String)
24868
24935
 
24869
- # source://rubocop//lib/rubocop/cop/lint/void.rb#46
24936
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#50
24870
24937
  RuboCop::Cop::Lint::Void::LIT_MSG = T.let(T.unsafe(nil), String)
24871
24938
 
24872
- # source://rubocop//lib/rubocop/cop/lint/void.rb#62
24939
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#66
24873
24940
  RuboCop::Cop::Lint::Void::METHODS_REPLACEABLE_BY_EACH = T.let(T.unsafe(nil), Array)
24874
24941
 
24875
- # source://rubocop//lib/rubocop/cop/lint/void.rb#64
24942
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#68
24876
24943
  RuboCop::Cop::Lint::Void::NONMUTATING_METHODS = T.let(T.unsafe(nil), Array)
24877
24944
 
24878
- # source://rubocop//lib/rubocop/cop/lint/void.rb#55
24945
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#59
24879
24946
  RuboCop::Cop::Lint::Void::NONMUTATING_METHODS_WITH_BANG_VERSION = T.let(T.unsafe(nil), Array)
24880
24947
 
24881
- # source://rubocop//lib/rubocop/cop/lint/void.rb#49
24948
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#53
24882
24949
  RuboCop::Cop::Lint::Void::NONMUTATING_MSG = T.let(T.unsafe(nil), String)
24883
24950
 
24884
- # source://rubocop//lib/rubocop/cop/lint/void.rb#53
24951
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#57
24885
24952
  RuboCop::Cop::Lint::Void::OPERATORS = T.let(T.unsafe(nil), Array)
24886
24953
 
24887
- # source://rubocop//lib/rubocop/cop/lint/void.rb#44
24954
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#48
24888
24955
  RuboCop::Cop::Lint::Void::OP_MSG = T.let(T.unsafe(nil), String)
24889
24956
 
24890
- # source://rubocop//lib/rubocop/cop/lint/void.rb#47
24957
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#51
24891
24958
  RuboCop::Cop::Lint::Void::SELF_MSG = T.let(T.unsafe(nil), String)
24892
24959
 
24893
- # source://rubocop//lib/rubocop/cop/lint/void.rb#52
24960
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#56
24894
24961
  RuboCop::Cop::Lint::Void::UNARY_OPERATORS = T.let(T.unsafe(nil), Array)
24895
24962
 
24896
- # source://rubocop//lib/rubocop/cop/lint/void.rb#45
24963
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#49
24897
24964
  RuboCop::Cop::Lint::Void::VAR_MSG = T.let(T.unsafe(nil), String)
24898
24965
 
24899
- # source://rubocop//lib/rubocop/cop/lint/void.rb#54
24966
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#58
24900
24967
  RuboCop::Cop::Lint::Void::VOID_CONTEXT_TYPES = T.let(T.unsafe(nil), Array)
24901
24968
 
24902
24969
  # Common functionality for obtaining source ranges from regexp matches
@@ -27432,54 +27499,55 @@ end
27432
27499
  # @_foo ||= calculate_expensive_thing
27433
27500
  # end
27434
27501
  #
27435
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#147
27502
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#148
27436
27503
  class RuboCop::Cop::Naming::MemoizedInstanceVariableName < ::RuboCop::Cop::Base
27437
27504
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
27505
+ extend ::RuboCop::Cop::AutoCorrector
27438
27506
 
27439
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#189
27507
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#197
27440
27508
  def defined_memoized?(param0 = T.unsafe(nil), param1); end
27441
27509
 
27442
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#157
27510
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#160
27443
27511
  def method_definition?(param0 = T.unsafe(nil)); end
27444
27512
 
27445
27513
  # @return [Boolean]
27446
27514
  #
27447
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#197
27515
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#205
27448
27516
  def on_defined?(node); end
27449
27517
 
27450
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#166
27518
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#170
27451
27519
  def on_or_asgn(node); end
27452
27520
 
27453
27521
  private
27454
27522
 
27455
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#227
27523
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#242
27456
27524
  def find_definition(node); end
27457
27525
 
27458
27526
  # @return [Boolean]
27459
27527
  #
27460
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#238
27528
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#253
27461
27529
  def matches?(method_name, ivar_assign); end
27462
27530
 
27463
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#248
27531
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#263
27464
27532
  def message(variable); end
27465
27533
 
27466
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#223
27534
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#238
27467
27535
  def style_parameter_name; end
27468
27536
 
27469
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#256
27537
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#271
27470
27538
  def suggested_var(method_name); end
27471
27539
 
27472
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#262
27540
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#277
27473
27541
  def variable_name_candidates(method_name); end
27474
27542
  end
27475
27543
 
27476
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#154
27544
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#157
27477
27545
  RuboCop::Cop::Naming::MemoizedInstanceVariableName::DYNAMIC_DEFINE_METHODS = T.let(T.unsafe(nil), Set)
27478
27546
 
27479
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#150
27547
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#153
27480
27548
  RuboCop::Cop::Naming::MemoizedInstanceVariableName::MSG = T.let(T.unsafe(nil), String)
27481
27549
 
27482
- # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#152
27550
+ # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#155
27483
27551
  RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let(T.unsafe(nil), String)
27484
27552
 
27485
27553
  # Makes sure that all methods use the configured style,
@@ -27751,36 +27819,39 @@ class RuboCop::Cop::Naming::RescuedExceptionsVariableName < ::RuboCop::Cop::Base
27751
27819
 
27752
27820
  private
27753
27821
 
27754
- # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#108
27822
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#96
27823
+ def autocorrect(corrector, node, range, offending_name, preferred_name); end
27824
+
27825
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#116
27755
27826
  def correct_node(corrector, node, offending_name, preferred_name); end
27756
27827
 
27757
27828
  # If the exception variable is reassigned, that assignment needs to be corrected.
27758
27829
  # Further `lvar` nodes will not be corrected though since they now refer to a
27759
27830
  # different variable.
27760
27831
  #
27761
- # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#126
27832
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#134
27762
27833
  def correct_reassignment(corrector, node, offending_name, preferred_name); end
27763
27834
 
27764
- # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#151
27835
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#159
27765
27836
  def message(node); end
27766
27837
 
27767
- # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#93
27838
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#91
27768
27839
  def offense_range(resbody); end
27769
27840
 
27770
- # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#135
27841
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#143
27771
27842
  def preferred_name(variable_name); end
27772
27843
 
27773
27844
  # @return [Boolean]
27774
27845
  #
27775
- # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#157
27846
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#165
27776
27847
  def shadowed_variable_name?(node); end
27777
27848
 
27778
- # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#144
27849
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#152
27779
27850
  def variable_name(node); end
27780
27851
 
27781
27852
  # @return [Boolean]
27782
27853
  #
27783
- # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#98
27854
+ # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#106
27784
27855
  def variable_name_matches?(node, name); end
27785
27856
  end
27786
27857
 
@@ -30438,7 +30509,7 @@ class RuboCop::Cop::Style::Attr < ::RuboCop::Cop::Base
30438
30509
  include ::RuboCop::Cop::RangeHelp
30439
30510
  extend ::RuboCop::Cop::AutoCorrector
30440
30511
 
30441
- # source://rubocop//lib/rubocop/cop/style/attr.rb#64
30512
+ # source://rubocop//lib/rubocop/cop/style/attr.rb#74
30442
30513
  def class_eval?(param0 = T.unsafe(nil)); end
30443
30514
 
30444
30515
  # source://rubocop//lib/rubocop/cop/style/attr.rb#24
@@ -30446,13 +30517,23 @@ class RuboCop::Cop::Style::Attr < ::RuboCop::Cop::Base
30446
30517
 
30447
30518
  private
30448
30519
 
30520
+ # @return [Boolean]
30521
+ #
30449
30522
  # source://rubocop//lib/rubocop/cop/style/attr.rb#37
30523
+ def allowed_context?(node); end
30524
+
30525
+ # source://rubocop//lib/rubocop/cop/style/attr.rb#47
30450
30526
  def autocorrect(corrector, node); end
30451
30527
 
30452
- # source://rubocop//lib/rubocop/cop/style/attr.rb#49
30528
+ # @return [Boolean]
30529
+ #
30530
+ # source://rubocop//lib/rubocop/cop/style/attr.rb#43
30531
+ def define_attr_method?(node); end
30532
+
30533
+ # source://rubocop//lib/rubocop/cop/style/attr.rb#59
30453
30534
  def message(node); end
30454
30535
 
30455
- # source://rubocop//lib/rubocop/cop/style/attr.rb#53
30536
+ # source://rubocop//lib/rubocop/cop/style/attr.rb#63
30456
30537
  def replacement_method(node); end
30457
30538
  end
30458
30539
 
@@ -31800,7 +31881,9 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
31800
31881
  # @example
31801
31882
  # # bad
31802
31883
  # array.reject(&:nil?)
31884
+ # array.delete_if(&:nil?)
31803
31885
  # array.reject { |e| e.nil? }
31886
+ # array.delete_if { |e| e.nil? }
31804
31887
  # array.select { |e| !e.nil? }
31805
31888
  #
31806
31889
  # # good
@@ -31814,48 +31897,48 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
31814
31897
  # # good
31815
31898
  # hash.compact!
31816
31899
  #
31817
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#36
31900
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#38
31818
31901
  class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base
31819
31902
  include ::RuboCop::Cop::RangeHelp
31820
31903
  extend ::RuboCop::Cop::AutoCorrector
31821
31904
  extend ::RuboCop::Cop::TargetRubyVersion
31822
31905
 
31823
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#75
31906
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#77
31824
31907
  def on_send(node); end
31825
31908
 
31826
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#55
31909
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#57
31827
31910
  def reject_method?(param0 = T.unsafe(nil)); end
31828
31911
 
31829
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#48
31912
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#50
31830
31913
  def reject_method_with_block_pass?(param0 = T.unsafe(nil)); end
31831
31914
 
31832
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#65
31915
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#67
31833
31916
  def select_method?(param0 = T.unsafe(nil)); end
31834
31917
 
31835
31918
  private
31836
31919
 
31837
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#109
31920
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#113
31838
31921
  def good_method_name(node); end
31839
31922
 
31840
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#87
31923
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#91
31841
31924
  def offense_range(node); end
31842
31925
 
31843
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#117
31926
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#121
31844
31927
  def range(begin_pos_node, end_pos_node); end
31845
31928
 
31846
31929
  # @return [Boolean]
31847
31930
  #
31848
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#103
31931
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#107
31849
31932
  def to_enum_method?(node); end
31850
31933
  end
31851
31934
 
31852
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#41
31935
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#43
31853
31936
  RuboCop::Cop::Style::CollectionCompact::MSG = T.let(T.unsafe(nil), String)
31854
31937
 
31855
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#42
31938
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#44
31856
31939
  RuboCop::Cop::Style::CollectionCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
31857
31940
 
31858
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#43
31941
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#45
31859
31942
  RuboCop::Cop::Style::CollectionCompact::TO_ENUM_METHODS = T.let(T.unsafe(nil), Array)
31860
31943
 
31861
31944
  # Enforces the use of consistent method names
@@ -31925,8 +32008,8 @@ end
31925
32008
  # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#45
31926
32009
  RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String)
31927
32010
 
31928
- # Checks for methods invoked via the :: operator instead
31929
- # of the . operator (like FileUtils::rmdir instead of FileUtils.rmdir).
32011
+ # Checks for methods invoked via the `::` operator instead
32012
+ # of the `.` operator (like `FileUtils::rmdir` instead of `FileUtils.rmdir`).
31930
32013
  #
31931
32014
  # @example
31932
32015
  # # bad
@@ -32036,29 +32119,40 @@ RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String)
32036
32119
  #
32037
32120
  # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#59
32038
32121
  class RuboCop::Cop::Style::CombinableLoops < ::RuboCop::Cop::Base
32039
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#62
32122
+ include ::RuboCop::Cop::RangeHelp
32123
+ extend ::RuboCop::Cop::AutoCorrector
32124
+
32125
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#66
32040
32126
  def on_block(node); end
32041
32127
 
32042
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#71
32128
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#78
32043
32129
  def on_for(node); end
32044
32130
 
32045
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#62
32131
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#66
32046
32132
  def on_numblock(node); end
32047
32133
 
32048
32134
  private
32049
32135
 
32050
32136
  # @return [Boolean]
32051
32137
  #
32052
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#80
32138
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#89
32053
32139
  def collection_looping_method?(node); end
32054
32140
 
32141
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#105
32142
+ def combine_with_left_sibling(corrector, node); end
32143
+
32144
+ # @return [Boolean]
32145
+ #
32146
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#94
32147
+ def same_collection_looping_block?(node, sibling); end
32148
+
32055
32149
  # @return [Boolean]
32056
32150
  #
32057
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#86
32058
- def same_collection_looping?(node, sibling); end
32151
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#101
32152
+ def same_collection_looping_for?(node, sibling); end
32059
32153
  end
32060
32154
 
32061
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#60
32155
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#64
32062
32156
  RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String)
32063
32157
 
32064
32158
  # Enforces using `` or %x around command literals.
@@ -32928,53 +33022,53 @@ end
32928
33022
  # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#48
32929
33023
  RuboCop::Cop::Style::ConstantVisibility::MSG = T.let(T.unsafe(nil), String)
32930
33024
 
32931
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#18
33025
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#21
32932
33026
  class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base
32933
33027
  include ::RuboCop::Cop::RangeHelp
32934
33028
  extend ::RuboCop::Cop::AutoCorrector
32935
33029
 
32936
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#25
33030
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#28
32937
33031
  def on_new_investigation; end
32938
33032
 
32939
33033
  private
32940
33034
 
32941
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#44
33035
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#47
32942
33036
  def autocorrect_notice; end
32943
33037
 
32944
33038
  # @return [Boolean]
32945
33039
  #
32946
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#75
33040
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#78
32947
33041
  def encoding_token?(processed_source, token_index); end
32948
33042
 
32949
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#61
33043
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#64
32950
33044
  def insert_notice_before(processed_source); end
32951
33045
 
32952
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#40
33046
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#43
32953
33047
  def notice; end
32954
33048
 
32955
33049
  # @return [Boolean]
32956
33050
  #
32957
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#82
33051
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#85
32958
33052
  def notice_found?(processed_source); end
32959
33053
 
32960
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#48
33054
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#51
32961
33055
  def offense_range; end
32962
33056
 
32963
33057
  # @return [Boolean]
32964
33058
  #
32965
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#68
33059
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#71
32966
33060
  def shebang_token?(processed_source, token_index); end
32967
33061
 
32968
33062
  # @raise [Warning]
32969
33063
  #
32970
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#52
33064
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#55
32971
33065
  def verify_autocorrect_notice!; end
32972
33066
  end
32973
33067
 
32974
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#23
33068
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#26
32975
33069
  RuboCop::Cop::Style::Copyright::AUTOCORRECT_EMPTY_WARNING = T.let(T.unsafe(nil), String)
32976
33070
 
32977
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#22
33071
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#25
32978
33072
  RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String)
32979
33073
 
32980
33074
  # Checks for inheritance from `Data.define` to avoid creating the anonymous parent class.
@@ -34799,6 +34893,47 @@ RuboCop::Cop::Style::EvenOdd::MSG = T.let(T.unsafe(nil), String)
34799
34893
  # source://rubocop//lib/rubocop/cop/style/even_odd.rb#22
34800
34894
  RuboCop::Cop::Style::EvenOdd::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
34801
34895
 
34896
+ # Checks for exact regexp match inside Regexp literals.
34897
+ #
34898
+ # @example
34899
+ #
34900
+ # # bad
34901
+ # string =~ /\Astring\z/
34902
+ # string === /\Astring\z/
34903
+ # string.match(/\Astring\z/)
34904
+ # string.match?(/\Astring\z/)
34905
+ #
34906
+ # # good
34907
+ # string == 'string'
34908
+ #
34909
+ # # bad
34910
+ # string !~ /\Astring\z/
34911
+ #
34912
+ # # good
34913
+ # string != 'string'
34914
+ #
34915
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#25
34916
+ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base
34917
+ extend ::RuboCop::Cop::AutoCorrector
34918
+
34919
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#32
34920
+ def exact_regexp_match(param0 = T.unsafe(nil)); end
34921
+
34922
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40
34923
+ def on_send(node); end
34924
+
34925
+ private
34926
+
34927
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#56
34928
+ def new_method(node); end
34929
+ end
34930
+
34931
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#28
34932
+ RuboCop::Cop::Style::ExactRegexpMatch::MSG = T.let(T.unsafe(nil), String)
34933
+
34934
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#29
34935
+ RuboCop::Cop::Style::ExactRegexpMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
34936
+
34802
34937
  # Checks for use of the `File.expand_path` arguments.
34803
34938
  # Likewise, it also checks for the `Pathname.new` argument.
34804
34939
  #
@@ -36088,28 +36223,28 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base
36088
36223
 
36089
36224
  # @return [Boolean]
36090
36225
  #
36091
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#247
36226
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#249
36092
36227
  def accepted_form?(node, ending: T.unsafe(nil)); end
36093
36228
 
36094
36229
  # @return [Boolean]
36095
36230
  #
36096
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#255
36231
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#257
36097
36232
  def accepted_if?(node, ending); end
36098
36233
 
36099
36234
  # @return [Boolean]
36100
36235
  #
36101
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#269
36236
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#271
36102
36237
  def allowed_consecutive_conditionals?; end
36103
36238
 
36104
36239
  # @return [Boolean]
36105
36240
  #
36106
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#237
36241
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#239
36107
36242
  def and_or_guard_clause?(guard_clause); end
36108
36243
 
36109
36244
  # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#184
36110
36245
  def autocorrect(corrector, node, condition, replacement, guard); end
36111
36246
 
36112
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#208
36247
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#210
36113
36248
  def autocorrect_heredoc_argument(corrector, node, heredoc_branch, leave_branch, guard); end
36114
36249
 
36115
36250
  # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#133
@@ -36123,31 +36258,31 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base
36123
36258
  # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#154
36124
36259
  def consecutive_conditionals?(parent, node); end
36125
36260
 
36126
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#229
36261
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#231
36127
36262
  def guard_clause_source(guard_clause); end
36128
36263
 
36129
36264
  # @return [Boolean]
36130
36265
  #
36131
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#204
36266
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#206
36132
36267
  def heredoc?(argument); end
36133
36268
 
36134
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#220
36269
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#222
36135
36270
  def range_of_branch_to_remove(node, guard); end
36136
36271
 
36137
36272
  # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#162
36138
36273
  def register_offense(node, scope_exiting_keyword, conditional_keyword, guard = T.unsafe(nil)); end
36139
36274
 
36140
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#265
36275
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#267
36141
36276
  def remove_whole_lines(corrector, range); end
36142
36277
 
36143
36278
  # @return [Boolean]
36144
36279
  #
36145
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#242
36280
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#244
36146
36281
  def too_long_for_single_line?(node, example); end
36147
36282
 
36148
36283
  # @return [Boolean]
36149
36284
  #
36150
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#251
36285
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#253
36151
36286
  def trivial?(node); end
36152
36287
  end
36153
36288
 
@@ -36429,42 +36564,42 @@ class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base
36429
36564
 
36430
36565
  # @return [Boolean]
36431
36566
  #
36432
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#92
36567
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#93
36433
36568
  def bad_method?(block); end
36434
36569
 
36435
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#154
36570
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#165
36436
36571
  def decorate_source(value); end
36437
36572
 
36438
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#162
36573
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#173
36439
36574
  def except_key(node); end
36440
36575
 
36441
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#141
36576
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#152
36442
36577
  def except_key_source(key); end
36443
36578
 
36444
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#135
36579
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#146
36445
36580
  def extract_body_if_negated(body); end
36446
36581
 
36447
36582
  # @return [Boolean]
36448
36583
  #
36449
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#116
36584
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#127
36450
36585
  def included?(negated, body); end
36451
36586
 
36452
36587
  # @return [Boolean]
36453
36588
  #
36454
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#120
36589
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#131
36455
36590
  def not_included?(negated, body); end
36456
36591
 
36457
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#171
36592
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#182
36458
36593
  def offense_range(node); end
36459
36594
 
36460
36595
  # @return [Boolean]
36461
36596
  #
36462
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#124
36597
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#135
36463
36598
  def safe_to_register_offense?(block, except_key); end
36464
36599
 
36465
36600
  # @return [Boolean]
36466
36601
  #
36467
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#100
36602
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#111
36468
36603
  def semantically_except_method?(send, block); end
36469
36604
  end
36470
36605
 
@@ -37020,43 +37155,43 @@ class RuboCop::Cop::Style::IfInsideElse < ::RuboCop::Cop::Base
37020
37155
  include ::RuboCop::Cop::RangeHelp
37021
37156
  extend ::RuboCop::Cop::AutoCorrector
37022
37157
 
37023
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#67
37158
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#69
37024
37159
  def on_if(node); end
37025
37160
 
37026
37161
  private
37027
37162
 
37028
37163
  # @return [Boolean]
37029
37164
  #
37030
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#144
37165
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#150
37031
37166
  def allow_if_modifier?; end
37032
37167
 
37033
37168
  # @return [Boolean]
37034
37169
  #
37035
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#140
37170
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#146
37036
37171
  def allow_if_modifier_in_else_branch?(else_branch); end
37037
37172
 
37038
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#82
37173
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#88
37039
37174
  def autocorrect(corrector, node); end
37040
37175
 
37041
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#111
37176
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#117
37042
37177
  def correct_to_elsif_from_if_inside_else_form(corrector, node, condition); end
37043
37178
 
37044
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#103
37179
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#109
37045
37180
  def correct_to_elsif_from_modifier_form(corrector, node); end
37046
37181
 
37047
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#129
37182
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#135
37048
37183
  def find_end_range(node); end
37049
37184
 
37050
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#136
37185
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#142
37051
37186
  def if_condition_range(node, condition); end
37052
37187
 
37053
37188
  # @return [Boolean]
37054
37189
  #
37055
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#125
37190
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#131
37056
37191
  def then?(node); end
37057
37192
  end
37058
37193
 
37059
- # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#65
37194
+ # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#66
37060
37195
  RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String)
37061
37196
 
37062
37197
  # Checks for `if` and `unless` statements that would fit on one line if
@@ -37132,103 +37267,103 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base
37132
37267
 
37133
37268
  private
37134
37269
 
37135
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#168
37270
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#171
37136
37271
  def allowed_patterns; end
37137
37272
 
37138
37273
  # @return [Boolean]
37139
37274
  #
37140
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#228
37275
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#231
37141
37276
  def another_statement_on_same_line?(node); end
37142
37277
 
37143
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#129
37278
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#132
37144
37279
  def autocorrect(corrector, node); end
37145
37280
 
37146
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#282
37281
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#285
37147
37282
  def comment_on_node_line(node); end
37148
37283
 
37149
37284
  # @return [Boolean]
37150
37285
  #
37151
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#101
37286
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#104
37152
37287
  def defined_argument_is_undefined?(if_node, defined_node); end
37153
37288
 
37154
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#93
37289
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#96
37155
37290
  def defined_nodes(condition); end
37156
37291
 
37157
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#269
37292
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#272
37158
37293
  def extract_heredoc_from(last_argument); end
37159
37294
 
37160
37295
  # @return [Boolean]
37161
37296
  #
37162
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#212
37297
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#215
37163
37298
  def line_length_enabled_at_line?(line); end
37164
37299
 
37165
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#121
37300
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#124
37166
37301
  def message(node); end
37167
37302
 
37168
37303
  # @return [Boolean]
37169
37304
  #
37170
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#216
37305
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#219
37171
37306
  def named_capture_in_condition?(node); end
37172
37307
 
37173
37308
  # @return [Boolean]
37174
37309
  #
37175
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#220
37310
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#223
37176
37311
  def non_eligible_node?(node); end
37177
37312
 
37178
37313
  # @return [Boolean]
37179
37314
  #
37180
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#224
37315
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#227
37181
37316
  def non_simple_if_unless?(node); end
37182
37317
 
37183
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#111
37318
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#114
37184
37319
  def pattern_matching_nodes(condition); end
37185
37320
 
37186
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#286
37321
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#289
37187
37322
  def remove_comment(corrector, _node, comment); end
37188
37323
 
37189
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#276
37324
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#279
37190
37325
  def remove_heredoc(corrector, heredoc); end
37191
37326
 
37192
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#138
37327
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#141
37193
37328
  def replacement_for_modifier_form(corrector, node); end
37194
37329
 
37195
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#262
37330
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#265
37196
37331
  def to_modifier_form_with_move_comment(node, indentation, comment); end
37197
37332
 
37198
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#242
37333
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#245
37199
37334
  def to_normal_form(node, indentation); end
37200
37335
 
37201
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#250
37336
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#253
37202
37337
  def to_normal_form_with_heredoc(node, indentation, heredoc); end
37203
37338
 
37204
37339
  # @return [Boolean]
37205
37340
  #
37206
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#162
37341
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#165
37207
37342
  def too_long_due_to_comment_after_modifier?(node, comment); end
37208
37343
 
37209
37344
  # @return [Boolean]
37210
37345
  #
37211
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#157
37346
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#160
37212
37347
  def too_long_due_to_modifier?(node); end
37213
37348
 
37214
37349
  # @return [Boolean]
37215
37350
  #
37216
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#203
37351
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#206
37217
37352
  def too_long_line_based_on_allow_uri?(line); end
37218
37353
 
37219
37354
  # @return [Boolean]
37220
37355
  #
37221
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#186
37356
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#189
37222
37357
  def too_long_line_based_on_config?(range, line); end
37223
37358
 
37224
37359
  # @return [Boolean]
37225
37360
  #
37226
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#195
37361
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#198
37227
37362
  def too_long_line_based_on_ignore_cop_directives?(range, line); end
37228
37363
 
37229
37364
  # @return [Boolean]
37230
37365
  #
37231
- # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#173
37366
+ # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#176
37232
37367
  def too_long_single_line?(node); end
37233
37368
 
37234
37369
  class << self
@@ -37718,12 +37853,16 @@ RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
37718
37853
  # Methods that can be inverted should be defined in `InverseMethods`. Note that
37719
37854
  # the relationship of inverse methods needs to be defined in both directions.
37720
37855
  # For example,
37721
- # InverseMethods:
37722
- # :!=: :==
37723
- # :even?: :odd?
37724
- # :odd?: :even?
37725
37856
  #
37726
- # will suggest both `even?` and `odd?` to be inverted, but only `!=` (and not `==`).
37857
+ # [source,yaml]
37858
+ # ----
37859
+ # InverseMethods:
37860
+ # :!=: :==
37861
+ # :even?: :odd?
37862
+ # :odd?: :even?
37863
+ # ----
37864
+ #
37865
+ # will suggest both `even?` and `odd?` to be inverted, but only `!=` (and not `==`).
37727
37866
  #
37728
37867
  # @example
37729
37868
  # # bad (simple condition)
@@ -37747,36 +37886,36 @@ RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
37747
37886
  # # good (if)
37748
37887
  # foo if !condition
37749
37888
  #
37750
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#47
37889
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#51
37751
37890
  class RuboCop::Cop::Style::InvertibleUnlessCondition < ::RuboCop::Cop::Base
37752
37891
  extend ::RuboCop::Cop::AutoCorrector
37753
37892
 
37754
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#52
37893
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#56
37755
37894
  def on_if(node); end
37756
37895
 
37757
37896
  private
37758
37897
 
37759
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#87
37898
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#91
37760
37899
  def autocorrect(corrector, node); end
37761
37900
 
37762
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#100
37901
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#104
37763
37902
  def autocorrect_send_node(corrector, node); end
37764
37903
 
37765
37904
  # @return [Boolean]
37766
37905
  #
37767
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#81
37906
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#85
37768
37907
  def inheritance_check?(node); end
37769
37908
 
37770
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#108
37909
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#112
37771
37910
  def inverse_methods; end
37772
37911
 
37773
37912
  # @return [Boolean]
37774
37913
  #
37775
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#66
37914
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#70
37776
37915
  def invertible?(node); end
37777
37916
  end
37778
37917
 
37779
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#50
37918
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#54
37780
37919
  RuboCop::Cop::Style::InvertibleUnlessCondition::MSG = T.let(T.unsafe(nil), String)
37781
37920
 
37782
37921
  # Checks for hardcoded IP addresses, which can make code
@@ -44140,42 +44279,42 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
44140
44279
  include ::RuboCop::Cop::MatchRange
44141
44280
  extend ::RuboCop::Cop::AutoCorrector
44142
44281
 
44143
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#74
44282
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#78
44144
44283
  def on_new_investigation; end
44145
44284
 
44146
44285
  private
44147
44286
 
44148
44287
  # @return [Boolean]
44149
44288
  #
44150
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#162
44289
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#166
44151
44290
  def argument_is_method?(node); end
44152
44291
 
44153
44292
  # @return [Boolean]
44154
44293
  #
44155
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#130
44294
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#134
44156
44295
  def argument_newline?(node); end
44157
44296
 
44158
44297
  # @return [Boolean]
44159
44298
  #
44160
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#96
44299
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#100
44161
44300
  def ends_with_backslash_without_comment?(source_line); end
44162
44301
 
44163
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#142
44302
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#146
44164
44303
  def find_node_for_line(line); end
44165
44304
 
44166
44305
  # @return [Boolean]
44167
44306
  #
44168
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#118
44307
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#122
44169
44308
  def inside_string_literal?(range, token); end
44170
44309
 
44171
44310
  # @return [Boolean]
44172
44311
  #
44173
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#104
44312
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#108
44174
44313
  def inside_string_literal_or_method_with_argument?(range); end
44175
44314
 
44176
44315
  # @return [Boolean]
44177
44316
  #
44178
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#169
44317
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#173
44179
44318
  def method_call_with_arguments?(node); end
44180
44319
 
44181
44320
  # A method call without parentheses such as the following cannot remove `\`:
@@ -44185,38 +44324,41 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
44185
44324
  #
44186
44325
  # @return [Boolean]
44187
44326
  #
44188
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#126
44327
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#130
44189
44328
  def method_with_argument?(current_token, next_token); end
44190
44329
 
44191
44330
  # @return [Boolean]
44192
44331
  #
44193
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#110
44332
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#114
44194
44333
  def redundant_line_continuation?(range); end
44195
44334
 
44196
44335
  # @return [Boolean]
44197
44336
  #
44198
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#89
44337
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#93
44199
44338
  def require_line_continuation?(range); end
44200
44339
 
44201
44340
  # @return [Boolean]
44202
44341
  #
44203
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#148
44342
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#152
44204
44343
  def same_line?(node, line); end
44205
44344
 
44206
44345
  # @return [Boolean]
44207
44346
  #
44208
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#173
44347
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#177
44209
44348
  def start_with_arithmetic_operator?(source_line); end
44210
44349
 
44211
44350
  # @return [Boolean]
44212
44351
  #
44213
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#100
44352
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#104
44214
44353
  def string_concatenation?(source_line); end
44215
44354
  end
44216
44355
 
44217
44356
  # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#72
44218
44357
  RuboCop::Cop::Style::RedundantLineContinuation::ALLOWED_STRING_TOKENS = T.let(T.unsafe(nil), Array)
44219
44358
 
44359
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#73
44360
+ RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TYPES = T.let(T.unsafe(nil), Array)
44361
+
44220
44362
  # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#71
44221
44363
  RuboCop::Cop::Style::RedundantLineContinuation::MSG = T.let(T.unsafe(nil), String)
44222
44364
 
@@ -45306,7 +45448,16 @@ end
45306
45448
  # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#41
45307
45449
  RuboCop::Cop::Style::RedundantStringEscape::MSG = T.let(T.unsafe(nil), String)
45308
45450
 
45309
- # Enforces using // or %r around regular expressions.
45451
+ # Enforces using `//` or `%r` around regular expressions.
45452
+ #
45453
+ # NOTE: The following `%r` cases using a regexp starts with a blank or `=`
45454
+ # as a method argument allowed to prevent syntax errors.
45455
+ #
45456
+ # [source,ruby]
45457
+ # ----
45458
+ # do_something %r{ regexp} # `do_something / regexp/` is an invalid syntax.
45459
+ # do_something %r{=regexp} # `do_something /=regexp/` is an invalid syntax.
45460
+ # ----
45310
45461
  #
45311
45462
  # @example EnforcedStyle: slashes (default)
45312
45463
  # # bad
@@ -45381,94 +45532,94 @@ RuboCop::Cop::Style::RedundantStringEscape::MSG = T.let(T.unsafe(nil), String)
45381
45532
  # # good
45382
45533
  # x =~ /home\//
45383
45534
  #
45384
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#84
45535
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#93
45385
45536
  class RuboCop::Cop::Style::RegexpLiteral < ::RuboCop::Cop::Base
45386
45537
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
45387
45538
  include ::RuboCop::Cop::RangeHelp
45388
45539
  extend ::RuboCop::Cop::AutoCorrector
45389
45540
 
45390
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#92
45541
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#101
45391
45542
  def on_regexp(node); end
45392
45543
 
45393
45544
  private
45394
45545
 
45395
45546
  # @return [Boolean]
45396
45547
  #
45397
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#135
45548
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#144
45398
45549
  def allow_inner_slashes?; end
45399
45550
 
45400
45551
  # @return [Boolean]
45401
45552
  #
45402
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#123
45553
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#132
45403
45554
  def allowed_mixed_percent_r?(node); end
45404
45555
 
45405
45556
  # @return [Boolean]
45406
45557
  #
45407
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#113
45558
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#122
45408
45559
  def allowed_mixed_slash?(node); end
45409
45560
 
45410
45561
  # @return [Boolean]
45411
45562
  #
45412
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#152
45563
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#161
45413
45564
  def allowed_omit_parentheses_with_percent_r_literal?(node); end
45414
45565
 
45415
45566
  # @return [Boolean]
45416
45567
  #
45417
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#117
45568
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#126
45418
45569
  def allowed_percent_r_literal?(node); end
45419
45570
 
45420
45571
  # @return [Boolean]
45421
45572
  #
45422
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#109
45573
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#118
45423
45574
  def allowed_slash_literal?(node); end
45424
45575
 
45425
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#212
45576
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#221
45426
45577
  def calculate_replacement(node); end
45427
45578
 
45428
45579
  # @return [Boolean]
45429
45580
  #
45430
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#127
45581
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#136
45431
45582
  def contains_disallowed_slash?(node); end
45432
45583
 
45433
45584
  # @return [Boolean]
45434
45585
  #
45435
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#131
45586
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#140
45436
45587
  def contains_slash?(node); end
45437
45588
 
45438
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#161
45589
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#170
45439
45590
  def correct_delimiters(node, corrector); end
45440
45591
 
45441
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#167
45592
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#176
45442
45593
  def correct_inner_slashes(node, corrector); end
45443
45594
 
45444
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#200
45595
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#209
45445
45596
  def inner_slash_after_correction(node); end
45446
45597
 
45447
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#196
45598
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#205
45448
45599
  def inner_slash_before_correction(node); end
45449
45600
 
45450
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#204
45601
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#213
45451
45602
  def inner_slash_for(opening_delimiter); end
45452
45603
 
45453
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#183
45604
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#192
45454
45605
  def inner_slash_indices(node); end
45455
45606
 
45456
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#139
45607
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#148
45457
45608
  def node_body(node, include_begin_nodes: T.unsafe(nil)); end
45458
45609
 
45459
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#148
45610
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#157
45460
45611
  def preferred_delimiters; end
45461
45612
 
45462
45613
  # @return [Boolean]
45463
45614
  #
45464
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#144
45615
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#153
45465
45616
  def slash_literal?(node); end
45466
45617
  end
45467
45618
 
45468
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#90
45619
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#99
45469
45620
  RuboCop::Cop::Style::RegexpLiteral::MSG_USE_PERCENT_R = T.let(T.unsafe(nil), String)
45470
45621
 
45471
- # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#89
45622
+ # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#98
45472
45623
  RuboCop::Cop::Style::RegexpLiteral::MSG_USE_SLASHES = T.let(T.unsafe(nil), String)
45473
45624
 
45474
45625
  # Sort `require` and `require_relative` in alphabetical order.
@@ -45541,23 +45692,26 @@ class RuboCop::Cop::Style::RequireOrder < ::RuboCop::Cop::Base
45541
45692
 
45542
45693
  private
45543
45694
 
45544
- # source://rubocop//lib/rubocop/cop/style/require_order.rb#104
45695
+ # source://rubocop//lib/rubocop/cop/style/require_order.rb#114
45696
+ def autocorrect(corrector, node, previous_older_sibling); end
45697
+
45698
+ # source://rubocop//lib/rubocop/cop/style/require_order.rb#101
45545
45699
  def find_previous_older_sibling(node); end
45546
45700
 
45547
45701
  # @return [Boolean]
45548
45702
  #
45549
- # source://rubocop//lib/rubocop/cop/style/require_order.rb#127
45703
+ # source://rubocop//lib/rubocop/cop/style/require_order.rb#132
45550
45704
  def in_same_section?(node1, node2); end
45551
45705
 
45552
45706
  # @return [Boolean]
45553
45707
  #
45554
- # source://rubocop//lib/rubocop/cop/style/require_order.rb#100
45708
+ # source://rubocop//lib/rubocop/cop/style/require_order.rb#97
45555
45709
  def not_modifier_form?(node); end
45556
45710
 
45557
- # source://rubocop//lib/rubocop/cop/style/require_order.rb#117
45711
+ # source://rubocop//lib/rubocop/cop/style/require_order.rb#122
45558
45712
  def search_node(node); end
45559
45713
 
45560
- # source://rubocop//lib/rubocop/cop/style/require_order.rb#121
45714
+ # source://rubocop//lib/rubocop/cop/style/require_order.rb#126
45561
45715
  def sibling_node(node); end
45562
45716
  end
45563
45717
 
@@ -46257,27 +46411,37 @@ class RuboCop::Cop::Style::Semicolon < ::RuboCop::Cop::Base
46257
46411
 
46258
46412
  # @return [Boolean]
46259
46413
  #
46260
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#102
46414
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#105
46261
46415
  def exist_semicolon_after_left_curly_brace?(tokens); end
46262
46416
 
46263
46417
  # @return [Boolean]
46264
46418
  #
46265
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#98
46419
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#113
46420
+ def exist_semicolon_after_left_string_interpolation_brace?(tokens); end
46421
+
46422
+ # @return [Boolean]
46423
+ #
46424
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#101
46266
46425
  def exist_semicolon_before_right_curly_brace?(tokens); end
46267
46426
 
46268
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#126
46427
+ # @return [Boolean]
46428
+ #
46429
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#109
46430
+ def exist_semicolon_before_right_string_interpolation_brace?(tokens); end
46431
+
46432
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#137
46269
46433
  def expressions_per_line(exprs); end
46270
46434
 
46271
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#140
46435
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#151
46272
46436
  def find_range_node(token_before_semicolon); end
46273
46437
 
46274
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#132
46438
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#143
46275
46439
  def find_semicolon_positions(line); end
46276
46440
 
46277
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#146
46441
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#157
46278
46442
  def range_nodes; end
46279
46443
 
46280
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#106
46444
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#117
46281
46445
  def register_semicolon(line, column, after_expression, token_before_semicolon = T.unsafe(nil)); end
46282
46446
 
46283
46447
  # source://rubocop//lib/rubocop/cop/style/semicolon.rb#86
@@ -50638,12 +50802,17 @@ class RuboCop::Cop::VariableForce::Assignment
50638
50802
  # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#16
50639
50803
  def initialize(node, variable); end
50640
50804
 
50641
- # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#67
50805
+ # @return [Boolean]
50806
+ #
50807
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#50
50808
+ def exception_assignment?; end
50809
+
50810
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#71
50642
50811
  def meta_assignment_node; end
50643
50812
 
50644
50813
  # @return [Boolean]
50645
50814
  #
50646
- # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#56
50815
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#60
50647
50816
  def multiple_assignment?; end
50648
50817
 
50649
50818
  # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#29
@@ -50654,12 +50823,12 @@ class RuboCop::Cop::VariableForce::Assignment
50654
50823
  # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12
50655
50824
  def node; end
50656
50825
 
50657
- # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#62
50826
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#66
50658
50827
  def operator; end
50659
50828
 
50660
50829
  # @return [Boolean]
50661
50830
  #
50662
- # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#50
50831
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#54
50663
50832
  def operator_assignment?; end
50664
50833
 
50665
50834
  # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#37
@@ -50700,10 +50869,10 @@ class RuboCop::Cop::VariableForce::Assignment
50700
50869
 
50701
50870
  private
50702
50871
 
50703
- # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#85
50872
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#89
50704
50873
  def multiple_assignment_node; end
50705
50874
 
50706
- # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#77
50875
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#81
50707
50876
  def operator_assignment_node; end
50708
50877
  end
50709
50878
 
@@ -54747,34 +54916,34 @@ class RuboCop::TargetRuby
54747
54916
  # @api private
54748
54917
  # @return [TargetRuby] a new instance of TargetRuby
54749
54918
  #
54750
- # source://rubocop//lib/rubocop/target_ruby.rb#247
54919
+ # source://rubocop//lib/rubocop/target_ruby.rb#248
54751
54920
  def initialize(config); end
54752
54921
 
54753
54922
  # @api private
54754
54923
  #
54755
- # source://rubocop//lib/rubocop/target_ruby.rb#263
54924
+ # source://rubocop//lib/rubocop/target_ruby.rb#264
54756
54925
  def rubocop_version_with_support; end
54757
54926
 
54758
54927
  # @api private
54759
54928
  #
54760
- # source://rubocop//lib/rubocop/target_ruby.rb#251
54929
+ # source://rubocop//lib/rubocop/target_ruby.rb#252
54761
54930
  def source; end
54762
54931
 
54763
54932
  # @api private
54764
54933
  # @return [Boolean]
54765
54934
  #
54766
- # source://rubocop//lib/rubocop/target_ruby.rb#259
54935
+ # source://rubocop//lib/rubocop/target_ruby.rb#260
54767
54936
  def supported?; end
54768
54937
 
54769
54938
  # @api private
54770
54939
  #
54771
- # source://rubocop//lib/rubocop/target_ruby.rb#255
54940
+ # source://rubocop//lib/rubocop/target_ruby.rb#256
54772
54941
  def version; end
54773
54942
 
54774
54943
  class << self
54775
54944
  # @api private
54776
54945
  #
54777
- # source://rubocop//lib/rubocop/target_ruby.rb#233
54946
+ # source://rubocop//lib/rubocop/target_ruby.rb#234
54778
54947
  def supported_versions; end
54779
54948
  end
54780
54949
  end
@@ -54783,23 +54952,23 @@ end
54783
54952
  #
54784
54953
  # @api private
54785
54954
  #
54786
- # source://rubocop//lib/rubocop/target_ruby.rb#106
54955
+ # source://rubocop//lib/rubocop/target_ruby.rb#107
54787
54956
  class RuboCop::TargetRuby::BundlerLockFile < ::RuboCop::TargetRuby::Source
54788
54957
  # @api private
54789
54958
  #
54790
- # source://rubocop//lib/rubocop/target_ruby.rb#107
54959
+ # source://rubocop//lib/rubocop/target_ruby.rb#108
54791
54960
  def name; end
54792
54961
 
54793
54962
  private
54794
54963
 
54795
54964
  # @api private
54796
54965
  #
54797
- # source://rubocop//lib/rubocop/target_ruby.rb#140
54966
+ # source://rubocop//lib/rubocop/target_ruby.rb#141
54798
54967
  def bundler_lock_file_path; end
54799
54968
 
54800
54969
  # @api private
54801
54970
  #
54802
- # source://rubocop//lib/rubocop/target_ruby.rb#113
54971
+ # source://rubocop//lib/rubocop/target_ruby.rb#114
54803
54972
  def find_version; end
54804
54973
  end
54805
54974
 
@@ -54812,18 +54981,18 @@ RuboCop::TargetRuby::DEFAULT_VERSION = T.let(T.unsafe(nil), Float)
54812
54981
  #
54813
54982
  # @api private
54814
54983
  #
54815
- # source://rubocop//lib/rubocop/target_ruby.rb#221
54984
+ # source://rubocop//lib/rubocop/target_ruby.rb#222
54816
54985
  class RuboCop::TargetRuby::Default < ::RuboCop::TargetRuby::Source
54817
54986
  # @api private
54818
54987
  #
54819
- # source://rubocop//lib/rubocop/target_ruby.rb#222
54988
+ # source://rubocop//lib/rubocop/target_ruby.rb#223
54820
54989
  def name; end
54821
54990
 
54822
54991
  private
54823
54992
 
54824
54993
  # @api private
54825
54994
  #
54826
- # source://rubocop//lib/rubocop/target_ruby.rb#228
54995
+ # source://rubocop//lib/rubocop/target_ruby.rb#229
54827
54996
  def find_version; end
54828
54997
  end
54829
54998
 
@@ -54831,62 +55000,62 @@ end
54831
55000
  #
54832
55001
  # @api private
54833
55002
  #
54834
- # source://rubocop//lib/rubocop/target_ruby.rb#147
55003
+ # source://rubocop//lib/rubocop/target_ruby.rb#148
54835
55004
  class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source
54836
55005
  extend ::RuboCop::AST::NodePattern::Macros
54837
55006
 
54838
- # source://rubocop//lib/rubocop/target_ruby.rb#158
55007
+ # source://rubocop//lib/rubocop/target_ruby.rb#159
54839
55008
  def gem_requirement?(param0 = T.unsafe(nil)); end
54840
55009
 
54841
55010
  # @api private
54842
55011
  #
54843
- # source://rubocop//lib/rubocop/target_ruby.rb#162
55012
+ # source://rubocop//lib/rubocop/target_ruby.rb#163
54844
55013
  def name; end
54845
55014
 
54846
- # source://rubocop//lib/rubocop/target_ruby.rb#153
55015
+ # source://rubocop//lib/rubocop/target_ruby.rb#154
54847
55016
  def required_ruby_version(param0); end
54848
55017
 
54849
55018
  private
54850
55019
 
54851
55020
  # @api private
54852
55021
  #
54853
- # source://rubocop//lib/rubocop/target_ruby.rb#209
55022
+ # source://rubocop//lib/rubocop/target_ruby.rb#210
54854
55023
  def find_default_minimal_known_ruby(right_hand_side); end
54855
55024
 
54856
55025
  # @api private
54857
55026
  #
54858
- # source://rubocop//lib/rubocop/target_ruby.rb#168
55027
+ # source://rubocop//lib/rubocop/target_ruby.rb#169
54859
55028
  def find_version; end
54860
55029
 
54861
55030
  # @api private
54862
55031
  #
54863
- # source://rubocop//lib/rubocop/target_ruby.rb#178
55032
+ # source://rubocop//lib/rubocop/target_ruby.rb#179
54864
55033
  def gemspec_filename; end
54865
55034
 
54866
55035
  # @api private
54867
55036
  #
54868
- # source://rubocop//lib/rubocop/target_ruby.rb#185
55037
+ # source://rubocop//lib/rubocop/target_ruby.rb#186
54869
55038
  def gemspec_filepath; end
54870
55039
 
54871
55040
  # @api private
54872
55041
  #
54873
- # source://rubocop//lib/rubocop/target_ruby.rb#205
55042
+ # source://rubocop//lib/rubocop/target_ruby.rb#206
54874
55043
  def version_from_array(array); end
54875
55044
 
54876
55045
  # @api private
54877
55046
  #
54878
- # source://rubocop//lib/rubocop/target_ruby.rb#190
55047
+ # source://rubocop//lib/rubocop/target_ruby.rb#191
54879
55048
  def version_from_gemspec_file(file); end
54880
55049
 
54881
55050
  # @api private
54882
55051
  #
54883
- # source://rubocop//lib/rubocop/target_ruby.rb#195
55052
+ # source://rubocop//lib/rubocop/target_ruby.rb#196
54884
55053
  def version_from_right_hand_side(right_hand_side); end
54885
55054
  end
54886
55055
 
54887
55056
  # @api private
54888
55057
  #
54889
- # source://rubocop//lib/rubocop/target_ruby.rb#150
55058
+ # source://rubocop//lib/rubocop/target_ruby.rb#151
54890
55059
  RuboCop::TargetRuby::GemspecFile::GEMSPEC_EXTENSION = T.let(T.unsafe(nil), String)
54891
55060
 
54892
55061
  # @api private
@@ -54903,18 +55072,18 @@ RuboCop::TargetRuby::OBSOLETE_RUBIES = T.let(T.unsafe(nil), Hash)
54903
55072
  #
54904
55073
  # @api private
54905
55074
  #
54906
- # source://rubocop//lib/rubocop/target_ruby.rb#38
55075
+ # source://rubocop//lib/rubocop/target_ruby.rb#39
54907
55076
  class RuboCop::TargetRuby::RuboCopConfig < ::RuboCop::TargetRuby::Source
54908
55077
  # @api private
54909
55078
  #
54910
- # source://rubocop//lib/rubocop/target_ruby.rb#39
55079
+ # source://rubocop//lib/rubocop/target_ruby.rb#40
54911
55080
  def name; end
54912
55081
 
54913
55082
  private
54914
55083
 
54915
55084
  # @api private
54916
55085
  #
54917
- # source://rubocop//lib/rubocop/target_ruby.rb#45
55086
+ # source://rubocop//lib/rubocop/target_ruby.rb#46
54918
55087
  def find_version; end
54919
55088
  end
54920
55089
 
@@ -54922,76 +55091,76 @@ end
54922
55091
  #
54923
55092
  # @api private
54924
55093
  #
54925
- # source://rubocop//lib/rubocop/target_ruby.rb#52
55094
+ # source://rubocop//lib/rubocop/target_ruby.rb#53
54926
55095
  class RuboCop::TargetRuby::RubyVersionFile < ::RuboCop::TargetRuby::Source
54927
55096
  # @api private
54928
55097
  #
54929
- # source://rubocop//lib/rubocop/target_ruby.rb#56
55098
+ # source://rubocop//lib/rubocop/target_ruby.rb#57
54930
55099
  def name; end
54931
55100
 
54932
55101
  private
54933
55102
 
54934
55103
  # @api private
54935
55104
  #
54936
- # source://rubocop//lib/rubocop/target_ruby.rb#62
55105
+ # source://rubocop//lib/rubocop/target_ruby.rb#63
54937
55106
  def filename; end
54938
55107
 
54939
55108
  # @api private
54940
55109
  #
54941
- # source://rubocop//lib/rubocop/target_ruby.rb#70
55110
+ # source://rubocop//lib/rubocop/target_ruby.rb#71
54942
55111
  def find_version; end
54943
55112
 
54944
55113
  # @api private
54945
55114
  #
54946
- # source://rubocop//lib/rubocop/target_ruby.rb#66
55115
+ # source://rubocop//lib/rubocop/target_ruby.rb#67
54947
55116
  def pattern; end
54948
55117
 
54949
55118
  # @api private
54950
55119
  #
54951
- # source://rubocop//lib/rubocop/target_ruby.rb#77
55120
+ # source://rubocop//lib/rubocop/target_ruby.rb#78
54952
55121
  def version_file; end
54953
55122
  end
54954
55123
 
54955
55124
  # @api private
54956
55125
  #
54957
- # source://rubocop//lib/rubocop/target_ruby.rb#53
55126
+ # source://rubocop//lib/rubocop/target_ruby.rb#54
54958
55127
  RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_FILENAME = T.let(T.unsafe(nil), String)
54959
55128
 
54960
55129
  # @api private
54961
55130
  #
54962
- # source://rubocop//lib/rubocop/target_ruby.rb#54
55131
+ # source://rubocop//lib/rubocop/target_ruby.rb#55
54963
55132
  RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp)
54964
55133
 
54965
55134
  # @api private
54966
55135
  #
54967
- # source://rubocop//lib/rubocop/target_ruby.rb#237
55136
+ # source://rubocop//lib/rubocop/target_ruby.rb#238
54968
55137
  RuboCop::TargetRuby::SOURCES = T.let(T.unsafe(nil), Array)
54969
55138
 
54970
55139
  # A place where information about a target ruby version is found.
54971
55140
  #
54972
55141
  # @api private
54973
55142
  #
54974
- # source://rubocop//lib/rubocop/target_ruby.rb#23
55143
+ # source://rubocop//lib/rubocop/target_ruby.rb#24
54975
55144
  class RuboCop::TargetRuby::Source
54976
55145
  # @api private
54977
55146
  # @return [Source] a new instance of Source
54978
55147
  #
54979
- # source://rubocop//lib/rubocop/target_ruby.rb#26
55148
+ # source://rubocop//lib/rubocop/target_ruby.rb#27
54980
55149
  def initialize(config); end
54981
55150
 
54982
55151
  # @api private
54983
55152
  #
54984
- # source://rubocop//lib/rubocop/target_ruby.rb#24
55153
+ # source://rubocop//lib/rubocop/target_ruby.rb#25
54985
55154
  def name; end
54986
55155
 
54987
55156
  # @api private
54988
55157
  #
54989
- # source://rubocop//lib/rubocop/target_ruby.rb#31
55158
+ # source://rubocop//lib/rubocop/target_ruby.rb#32
54990
55159
  def to_s; end
54991
55160
 
54992
55161
  # @api private
54993
55162
  #
54994
- # source://rubocop//lib/rubocop/target_ruby.rb#24
55163
+ # source://rubocop//lib/rubocop/target_ruby.rb#25
54995
55164
  def version; end
54996
55165
  end
54997
55166
 
@@ -55000,34 +55169,34 @@ end
55000
55169
  #
55001
55170
  # @api private
55002
55171
  #
55003
- # source://rubocop//lib/rubocop/target_ruby.rb#85
55172
+ # source://rubocop//lib/rubocop/target_ruby.rb#86
55004
55173
  class RuboCop::TargetRuby::ToolVersionsFile < ::RuboCop::TargetRuby::RubyVersionFile
55005
55174
  # @api private
55006
55175
  #
55007
- # source://rubocop//lib/rubocop/target_ruby.rb#89
55176
+ # source://rubocop//lib/rubocop/target_ruby.rb#90
55008
55177
  def name; end
55009
55178
 
55010
55179
  private
55011
55180
 
55012
55181
  # @api private
55013
55182
  #
55014
- # source://rubocop//lib/rubocop/target_ruby.rb#95
55183
+ # source://rubocop//lib/rubocop/target_ruby.rb#96
55015
55184
  def filename; end
55016
55185
 
55017
55186
  # @api private
55018
55187
  #
55019
- # source://rubocop//lib/rubocop/target_ruby.rb#99
55188
+ # source://rubocop//lib/rubocop/target_ruby.rb#100
55020
55189
  def pattern; end
55021
55190
  end
55022
55191
 
55023
55192
  # @api private
55024
55193
  #
55025
- # source://rubocop//lib/rubocop/target_ruby.rb#86
55194
+ # source://rubocop//lib/rubocop/target_ruby.rb#87
55026
55195
  RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_FILENAME = T.let(T.unsafe(nil), String)
55027
55196
 
55028
55197
  # @api private
55029
55198
  #
55030
- # source://rubocop//lib/rubocop/target_ruby.rb#87
55199
+ # source://rubocop//lib/rubocop/target_ruby.rb#88
55031
55200
  RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_PATTERN = T.let(T.unsafe(nil), Regexp)
55032
55201
 
55033
55202
  # source://rubocop//lib/rubocop/ast_aliases.rb#7