mangrove 0.24.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -166,77 +166,77 @@ end
166
166
  class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
167
167
  # @api private
168
168
  #
169
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#21
169
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#22
170
170
  def run; end
171
171
 
172
172
  private
173
173
 
174
174
  # @api private
175
175
  #
176
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#97
176
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#98
177
177
  def add_formatter; end
178
178
 
179
179
  # @api private
180
180
  #
181
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#105
181
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#106
182
182
  def add_inheritance_from_auto_generated_file(config_file); end
183
183
 
184
184
  # @api private
185
185
  #
186
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#101
186
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#102
187
187
  def execute_runner; end
188
188
 
189
189
  # @api private
190
190
  #
191
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#126
191
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#127
192
192
  def existing_configuration(config_file); end
193
193
 
194
194
  # @api private
195
195
  #
196
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#59
196
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#60
197
197
  def line_length_cop(config); end
198
198
 
199
199
  # @api private
200
200
  # @return [Boolean]
201
201
  #
202
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#47
202
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#48
203
203
  def line_length_enabled?(config); end
204
204
 
205
205
  # @api private
206
206
  #
207
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#55
207
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#56
208
208
  def max_line_length(config); end
209
209
 
210
210
  # @api private
211
211
  #
212
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#30
212
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#31
213
213
  def maybe_run_line_length_cop; end
214
214
 
215
215
  # @api private
216
216
  # @return [Boolean]
217
217
  #
218
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#148
218
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#153
219
219
  def options_config_in_root?; end
220
220
 
221
221
  # @api private
222
222
  # @return [Boolean]
223
223
  #
224
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#63
224
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#64
225
225
  def options_has_only_flag?; end
226
226
 
227
227
  # @api private
228
228
  #
229
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#139
229
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#144
230
230
  def relative_path_to_todo_from_options_config; end
231
231
 
232
232
  # @api private
233
233
  #
234
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#90
234
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#91
235
235
  def reset_config_and_auto_gen_file; end
236
236
 
237
237
  # @api private
238
238
  #
239
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#81
239
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#82
240
240
  def run_all_cops(line_length_contents); end
241
241
 
242
242
  # Do an initial run with only Layout/LineLength so that cops that
@@ -245,23 +245,23 @@ class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
245
245
  #
246
246
  # @api private
247
247
  #
248
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#70
248
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#71
249
249
  def run_line_length_cop; end
250
250
 
251
251
  # @api private
252
252
  # @return [Boolean]
253
253
  #
254
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#51
254
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#52
255
255
  def same_max_line_length?(config1, config2); end
256
256
 
257
257
  # @api private
258
258
  #
259
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#42
259
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#43
260
260
  def skip_line_length_cop(reason); end
261
261
 
262
262
  # @api private
263
263
  #
264
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#132
264
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#133
265
265
  def write_config_file(file_name, file_string, rubocop_yml_contents); end
266
266
  end
267
267
 
@@ -272,29 +272,34 @@ RuboCop::CLI::Command::AutoGenerateConfig::AUTO_GENERATED_FILE = T.let(T.unsafe(
272
272
 
273
273
  # @api private
274
274
  #
275
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#14
275
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#15
276
276
  RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1 = T.let(T.unsafe(nil), String)
277
277
 
278
278
  # @api private
279
279
  #
280
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#18
280
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#19
281
281
  RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_DISABLED = T.let(T.unsafe(nil), String)
282
282
 
283
283
  # @api private
284
284
  #
285
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#17
285
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#18
286
286
  RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(nil), String)
287
287
 
288
288
  # @api private
289
289
  #
290
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#19
290
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#20
291
291
  RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED = T.let(T.unsafe(nil), String)
292
292
 
293
293
  # @api private
294
294
  #
295
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#15
295
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#16
296
296
  RuboCop::CLI::Command::AutoGenerateConfig::PHASE_2 = T.let(T.unsafe(nil), String)
297
297
 
298
+ # @api private
299
+ #
300
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#13
301
+ RuboCop::CLI::Command::AutoGenerateConfig::PLACEHOLDER = T.let(T.unsafe(nil), String)
302
+
298
303
  # @api private
299
304
  #
300
305
  # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#12
@@ -522,7 +527,7 @@ end
522
527
  #
523
528
  # @api private
524
529
  #
525
- # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#12
530
+ # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#11
526
531
  class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base
527
532
  # @api private
528
533
  #
@@ -752,7 +757,7 @@ class RuboCop::CommentConfig
752
757
  # source://rubocop//lib/rubocop/comment_config.rb#63
753
758
  def comment_only_line?(line_number); end
754
759
 
755
- # source://forwardable/1.3.2/forwardable.rb#229
760
+ # source://forwardable/1.3.3/forwardable.rb#231
756
761
  def config(*args, **_arg1, &block); end
757
762
 
758
763
  # source://rubocop//lib/rubocop/comment_config.rb#51
@@ -776,7 +781,7 @@ class RuboCop::CommentConfig
776
781
  # source://rubocop//lib/rubocop/comment_config.rb#30
777
782
  def processed_source; end
778
783
 
779
- # source://forwardable/1.3.2/forwardable.rb#229
784
+ # source://forwardable/1.3.3/forwardable.rb#231
780
785
  def registry(*args, **_arg1, &block); end
781
786
 
782
787
  private
@@ -952,10 +957,10 @@ class RuboCop::Config
952
957
  # source://rubocop//lib/rubocop/config.rb#32
953
958
  def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
954
959
 
955
- # source://forwardable/1.3.2/forwardable.rb#229
960
+ # source://forwardable/1.3.3/forwardable.rb#231
956
961
  def [](*args, **_arg1, &block); end
957
962
 
958
- # source://forwardable/1.3.2/forwardable.rb#229
963
+ # source://forwardable/1.3.3/forwardable.rb#231
959
964
  def []=(*args, **_arg1, &block); end
960
965
 
961
966
  # @return [Boolean]
@@ -992,13 +997,13 @@ class RuboCop::Config
992
997
  # source://rubocop//lib/rubocop/config.rb#144
993
998
  def clusivity_config_for_badge?(badge); end
994
999
 
995
- # source://forwardable/1.3.2/forwardable.rb#229
1000
+ # source://forwardable/1.3.3/forwardable.rb#231
996
1001
  def delete(*args, **_arg1, &block); end
997
1002
 
998
1003
  # source://rubocop//lib/rubocop/config.rb#110
999
1004
  def deprecation_check; end
1000
1005
 
1001
- # source://forwardable/1.3.2/forwardable.rb#229
1006
+ # source://forwardable/1.3.3/forwardable.rb#231
1002
1007
  def dig(*args, **_arg1, &block); end
1003
1008
 
1004
1009
  # @return [Boolean]
@@ -1006,10 +1011,10 @@ class RuboCop::Config
1006
1011
  # source://rubocop//lib/rubocop/config.rb#164
1007
1012
  def disabled_new_cops?; end
1008
1013
 
1009
- # source://forwardable/1.3.2/forwardable.rb#229
1014
+ # source://forwardable/1.3.3/forwardable.rb#231
1010
1015
  def each(*args, **_arg1, &block); end
1011
1016
 
1012
- # source://forwardable/1.3.2/forwardable.rb#229
1017
+ # source://forwardable/1.3.3/forwardable.rb#231
1013
1018
  def each_key(*args, **_arg1, &block); end
1014
1019
 
1015
1020
  # @return [Boolean]
@@ -1017,7 +1022,7 @@ class RuboCop::Config
1017
1022
  # source://rubocop//lib/rubocop/config.rb#168
1018
1023
  def enabled_new_cops?; end
1019
1024
 
1020
- # source://forwardable/1.3.2/forwardable.rb#229
1025
+ # source://forwardable/1.3.3/forwardable.rb#231
1021
1026
  def fetch(*args, **_arg1, &block); end
1022
1027
 
1023
1028
  # @return [Boolean]
@@ -1066,10 +1071,10 @@ class RuboCop::Config
1066
1071
  # source://rubocop//lib/rubocop/config.rb#78
1067
1072
  def internal?; end
1068
1073
 
1069
- # source://forwardable/1.3.2/forwardable.rb#229
1074
+ # source://forwardable/1.3.3/forwardable.rb#231
1070
1075
  def key?(*args, **_arg1, &block); end
1071
1076
 
1072
- # source://forwardable/1.3.2/forwardable.rb#229
1077
+ # source://forwardable/1.3.3/forwardable.rb#231
1073
1078
  def keys(*args, **_arg1, &block); end
1074
1079
 
1075
1080
  # source://rubocop//lib/rubocop/config.rb#49
@@ -1083,10 +1088,10 @@ class RuboCop::Config
1083
1088
  # source://rubocop//lib/rubocop/config.rb#83
1084
1089
  def make_excludes_absolute; end
1085
1090
 
1086
- # source://forwardable/1.3.2/forwardable.rb#229
1091
+ # source://forwardable/1.3.3/forwardable.rb#231
1087
1092
  def map(*args, **_arg1, &block); end
1088
1093
 
1089
- # source://forwardable/1.3.2/forwardable.rb#229
1094
+ # source://forwardable/1.3.3/forwardable.rb#231
1090
1095
  def merge(*args, **_arg1, &block); end
1091
1096
 
1092
1097
  # source://rubocop//lib/rubocop/config.rb#230
@@ -1109,7 +1114,7 @@ class RuboCop::Config
1109
1114
  # source://rubocop//lib/rubocop/config.rb#209
1110
1115
  def possibly_include_hidden?; end
1111
1116
 
1112
- # source://forwardable/1.3.2/forwardable.rb#229
1117
+ # source://forwardable/1.3.3/forwardable.rb#231
1113
1118
  def replace(*args, **_arg1, &block); end
1114
1119
 
1115
1120
  # source://rubocop//lib/rubocop/config.rb#73
@@ -1121,22 +1126,22 @@ class RuboCop::Config
1121
1126
  # source://rubocop//lib/rubocop/config.rb#249
1122
1127
  def target_rails_version; end
1123
1128
 
1124
- # source://forwardable/1.3.2/forwardable.rb#229
1129
+ # source://forwardable/1.3.3/forwardable.rb#231
1125
1130
  def target_ruby_version(*args, **_arg1, &block); end
1126
1131
 
1127
- # source://forwardable/1.3.2/forwardable.rb#229
1132
+ # source://forwardable/1.3.3/forwardable.rb#231
1128
1133
  def to_h(*args, **_arg1, &block); end
1129
1134
 
1130
- # source://forwardable/1.3.2/forwardable.rb#229
1135
+ # source://forwardable/1.3.3/forwardable.rb#231
1131
1136
  def to_hash(*args, **_arg1, &block); end
1132
1137
 
1133
1138
  # source://rubocop//lib/rubocop/config.rb#69
1134
1139
  def to_s; end
1135
1140
 
1136
- # source://forwardable/1.3.2/forwardable.rb#229
1141
+ # source://forwardable/1.3.3/forwardable.rb#231
1137
1142
  def transform_values(*args, **_arg1, &block); end
1138
1143
 
1139
- # source://forwardable/1.3.2/forwardable.rb#229
1144
+ # source://forwardable/1.3.3/forwardable.rb#231
1140
1145
  def validate(*args, **_arg1, &block); end
1141
1146
 
1142
1147
  # source://rubocop//lib/rubocop/config.rb#60
@@ -1645,23 +1650,23 @@ class RuboCop::ConfigObsoletion
1645
1650
  # @api private
1646
1651
  # @return [ConfigObsoletion] a new instance of ConfigObsoletion
1647
1652
  #
1648
- # source://rubocop//lib/rubocop/config_obsoletion.rb#33
1653
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#35
1649
1654
  def initialize(config); end
1650
1655
 
1651
1656
  # @api private
1652
1657
  # @raise [ValidationError]
1653
1658
  #
1654
- # source://rubocop//lib/rubocop/config_obsoletion.rb#39
1659
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#41
1655
1660
  def reject_obsolete!; end
1656
1661
 
1657
1662
  # @api private
1658
1663
  #
1659
- # source://rubocop//lib/rubocop/config_obsoletion.rb#19
1664
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#21
1660
1665
  def rules; end
1661
1666
 
1662
1667
  # @api private
1663
1668
  #
1664
- # source://rubocop//lib/rubocop/config_obsoletion.rb#19
1669
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#21
1665
1670
  def warnings; end
1666
1671
 
1667
1672
  private
@@ -1670,7 +1675,7 @@ class RuboCop::ConfigObsoletion
1670
1675
  #
1671
1676
  # @api private
1672
1677
  #
1673
- # source://rubocop//lib/rubocop/config_obsoletion.rb#69
1678
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#72
1674
1679
  def load_cop_rules(rules); end
1675
1680
 
1676
1681
  # Parameter rules may apply to multiple cops and multiple parameters
@@ -1679,7 +1684,7 @@ class RuboCop::ConfigObsoletion
1679
1684
  #
1680
1685
  # @api private
1681
1686
  #
1682
- # source://rubocop//lib/rubocop/config_obsoletion.rb#82
1687
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#85
1683
1688
  def load_parameter_rules(rules); end
1684
1689
 
1685
1690
  # Default rules for obsoletions are in config/obsoletion.yml
@@ -1687,28 +1692,28 @@ class RuboCop::ConfigObsoletion
1687
1692
  #
1688
1693
  # @api private
1689
1694
  #
1690
- # source://rubocop//lib/rubocop/config_obsoletion.rb#50
1695
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#52
1691
1696
  def load_rules; end
1692
1697
 
1693
1698
  # @api private
1694
1699
  #
1695
- # source://rubocop//lib/rubocop/config_obsoletion.rb#95
1700
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#98
1696
1701
  def obsoletions; end
1697
1702
 
1698
1703
  class << self
1699
1704
  # @api private
1700
1705
  #
1701
- # source://rubocop//lib/rubocop/config_obsoletion.rb#22
1706
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#24
1702
1707
  def files; end
1703
1708
 
1704
1709
  # @api private
1705
1710
  #
1706
- # source://rubocop//lib/rubocop/config_obsoletion.rb#22
1711
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#24
1707
1712
  def files=(_arg0); end
1708
1713
 
1709
1714
  # @api private
1710
1715
  #
1711
- # source://rubocop//lib/rubocop/config_obsoletion.rb#24
1716
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#26
1712
1717
  def legacy_cop_names; end
1713
1718
  end
1714
1719
  end
@@ -1861,6 +1866,11 @@ class RuboCop::ConfigObsoletion::ExtractedCop < ::RuboCop::ConfigObsoletion::Cop
1861
1866
  def feature_loaded?; end
1862
1867
  end
1863
1868
 
1869
+ # @api private
1870
+ #
1871
+ # source://rubocop//lib/rubocop/config_obsoletion.rb#18
1872
+ RuboCop::ConfigObsoletion::LOAD_RULES_CACHE = T.let(T.unsafe(nil), Hash)
1873
+
1864
1874
  # @api private
1865
1875
  #
1866
1876
  # source://rubocop//lib/rubocop/config_obsoletion.rb#14
@@ -2206,10 +2216,10 @@ class RuboCop::ConfigValidator
2206
2216
  # source://rubocop//lib/rubocop/config_validator.rb#27
2207
2217
  def initialize(config); end
2208
2218
 
2209
- # source://forwardable/1.3.2/forwardable.rb#229
2219
+ # source://forwardable/1.3.3/forwardable.rb#231
2210
2220
  def for_all_cops(*args, **_arg1, &block); end
2211
2221
 
2212
- # source://forwardable/1.3.2/forwardable.rb#229
2222
+ # source://forwardable/1.3.3/forwardable.rb#231
2213
2223
  def smart_loaded_path(*args, **_arg1, &block); end
2214
2224
 
2215
2225
  # source://rubocop//lib/rubocop/config_validator.rb#63
@@ -6523,61 +6533,61 @@ module RuboCop::Cop::HashShorthandSyntax
6523
6533
 
6524
6534
  # @return [Boolean]
6525
6535
  #
6526
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#122
6536
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#125
6527
6537
  def brackets?(method_dispatch_node); end
6528
6538
 
6529
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#152
6539
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#155
6530
6540
  def breakdown_value_types_of_hash(hash_node); end
6531
6541
 
6532
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#99
6542
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#102
6533
6543
  def def_node_that_require_parentheses(node); end
6534
6544
 
6535
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176
6545
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#179
6536
6546
  def each_omittable_value_pair(hash_value_type_breakdown, &block); end
6537
6547
 
6538
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#172
6548
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#175
6539
6549
  def each_omitted_value_pair(hash_value_type_breakdown, &block); end
6540
6550
 
6541
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#77
6551
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#80
6542
6552
  def enforced_shorthand_syntax; end
6543
6553
 
6544
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#114
6554
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#117
6545
6555
  def find_ancestor_method_dispatch_node(node); end
6546
6556
 
6547
6557
  # @return [Boolean]
6548
6558
  #
6549
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#164
6559
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#167
6550
6560
  def hash_with_mixed_shorthand_syntax?(hash_value_type_breakdown); end
6551
6561
 
6552
6562
  # @return [Boolean]
6553
6563
  #
6554
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#168
6564
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#171
6555
6565
  def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end
6556
6566
 
6557
6567
  # @return [Boolean]
6558
6568
  #
6559
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#71
6569
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#74
6560
6570
  def ignore_hash_shorthand_syntax?(pair_node); end
6561
6571
 
6562
6572
  # @return [Boolean]
6563
6573
  #
6564
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#66
6574
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#69
6565
6575
  def ignore_mixed_hash_shorthand_syntax?(hash_node); end
6566
6576
 
6567
6577
  # @return [Boolean]
6568
6578
  #
6569
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#137
6579
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#140
6570
6580
  def last_expression?(node); end
6571
6581
 
6572
6582
  # @return [Boolean]
6573
6583
  #
6574
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#145
6584
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#148
6575
6585
  def method_dispatch_as_argument?(method_dispatch_node); end
6576
6586
 
6577
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#180
6587
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#183
6578
6588
  def mixed_shorthand_syntax_check(hash_value_type_breakdown); end
6579
6589
 
6580
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#196
6590
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#199
6581
6591
  def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end
6582
6592
 
6583
6593
  # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49
@@ -6585,22 +6595,22 @@ module RuboCop::Cop::HashShorthandSyntax
6585
6595
 
6586
6596
  # @return [Boolean]
6587
6597
  #
6588
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#81
6598
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#84
6589
6599
  def require_hash_value?(hash_key_source, node); end
6590
6600
 
6591
6601
  # @return [Boolean]
6592
6602
  #
6593
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#90
6603
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#93
6594
6604
  def require_hash_value_for_around_hash_literal?(node); end
6595
6605
 
6596
6606
  # @return [Boolean]
6597
6607
  #
6598
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#126
6608
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#129
6599
6609
  def use_element_of_hash_literal_as_receiver?(ancestor, parent); end
6600
6610
 
6601
6611
  # @return [Boolean]
6602
6612
  #
6603
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#131
6613
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#134
6604
6614
  def use_modifier_form_without_parenthesized_method_call?(ancestor); end
6605
6615
  end
6606
6616
 
@@ -6613,12 +6623,12 @@ RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_MSG_PREFIX = T.let(T.unsafe(nil),
6613
6623
  # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11
6614
6624
  RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_OMIT_VALUE_MSG = T.let(T.unsafe(nil), String)
6615
6625
 
6616
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#206
6626
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#209
6617
6627
  class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct
6618
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#215
6628
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#218
6619
6629
  def first_argument; end
6620
6630
 
6621
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#219
6631
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#222
6622
6632
  def last_argument; end
6623
6633
 
6624
6634
  # Returns the value of attribute node
@@ -6632,7 +6642,7 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct
6632
6642
  # @return [Object] the newly set value
6633
6643
  def node=(_); end
6634
6644
 
6635
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#207
6645
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#210
6636
6646
  def selector; end
6637
6647
 
6638
6648
  class << self
@@ -10118,13 +10128,13 @@ class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base
10118
10128
  # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#161
10119
10129
  def alignment_node(node); end
10120
10130
 
10121
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#172
10131
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#178
10122
10132
  def alignment_node_for_variable_style(node); end
10123
10133
 
10124
10134
  # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#142
10125
10135
  def asgn_variable_align_with(outer_node, inner_node); end
10126
10136
 
10127
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#190
10137
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#196
10128
10138
  def assignment_or_operator_method(node); end
10129
10139
 
10130
10140
  # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#116
@@ -10239,13 +10249,13 @@ class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base
10239
10249
 
10240
10250
  private
10241
10251
 
10242
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#176
10252
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#170
10243
10253
  def align_column(asgn_token); end
10244
10254
 
10245
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#153
10255
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#147
10246
10256
  def align_equal_sign(corrector, token, align_to); end
10247
10257
 
10248
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#143
10258
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#137
10249
10259
  def align_equal_signs(range, corrector); end
10250
10260
 
10251
10261
  # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#52
@@ -10253,46 +10263,46 @@ class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base
10253
10263
 
10254
10264
  # @return [Boolean]
10255
10265
  #
10256
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#109
10266
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#103
10257
10267
  def aligned_tok?(token); end
10258
10268
 
10259
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#165
10269
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#159
10260
10270
  def all_relevant_assignment_lines(line_number); end
10261
10271
 
10262
10272
  # @return [Boolean]
10263
10273
  #
10264
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#185
10274
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#179
10265
10275
  def allow_for_trailing_comments?; end
10266
10276
 
10267
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#78
10277
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#72
10268
10278
  def check_assignment(token); end
10269
10279
 
10270
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#87
10280
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#81
10271
10281
  def check_other(token1, token2, ast); end
10272
10282
 
10273
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#68
10283
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#62
10274
10284
  def check_tokens(ast, token1, token2); end
10275
10285
 
10276
10286
  # @yield [range_between(start_pos, end_pos)]
10277
10287
  #
10278
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#97
10288
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#91
10279
10289
  def extra_space_range(token1, token2); end
10280
10290
 
10281
10291
  # @return [Boolean]
10282
10292
  #
10283
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#139
10293
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#133
10284
10294
  def force_equal_sign_alignment?; end
10285
10295
 
10286
10296
  # @return [Boolean]
10287
10297
  #
10288
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#117
10298
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#111
10289
10299
  def ignored_range?(ast, start_pos); end
10290
10300
 
10291
10301
  # Returns an array of ranges that should not be reported. It's the
10292
10302
  # extra spaces between the keys and values in a multiline hash,
10293
10303
  # since those are handled by the Layout/HashAlignment cop.
10294
10304
  #
10295
- # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#124
10305
+ # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#118
10296
10306
  def ignored_ranges(ast); end
10297
10307
  end
10298
10308
 
@@ -10545,7 +10555,7 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
10545
10555
  # # element are on separate lines is indented one step (two spaces) more
10546
10556
  # # than the position inside the opening parenthesis.
10547
10557
  #
10548
- # #bad
10558
+ # # bad
10549
10559
  # array = [
10550
10560
  # :value
10551
10561
  # ]
@@ -10553,7 +10563,7 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
10553
10563
  # :no_difference
10554
10564
  # ])
10555
10565
  #
10556
- # #good
10566
+ # # good
10557
10567
  # array = [
10558
10568
  # :value
10559
10569
  # ]
@@ -10566,7 +10576,7 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
10566
10576
  # # separate lines is indented the same as an array literal which is not
10567
10577
  # # defined inside a method call.
10568
10578
  #
10569
- # #bad
10579
+ # # bad
10570
10580
  # # consistent
10571
10581
  # array = [
10572
10582
  # :value
@@ -10575,7 +10585,7 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
10575
10585
  # :its_like_this
10576
10586
  # ])
10577
10587
  #
10578
- # #good
10588
+ # # good
10579
10589
  # array = [
10580
10590
  # :value
10581
10591
  # ]
@@ -10586,13 +10596,13 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
10586
10596
  # # The `align_brackets` style enforces that the opening and closing
10587
10597
  # # brackets are indented to the same position.
10588
10598
  #
10589
- # #bad
10599
+ # # bad
10590
10600
  # # align_brackets
10591
10601
  # and_now_for_something = [
10592
10602
  # :completely_different
10593
10603
  # ]
10594
10604
  #
10595
- # #good
10605
+ # # good
10596
10606
  # # align_brackets
10597
10607
  # and_now_for_something = [
10598
10608
  # :completely_different
@@ -11641,7 +11651,7 @@ RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(ni
11641
11651
  #
11642
11652
  # Note: When ``Layout/LineLength``'s `AllowHeredoc` is false (not default),
11643
11653
  # this cop does not add any offenses for long here documents to
11644
- # avoid `Layout/LineLength`'s offenses.
11654
+ # avoid ``Layout/LineLength``'s offenses.
11645
11655
  #
11646
11656
  # @example
11647
11657
  # # bad
@@ -14065,6 +14075,9 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
14065
14075
  include ::RuboCop::Cop::CheckAssignment
14066
14076
  extend ::RuboCop::Cop::AutoCorrector
14067
14077
 
14078
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#55
14079
+ def on_csend(node); end
14080
+
14068
14081
  # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#51
14069
14082
  def on_lvasgn(node); end
14070
14083
 
@@ -14073,61 +14086,61 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
14073
14086
 
14074
14087
  private
14075
14088
 
14076
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#72
14089
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#73
14077
14090
  def check_assignment(node, _rhs); end
14078
14091
 
14079
14092
  # @return [Boolean]
14080
14093
  #
14081
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#120
14094
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#121
14082
14095
  def comment_within?(node); end
14083
14096
 
14084
14097
  # @return [Boolean]
14085
14098
  #
14086
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#90
14099
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#91
14087
14100
  def configured_to_not_be_inspected?(node); end
14088
14101
 
14089
14102
  # @return [Boolean]
14090
14103
  #
14091
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#114
14104
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#115
14092
14105
  def convertible_block?(node); end
14093
14106
 
14094
14107
  # @return [Boolean]
14095
14108
  #
14096
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#68
14109
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#69
14097
14110
  def end_with_percent_blank_string?(processed_source); end
14098
14111
 
14099
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#142
14112
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#143
14100
14113
  def max_line_length; end
14101
14114
 
14102
14115
  # @return [Boolean]
14103
14116
  #
14104
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#85
14117
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#86
14105
14118
  def offense?(node); end
14106
14119
 
14107
14120
  # @return [Boolean]
14108
14121
  #
14109
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#97
14122
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#98
14110
14123
  def other_cop_takes_precedence?(node); end
14111
14124
 
14112
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#78
14125
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#79
14113
14126
  def register_offense(node); end
14114
14127
 
14115
14128
  # @return [Boolean]
14116
14129
  #
14117
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#103
14130
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#104
14118
14131
  def single_line_block_chain_enabled?; end
14119
14132
 
14120
14133
  # @return [Boolean]
14121
14134
  #
14122
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#107
14135
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#108
14123
14136
  def suitable_as_single_line?(node); end
14124
14137
 
14125
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#133
14138
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#134
14126
14139
  def to_single_line(source); end
14127
14140
 
14128
14141
  # @return [Boolean]
14129
14142
  #
14130
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#128
14143
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#129
14131
14144
  def too_long?(node); end
14132
14145
  end
14133
14146
 
@@ -14262,21 +14275,29 @@ class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base
14262
14275
  include ::RuboCop::Cop::RangeHelp
14263
14276
  extend ::RuboCop::Cop::AutoCorrector
14264
14277
 
14265
- # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#28
14278
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32
14279
+ def on_csend(node); end
14280
+
14281
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32
14266
14282
  def on_send(node); end
14267
14283
 
14268
14284
  private
14269
14285
 
14270
14286
  # @return [Boolean]
14271
14287
  #
14272
- # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#51
14288
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#56
14273
14289
  def call_method_after_block?(node, dot_range, closing_block_delimiter_line_num); end
14274
14290
 
14275
- # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#35
14291
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#40
14276
14292
  def offending_range(node); end
14277
14293
 
14278
- # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#57
14294
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#62
14279
14295
  def selector_range(node); end
14296
+
14297
+ class << self
14298
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#28
14299
+ def autocorrect_incompatible_with; end
14300
+ end
14280
14301
  end
14281
14302
 
14282
14303
  # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#26
@@ -14883,149 +14904,166 @@ RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::SPACES_REGEXP = T.let(T.uns
14883
14904
  #
14884
14905
  # # good
14885
14906
  # a ** b
14907
+ # @example EnforcedStyleForRationalLiterals: no_space (default)
14908
+ # # bad
14909
+ # 1 / 48r
14886
14910
  #
14887
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#53
14911
+ # # good
14912
+ # 1/48r
14913
+ # @example EnforcedStyleForRationalLiterals: space
14914
+ # # bad
14915
+ # 1/48r
14916
+ #
14917
+ # # good
14918
+ # 1 / 48r
14919
+ #
14920
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#67
14888
14921
  class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base
14889
14922
  include ::RuboCop::Cop::PrecedingFollowingAlignment
14890
14923
  include ::RuboCop::Cop::RangeHelp
14891
14924
  include ::RuboCop::Cop::RationalLiteral
14892
14925
  extend ::RuboCop::Cop::AutoCorrector
14893
14926
 
14894
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119
14927
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#133
14895
14928
  def on_and(node); end
14896
14929
 
14897
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103
14930
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117
14898
14931
  def on_and_asgn(node); end
14899
14932
 
14900
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103
14933
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117
14901
14934
  def on_assignment(node); end
14902
14935
 
14903
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119
14936
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#133
14904
14937
  def on_binary(node); end
14905
14938
 
14906
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#111
14939
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#125
14907
14940
  def on_casgn(node); end
14908
14941
 
14909
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119
14942
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#133
14910
14943
  def on_class(node); end
14911
14944
 
14912
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103
14945
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117
14913
14946
  def on_cvasgn(node); end
14914
14947
 
14915
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103
14948
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117
14916
14949
  def on_gvasgn(node); end
14917
14950
 
14918
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#78
14951
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#92
14919
14952
  def on_if(node); end
14920
14953
 
14921
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103
14954
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117
14922
14955
  def on_ivasgn(node); end
14923
14956
 
14924
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103
14957
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117
14925
14958
  def on_lvasgn(node); end
14926
14959
 
14927
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103
14960
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117
14928
14961
  def on_masgn(node); end
14929
14962
 
14930
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#135
14963
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#149
14931
14964
  def on_match_pattern(node); end
14932
14965
 
14933
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#127
14966
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#141
14934
14967
  def on_op_asgn(node); end
14935
14968
 
14936
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119
14969
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#133
14937
14970
  def on_or(node); end
14938
14971
 
14939
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103
14972
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117
14940
14973
  def on_or_asgn(node); end
14941
14974
 
14942
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#70
14975
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#84
14943
14976
  def on_pair(node); end
14944
14977
 
14945
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#85
14978
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#99
14946
14979
  def on_resbody(node); end
14947
14980
 
14948
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#66
14981
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#80
14949
14982
  def on_sclass(node); end
14950
14983
 
14951
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#93
14984
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#107
14952
14985
  def on_send(node); end
14953
14986
 
14954
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#127
14987
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#141
14955
14988
  def on_special_asgn(node); end
14956
14989
 
14957
14990
  private
14958
14991
 
14959
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#238
14992
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#256
14960
14993
  def align_hash_cop_config; end
14961
14994
 
14962
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#181
14963
- def autocorrect(corrector, range); end
14995
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#195
14996
+ def autocorrect(corrector, range, right_operand); end
14964
14997
 
14965
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#165
14998
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#179
14966
14999
  def check_operator(type, operator, right_operand); end
14967
15000
 
14968
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#191
15001
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#209
14969
15002
  def enclose_operator_with_space(corrector, range); end
14970
15003
 
14971
15004
  # @return [Boolean]
14972
15005
  #
14973
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#218
15006
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#236
14974
15007
  def excess_leading_space?(type, operator, with_space); end
14975
15008
 
14976
15009
  # @return [Boolean]
14977
15010
  #
14978
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#233
15011
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#251
14979
15012
  def excess_trailing_space?(right_operand, with_space); end
14980
15013
 
14981
15014
  # @return [Boolean]
14982
15015
  #
14983
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#250
15016
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#274
14984
15017
  def force_equal_sign_alignment?; end
14985
15018
 
14986
15019
  # @return [Boolean]
14987
15020
  #
14988
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#242
15021
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#260
14989
15022
  def hash_table_style?; end
14990
15023
 
14991
15024
  # @yield [msg]
14992
15025
  #
14993
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#176
15026
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#190
14994
15027
  def offense(type, operator, with_space, right_operand); end
14995
15028
 
14996
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#204
15029
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#222
14997
15030
  def offense_message(type, operator, with_space, right_operand); end
14998
15031
 
14999
15032
  # @return [Boolean]
15000
15033
  #
15001
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#161
15034
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#175
15002
15035
  def operator_with_regular_syntax?(send_node); end
15003
15036
 
15004
15037
  # @return [Boolean]
15005
15038
  #
15006
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#155
15039
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#169
15007
15040
  def regular_operator?(send_node); end
15008
15041
 
15009
15042
  # @return [Boolean]
15010
15043
  #
15011
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#254
15012
- def should_not_have_surrounding_space?(operator); end
15044
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#278
15045
+ def should_not_have_surrounding_space?(operator, right_operand); end
15013
15046
 
15014
15047
  # @return [Boolean]
15015
15048
  #
15016
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#246
15049
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#264
15017
15050
  def space_around_exponent_operator?; end
15018
15051
 
15052
+ # @return [Boolean]
15053
+ #
15054
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#268
15055
+ def space_around_slash_operator?(right_operand); end
15056
+
15019
15057
  class << self
15020
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#62
15058
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#76
15021
15059
  def autocorrect_incompatible_with; end
15022
15060
  end
15023
15061
  end
15024
15062
 
15025
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#60
15063
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#74
15026
15064
  RuboCop::Cop::Layout::SpaceAroundOperators::EXCESSIVE_SPACE = T.let(T.unsafe(nil), String)
15027
15065
 
15028
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#59
15066
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#73
15029
15067
  RuboCop::Cop::Layout::SpaceAroundOperators::IRREGULAR_METHODS = T.let(T.unsafe(nil), Array)
15030
15068
 
15031
15069
  # Checks that block braces have or don't have a space before the opening
@@ -16800,22 +16838,22 @@ RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String)
16800
16838
  #
16801
16839
  # @example
16802
16840
  # # bad
16803
- # if some_var = true
16841
+ # if some_var = value
16804
16842
  # do_something
16805
16843
  # end
16806
16844
  #
16807
16845
  # # good
16808
- # if some_var == true
16846
+ # if some_var == value
16809
16847
  # do_something
16810
16848
  # end
16811
16849
  # @example AllowSafeAssignment: true (default)
16812
16850
  # # good
16813
- # if (some_var = true)
16851
+ # if (some_var = value)
16814
16852
  # do_something
16815
16853
  # end
16816
16854
  # @example AllowSafeAssignment: false
16817
16855
  # # bad
16818
- # if (some_var = true)
16856
+ # if (some_var = value)
16819
16857
  # do_something
16820
16858
  # end
16821
16859
  #
@@ -16897,10 +16935,10 @@ RuboCop::Cop::Lint::BigDecimalNew::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array
16897
16935
  # Checks for places where binary operator has identical operands.
16898
16936
  #
16899
16937
  # It covers arithmetic operators: `-`, `/`, `%`;
16900
- # comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, `<=`;
16938
+ # comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, ``<=``;
16901
16939
  # bitwise operators: `|`, `^`, `&`;
16902
16940
  # boolean operators: `&&`, `||`
16903
- # and "spaceship" operator - `<=>`.
16941
+ # and "spaceship" operator - ``<=>``.
16904
16942
  #
16905
16943
  # Simple arithmetic operations are allowed by this cop: `+`, `*`, `**`, `<<` and `>>`.
16906
16944
  # Although these can be rewritten in a different way, it should not be necessary to
@@ -17123,7 +17161,7 @@ end
17123
17161
  # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#67
17124
17162
  RuboCop::Cop::Lint::ConstantDefinitionInBlock::MSG = T.let(T.unsafe(nil), String)
17125
17163
 
17126
- # Checks for overwriting an exception with an exception result by use `rescue =>`.
17164
+ # Checks for overwriting an exception with an exception result by use ``rescue =>``.
17127
17165
  #
17128
17166
  # You intended to write as `rescue StandardError`.
17129
17167
  # However, you have written `rescue => StandardError`.
@@ -17303,36 +17341,39 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String)
17303
17341
  #
17304
17342
  # source://rubocop//lib/rubocop/cop/lint/debugger.rb#67
17305
17343
  class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base
17306
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#70
17344
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#71
17307
17345
  def on_send(node); end
17308
17346
 
17309
17347
  private
17310
17348
 
17311
17349
  # @return [Boolean]
17312
17350
  #
17313
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#116
17351
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#117
17314
17352
  def assumed_argument?(node); end
17315
17353
 
17316
17354
  # @return [Boolean]
17317
17355
  #
17318
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#95
17356
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#96
17319
17357
  def assumed_usage_context?(node); end
17320
17358
 
17321
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#105
17359
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#106
17322
17360
  def chained_method_name(send_node); end
17323
17361
 
17324
17362
  # @return [Boolean]
17325
17363
  #
17326
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#89
17364
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#90
17327
17365
  def debugger_method?(send_node); end
17328
17366
 
17329
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#82
17367
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#83
17330
17368
  def debugger_methods; end
17331
17369
 
17332
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#78
17370
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#79
17333
17371
  def message(node); end
17334
17372
  end
17335
17373
 
17374
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#69
17375
+ RuboCop::Cop::Lint::Debugger::BLOCK_TYPES = T.let(T.unsafe(nil), Array)
17376
+
17336
17377
  # source://rubocop//lib/rubocop/cop/lint/debugger.rb#68
17337
17378
  RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String)
17338
17379
 
@@ -19037,13 +19078,9 @@ RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String)
19037
19078
  # floating-point value representation to be exactly the same, which is very unlikely
19038
19079
  # if you perform any arithmetic operations involving precision loss.
19039
19080
  #
19040
- # @example
19041
- # # bad
19042
- # x == 0.1
19043
- # x != 0.1
19044
- #
19045
- # # good - using BigDecimal
19046
- # x.to_d == 0.1.to_d
19081
+ # # good - comparing against zero
19082
+ # x == 0.0
19083
+ # x != 0.0
19047
19084
  #
19048
19085
  # # good
19049
19086
  # (x - 0.1).abs < Float::EPSILON
@@ -19055,38 +19092,51 @@ RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String)
19055
19092
  # # Or some other epsilon based type of comparison:
19056
19093
  # # https://www.embeddeduse.com/2019/08/26/qt-compare-two-floats/
19057
19094
  #
19058
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#31
19095
+ # @example
19096
+ # # bad
19097
+ # x == 0.1
19098
+ # x != 0.1
19099
+ #
19100
+ # # good - using BigDecimal
19101
+ # x.to_d == 0.1.to_d
19102
+ #
19103
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#35
19059
19104
  class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base
19060
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#40
19105
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#44
19061
19106
  def on_send(node); end
19062
19107
 
19063
19108
  private
19064
19109
 
19065
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#79
19110
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#89
19066
19111
  def check_numeric_returning_method(node); end
19067
19112
 
19068
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#63
19113
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#73
19069
19114
  def check_send(node); end
19070
19115
 
19071
19116
  # @return [Boolean]
19072
19117
  #
19073
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#47
19118
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#53
19074
19119
  def float?(node); end
19120
+
19121
+ # @return [Boolean]
19122
+ #
19123
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#68
19124
+ def literal_zero?(node); end
19075
19125
  end
19076
19126
 
19077
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#34
19127
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#38
19078
19128
  RuboCop::Cop::Lint::FloatComparison::EQUALITY_METHODS = T.let(T.unsafe(nil), Array)
19079
19129
 
19080
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#36
19130
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#40
19081
19131
  RuboCop::Cop::Lint::FloatComparison::FLOAT_INSTANCE_METHODS = T.let(T.unsafe(nil), Set)
19082
19132
 
19083
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#35
19133
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#39
19084
19134
  RuboCop::Cop::Lint::FloatComparison::FLOAT_RETURNING_METHODS = T.let(T.unsafe(nil), Array)
19085
19135
 
19086
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#32
19136
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#36
19087
19137
  RuboCop::Cop::Lint::FloatComparison::MSG = T.let(T.unsafe(nil), String)
19088
19138
 
19089
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#38
19139
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#42
19090
19140
  RuboCop::Cop::Lint::FloatComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
19091
19141
 
19092
19142
  # Identifies Float literals which are, like, really really really
@@ -19142,7 +19192,7 @@ RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String)
19142
19192
  #
19143
19193
  # format('Numbered format: %1$s and numbered %2$s', a_value, another)
19144
19194
  #
19145
- # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#38
19195
+ # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#37
19146
19196
  class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Base
19147
19197
  # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#100
19148
19198
  def called_on_string?(param0 = T.unsafe(nil)); end
@@ -19280,6 +19330,9 @@ class RuboCop::Cop::Lint::HashCompareByIdentity < ::RuboCop::Cop::Base
19280
19330
  # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#37
19281
19331
  def id_as_hash_key?(param0 = T.unsafe(nil)); end
19282
19332
 
19333
+ # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41
19334
+ def on_csend(node); end
19335
+
19283
19336
  # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41
19284
19337
  def on_send(node); end
19285
19338
  end
@@ -19726,6 +19779,43 @@ end
19726
19779
  # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#28
19727
19780
  RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String)
19728
19781
 
19782
+ # Emulates the following Ruby warning in Ruby 3.3.
19783
+ #
19784
+ # [source,ruby]
19785
+ # ----
19786
+ # $ ruby -e '0.times { it }'
19787
+ # -e:1: warning: `it` calls without arguments will refer to the first block param in Ruby 3.4;
19788
+ # use it() or self.it
19789
+ # ----
19790
+ #
19791
+ # `it` calls without arguments will refer to the first block param in Ruby 3.4.
19792
+ # So use `it()` or `self.it` to ensure compatibility.
19793
+ #
19794
+ # @example
19795
+ #
19796
+ # # bad
19797
+ # do_something { it }
19798
+ #
19799
+ # # good
19800
+ # do_something { it() }
19801
+ # do_something { self.it }
19802
+ #
19803
+ # source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#27
19804
+ class RuboCop::Cop::Lint::ItWithoutArgumentsInBlock < ::RuboCop::Cop::Base
19805
+ include ::RuboCop::AST::NodePattern::Macros
19806
+
19807
+ # @return [Boolean]
19808
+ #
19809
+ # source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#48
19810
+ def deprecated_it_method?(node); end
19811
+
19812
+ # source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#33
19813
+ def on_block(node); end
19814
+ end
19815
+
19816
+ # source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#30
19817
+ RuboCop::Cop::Lint::ItWithoutArgumentsInBlock::MSG = T.let(T.unsafe(nil), String)
19818
+
19729
19819
  # Checks uses of lambda without a literal block.
19730
19820
  # It emulates the following warning in Ruby 3.0:
19731
19821
  #
@@ -19860,6 +19950,70 @@ end
19860
19950
  # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#38
19861
19951
  RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String)
19862
19952
 
19953
+ # Checks for literal assignments in the conditions of `if`, `while`, and `until`.
19954
+ # It emulates the following Ruby warning:
19955
+ #
19956
+ # [source,console]
19957
+ # ----
19958
+ # $ ruby -we 'if x = true; end'
19959
+ # -e:1: warning: found `= literal' in conditional, should be ==
19960
+ # ----
19961
+ #
19962
+ # As a lint cop, it cannot be determined if `==` is appropriate as intended,
19963
+ # therefore this cop does not provide autocorrection.
19964
+ #
19965
+ # @example
19966
+ #
19967
+ # # bad
19968
+ # if x = 42
19969
+ # do_something
19970
+ # end
19971
+ #
19972
+ # # good
19973
+ # if x == 42
19974
+ # do_something
19975
+ # end
19976
+ #
19977
+ # # good
19978
+ # if x = y
19979
+ # do_something
19980
+ # end
19981
+ #
19982
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#35
19983
+ class RuboCop::Cop::Lint::LiteralAssignmentInCondition < ::RuboCop::Cop::Base
19984
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39
19985
+ def on_if(node); end
19986
+
19987
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39
19988
+ def on_until(node); end
19989
+
19990
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39
19991
+ def on_while(node); end
19992
+
19993
+ private
19994
+
19995
+ # @return [Boolean]
19996
+ #
19997
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#62
19998
+ def forbidden_literal?(node); end
19999
+
20000
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#72
20001
+ def offense_range(asgn_node, rhs); end
20002
+
20003
+ # @return [Boolean]
20004
+ #
20005
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#68
20006
+ def parallel_assignment_with_splat_operator?(node); end
20007
+
20008
+ # @yield [node]
20009
+ #
20010
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#56
20011
+ def traverse_node(node, &block); end
20012
+ end
20013
+
20014
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#36
20015
+ RuboCop::Cop::Lint::LiteralAssignmentInCondition::MSG = T.let(T.unsafe(nil), String)
20016
+
19863
20017
  # Checks for interpolated literals.
19864
20018
  #
19865
20019
  # @example
@@ -20547,22 +20701,16 @@ class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base
20547
20701
  # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#28
20548
20702
  def on_block(node); end
20549
20703
 
20550
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#51
20704
+ # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#42
20551
20705
  def on_block_body_of_reduce(param0 = T.unsafe(nil)); end
20552
20706
 
20553
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#38
20707
+ # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#28
20554
20708
  def on_numblock(node); end
20555
20709
 
20556
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#56
20557
- def on_numblock_body_of_reduce(param0 = T.unsafe(nil)); end
20558
-
20559
20710
  private
20560
20711
 
20561
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#60
20712
+ # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#49
20562
20713
  def parent_block_node(node); end
20563
-
20564
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#64
20565
- def parent_numblock_node(node); end
20566
20714
  end
20567
20715
 
20568
20716
  # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#26
@@ -20795,10 +20943,10 @@ RuboCop::Cop::Lint::NonAtomicFileOperation::RESTRICT_ON_SEND = T.let(T.unsafe(ni
20795
20943
  class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Base
20796
20944
  extend ::RuboCop::Cop::AutoCorrector
20797
20945
 
20798
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#174
20946
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#172
20799
20947
  def loop_variable(param0 = T.unsafe(nil)); end
20800
20948
 
20801
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#157
20949
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#155
20802
20950
  def method_require?(param0 = T.unsafe(nil)); end
20803
20951
 
20804
20952
  # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#65
@@ -20810,19 +20958,19 @@ class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Base
20810
20958
  # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#77
20811
20959
  def on_numblock(node); end
20812
20960
 
20813
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#147
20961
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#145
20814
20962
  def unsorted_dir_block?(param0 = T.unsafe(nil)); end
20815
20963
 
20816
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#152
20964
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#150
20817
20965
  def unsorted_dir_each?(param0 = T.unsafe(nil)); end
20818
20966
 
20819
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#168
20967
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#166
20820
20968
  def unsorted_dir_each_pass?(param0 = T.unsafe(nil)); end
20821
20969
 
20822
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#162
20970
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#160
20823
20971
  def unsorted_dir_glob_pass?(param0 = T.unsafe(nil)); end
20824
20972
 
20825
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#179
20973
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#177
20826
20974
  def var_is_required?(param0, param1); end
20827
20975
 
20828
20976
  private
@@ -20842,12 +20990,12 @@ class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Base
20842
20990
 
20843
20991
  # @return [Boolean]
20844
20992
  #
20845
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#138
20993
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#136
20846
20994
  def unsorted_dir_loop?(node); end
20847
20995
 
20848
20996
  # @return [Boolean]
20849
20997
  #
20850
- # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#142
20998
+ # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#140
20851
20999
  def unsorted_dir_pass?(node); end
20852
21000
  end
20853
21001
 
@@ -20922,7 +21070,7 @@ RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String)
20922
21070
  #
20923
21071
  # Conversion with `Integer`, `Float`, etc. will raise an `ArgumentError`
20924
21072
  # if given input that is not numeric (eg. an empty string), whereas
20925
- # `to_i`, etc. will try to convert regardless of input (`''.to_i => 0`).
21073
+ # `to_i`, etc. will try to convert regardless of input (``''.to_i => 0``).
20926
21074
  # As such, this cop is disabled by default because it's not necessarily
20927
21075
  # always correct to raise if a value is not numeric.
20928
21076
  #
@@ -20980,7 +21128,10 @@ class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base
20980
21128
  include ::RuboCop::Cop::AllowedPattern
20981
21129
  extend ::RuboCop::Cop::AutoCorrector
20982
21130
 
20983
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#103
21131
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#107
21132
+ def on_csend(node); end
21133
+
21134
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#107
20984
21135
  def on_send(node); end
20985
21136
 
20986
21137
  # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#93
@@ -20993,43 +21144,43 @@ class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base
20993
21144
 
20994
21145
  # @return [Boolean]
20995
21146
  #
20996
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#160
21147
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#165
20997
21148
  def allow_receiver?(receiver); end
20998
21149
 
20999
21150
  # @return [Boolean]
21000
21151
  #
21001
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#172
21152
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#177
21002
21153
  def allowed_method_name?(name); end
21003
21154
 
21004
21155
  # @return [Boolean]
21005
21156
  #
21006
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#182
21157
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#187
21007
21158
  def conversion_method?(method_name); end
21008
21159
 
21009
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#146
21160
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#151
21010
21161
  def correct_method(node, receiver); end
21011
21162
 
21012
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#150
21163
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#155
21013
21164
  def correct_sym_method(to_method); end
21014
21165
 
21015
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#129
21166
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#134
21016
21167
  def handle_as_symbol(node); end
21017
21168
 
21018
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#110
21169
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#115
21019
21170
  def handle_conversion_method(node); end
21020
21171
 
21021
21172
  # @return [Boolean]
21022
21173
  #
21023
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#190
21174
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#195
21024
21175
  def ignored_class?(name); end
21025
21176
 
21026
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#186
21177
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#191
21027
21178
  def ignored_classes; end
21028
21179
 
21029
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#155
21180
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#160
21030
21181
  def remove_parentheses(corrector, node); end
21031
21182
 
21032
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#176
21183
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#181
21033
21184
  def top_receiver(node); end
21034
21185
  end
21035
21186
 
@@ -21957,6 +22108,22 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T
21957
22108
  #
21958
22109
  # # good - without `&.` this will always return `true`
21959
22110
  # foo&.respond_to?(:to_a)
22111
+ #
22112
+ # # bad - for `nil`s conversion methods return default values for the type
22113
+ # foo&.to_h || {}
22114
+ # foo&.to_h { |k, v| [k, v] } || {}
22115
+ # foo&.to_a || []
22116
+ # foo&.to_i || 0
22117
+ # foo&.to_f || 0.0
22118
+ # foo&.to_s || ''
22119
+ #
22120
+ # # good
22121
+ # foo.to_h
22122
+ # foo.to_h { |k, v| [k, v] }
22123
+ # foo.to_a
22124
+ # foo.to_i
22125
+ # foo.to_f
22126
+ # foo.to_s
21960
22127
  # @example AllowedMethods: [nil_safe_method]
21961
22128
  # # bad
21962
22129
  # do_something if attrs&.nil_safe_method(:[])
@@ -21965,38 +22132,47 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T
21965
22132
  # do_something if attrs.nil_safe_method(:[])
21966
22133
  # do_something if attrs&.not_nil_safe_method(:[])
21967
22134
  #
21968
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#61
22135
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#77
21969
22136
  class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base
21970
22137
  include ::RuboCop::Cop::AllowedMethods
21971
22138
  include ::RuboCop::Cop::RangeHelp
21972
22139
  extend ::RuboCop::Cop::AutoCorrector
21973
22140
 
21974
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#78
22141
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#95
22142
+ def conversion_with_default?(param0 = T.unsafe(nil)); end
22143
+
22144
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#107
21975
22145
  def on_csend(node); end
21976
22146
 
21977
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#73
22147
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#117
22148
+ def on_or(node); end
22149
+
22150
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#90
21978
22151
  def respond_to_nil_specific_method?(param0 = T.unsafe(nil)); end
21979
22152
 
21980
22153
  private
21981
22154
 
21982
22155
  # @return [Boolean]
21983
22156
  #
21984
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#91
22157
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#134
21985
22158
  def check?(node); end
21986
22159
 
21987
22160
  # @return [Boolean]
21988
22161
  #
21989
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#101
22162
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#144
21990
22163
  def condition?(parent, node); end
21991
22164
  end
21992
22165
 
21993
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#66
22166
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#82
21994
22167
  RuboCop::Cop::Lint::RedundantSafeNavigation::MSG = T.let(T.unsafe(nil), String)
21995
22168
 
21996
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#68
22169
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#83
22170
+ RuboCop::Cop::Lint::RedundantSafeNavigation::MSG_LITERAL = T.let(T.unsafe(nil), String)
22171
+
22172
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#85
21997
22173
  RuboCop::Cop::Lint::RedundantSafeNavigation::NIL_SPECIFIC_METHODS = T.let(T.unsafe(nil), Set)
21998
22174
 
21999
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#70
22175
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#87
22000
22176
  RuboCop::Cop::Lint::RedundantSafeNavigation::SNAKE_CASE = T.let(T.unsafe(nil), Regexp)
22001
22177
 
22002
22178
  # Checks for unneeded usages of splat expansion
@@ -22668,24 +22844,24 @@ class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base
22668
22844
  # @param send_node [RuboCop::AST::SendNode]
22669
22845
  # @return [String]
22670
22846
  #
22671
- # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#63
22847
+ # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#62
22672
22848
  def add_safe_navigation_operator(offense_range:, send_node:); end
22673
22849
 
22674
22850
  # @param corrector [RuboCop::Cop::Corrector]
22675
22851
  # @param offense_range [Parser::Source::Range]
22676
22852
  # @param send_node [RuboCop::AST::SendNode]
22677
22853
  #
22678
- # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#82
22854
+ # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#81
22679
22855
  def autocorrect(corrector, offense_range:, send_node:); end
22680
22856
 
22681
22857
  # @return [Boolean]
22682
22858
  #
22683
- # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#91
22859
+ # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#90
22684
22860
  def brackets?(send_node); end
22685
22861
 
22686
22862
  # @return [Boolean]
22687
22863
  #
22688
- # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#95
22864
+ # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#94
22689
22865
  def require_parentheses?(send_node); end
22690
22866
  end
22691
22867
 
@@ -22839,55 +23015,74 @@ RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String)
22839
23015
  # foo = foo
22840
23016
  # foo, bar = foo, bar
22841
23017
  # Foo = Foo
23018
+ # hash['foo'] = hash['foo']
23019
+ # obj.attr = obj.attr
22842
23020
  #
22843
23021
  # # good
22844
23022
  # foo = bar
22845
23023
  # foo, bar = bar, foo
22846
23024
  # Foo = Bar
23025
+ # hash['foo'] = hash['bar']
23026
+ # obj.attr = obj.attr2
23027
+ #
23028
+ # # good (method calls possibly can return different results)
23029
+ # hash[foo] = hash[foo]
22847
23030
  #
22848
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#19
23031
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#26
22849
23032
  class RuboCop::Cop::Lint::SelfAssignment < ::RuboCop::Cop::Base
22850
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#53
23033
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#69
22851
23034
  def on_and_asgn(node); end
22852
23035
 
22853
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#41
23036
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#57
22854
23037
  def on_casgn(node); end
22855
23038
 
22856
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29
23039
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#36
23040
+ def on_csend(node); end
23041
+
23042
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45
22857
23043
  def on_cvasgn(node); end
22858
23044
 
22859
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29
23045
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45
22860
23046
  def on_gvasgn(node); end
22861
23047
 
22862
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29
23048
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45
22863
23049
  def on_ivasgn(node); end
22864
23050
 
22865
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29
23051
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45
22866
23052
  def on_lvasgn(node); end
22867
23053
 
22868
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#49
23054
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#65
22869
23055
  def on_masgn(node); end
22870
23056
 
22871
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#53
23057
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#69
22872
23058
  def on_or_asgn(node); end
22873
23059
 
23060
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#36
23061
+ def on_send(node); end
23062
+
22874
23063
  private
22875
23064
 
23065
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#103
23066
+ def handle_attribute_assignment(node); end
23067
+
23068
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#92
23069
+ def handle_key_assignment(node); end
23070
+
22876
23071
  # @return [Boolean]
22877
23072
  #
22878
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#61
23073
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#77
22879
23074
  def multiple_self_assignment?(node); end
22880
23075
 
22881
23076
  # @return [Boolean]
22882
23077
  #
22883
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#71
23078
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#87
22884
23079
  def rhs_matches_lhs?(rhs, lhs); end
22885
23080
  end
22886
23081
 
22887
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#22
23082
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29
22888
23083
  RuboCop::Cop::Lint::SelfAssignment::ASSIGNMENT_TYPE_TO_RHS_TYPE = T.let(T.unsafe(nil), Hash)
22889
23084
 
22890
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#20
23085
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#27
22891
23086
  RuboCop::Cop::Lint::SelfAssignment::MSG = T.let(T.unsafe(nil), String)
22892
23087
 
22893
23088
  # Checks for `send`, `public_send`, and `__send__` methods
@@ -23411,6 +23606,7 @@ RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String)
23411
23606
  # 'underscored_string'.to_sym
23412
23607
  # :'underscored_symbol'
23413
23608
  # 'hyphenated-string'.to_sym
23609
+ # "string_#{interpolation}".to_sym
23414
23610
  #
23415
23611
  # # good
23416
23612
  # :string
@@ -23418,6 +23614,7 @@ RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String)
23418
23614
  # :underscored_string
23419
23615
  # :underscored_symbol
23420
23616
  # :'hyphenated-string'
23617
+ # :"string_#{interpolation}"
23421
23618
  # @example EnforcedStyle: strict (default)
23422
23619
  #
23423
23620
  # # bad
@@ -23453,60 +23650,60 @@ RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String)
23453
23650
  # b: 2
23454
23651
  # }
23455
23652
  #
23456
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#66
23653
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#68
23457
23654
  class RuboCop::Cop::Lint::SymbolConversion < ::RuboCop::Cop::Base
23458
23655
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
23459
23656
  include ::RuboCop::Cop::SymbolHelp
23460
23657
  extend ::RuboCop::Cop::AutoCorrector
23461
23658
 
23462
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#100
23659
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#105
23463
23660
  def on_hash(node); end
23464
23661
 
23465
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#76
23662
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#78
23466
23663
  def on_send(node); end
23467
23664
 
23468
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#83
23665
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#88
23469
23666
  def on_sym(node); end
23470
23667
 
23471
23668
  private
23472
23669
 
23473
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#142
23670
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#147
23474
23671
  def correct_hash_key(node); end
23475
23672
 
23476
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#161
23673
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#166
23477
23674
  def correct_inconsistent_hash_keys(keys); end
23478
23675
 
23479
23676
  # @return [Boolean]
23480
23677
  #
23481
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#134
23678
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#139
23482
23679
  def in_alias?(node); end
23483
23680
 
23484
23681
  # @return [Boolean]
23485
23682
  #
23486
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#138
23683
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#143
23487
23684
  def in_percent_literal_array?(node); end
23488
23685
 
23489
23686
  # @return [Boolean]
23490
23687
  #
23491
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#121
23688
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#126
23492
23689
  def properly_quoted?(source, value); end
23493
23690
 
23494
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#117
23691
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#122
23495
23692
  def register_offense(node, correction:, message: T.unsafe(nil)); end
23496
23693
 
23497
23694
  # @return [Boolean]
23498
23695
  #
23499
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#130
23696
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#135
23500
23697
  def requires_quotes?(sym_node); end
23501
23698
  end
23502
23699
 
23503
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#71
23700
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#73
23504
23701
  RuboCop::Cop::Lint::SymbolConversion::MSG = T.let(T.unsafe(nil), String)
23505
23702
 
23506
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#72
23703
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#74
23507
23704
  RuboCop::Cop::Lint::SymbolConversion::MSG_CONSISTENCY = T.let(T.unsafe(nil), String)
23508
23705
 
23509
- # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#74
23706
+ # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#76
23510
23707
  RuboCop::Cop::Lint::SymbolConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
23511
23708
 
23512
23709
  # Repacks Parser's diagnostics/errors
@@ -25210,7 +25407,7 @@ class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker
25210
25407
  end
25211
25408
 
25212
25409
  # Checks for uses of `Integer#times` that will never yield
25213
- # (when the integer <= 0) or that will only ever yield once
25410
+ # (when the integer ``<= 0``) or that will only ever yield once
25214
25411
  # (`1.times`).
25215
25412
  #
25216
25413
  # @example
@@ -25278,6 +25475,16 @@ RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
25278
25475
  # Checks for operators, variables, literals, lambda, proc and nonmutating
25279
25476
  # methods used in void context.
25280
25477
  #
25478
+ # `each` blocks are allowed to prevent false positives.
25479
+ # For example, the expression inside the `each` block below.
25480
+ # It's not void, especially when the receiver is an `Enumerator`:
25481
+ #
25482
+ # [source,ruby]
25483
+ # ----
25484
+ # enumerator = [1, 2, 3].filter
25485
+ # enumerator.each { |item| item >= 2 } #=> [2, 3]
25486
+ # ----
25487
+ #
25281
25488
  # @example CheckForMethodsWithNoSideEffects: false (default)
25282
25489
  # # bad
25283
25490
  # def some_method
@@ -25312,101 +25519,109 @@ RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
25312
25519
  # do_something(some_array)
25313
25520
  # end
25314
25521
  #
25315
- # source://rubocop//lib/rubocop/cop/lint/void.rb#43
25522
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#53
25316
25523
  class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base
25317
25524
  include ::RuboCop::Cop::RangeHelp
25318
25525
  extend ::RuboCop::Cop::AutoCorrector
25319
25526
 
25320
- # source://rubocop//lib/rubocop/cop/lint/void.rb#80
25527
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#92
25321
25528
  def on_begin(node); end
25322
25529
 
25323
- # source://rubocop//lib/rubocop/cop/lint/void.rb#71
25530
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#82
25324
25531
  def on_block(node); end
25325
25532
 
25326
- # source://rubocop//lib/rubocop/cop/lint/void.rb#80
25533
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#92
25327
25534
  def on_kwbegin(node); end
25328
25535
 
25329
- # source://rubocop//lib/rubocop/cop/lint/void.rb#71
25536
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#82
25330
25537
  def on_numblock(node); end
25331
25538
 
25332
25539
  private
25333
25540
 
25334
- # source://rubocop//lib/rubocop/cop/lint/void.rb#194
25541
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#212
25335
25542
  def autocorrect_nonmutating_send(corrector, node, suggestion); end
25336
25543
 
25337
- # source://rubocop//lib/rubocop/cop/lint/void.rb#190
25544
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#208
25338
25545
  def autocorrect_void_expression(corrector, node); end
25339
25546
 
25340
- # source://rubocop//lib/rubocop/cop/lint/void.rb#178
25547
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#196
25341
25548
  def autocorrect_void_op(corrector, node); end
25342
25549
 
25343
- # source://rubocop//lib/rubocop/cop/lint/void.rb#87
25550
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#99
25344
25551
  def check_begin(node); end
25345
25552
 
25346
- # source://rubocop//lib/rubocop/cop/lint/void.rb#93
25553
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#108
25347
25554
  def check_expression(expr); end
25348
25555
 
25349
- # source://rubocop//lib/rubocop/cop/lint/void.rb#128
25556
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#146
25350
25557
  def check_literal(node); end
25351
25558
 
25352
- # source://rubocop//lib/rubocop/cop/lint/void.rb#152
25559
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#170
25353
25560
  def check_nonmutating(node); end
25354
25561
 
25355
- # source://rubocop//lib/rubocop/cop/lint/void.rb#136
25562
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#154
25356
25563
  def check_self(node); end
25357
25564
 
25358
- # source://rubocop//lib/rubocop/cop/lint/void.rb#113
25565
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#128
25359
25566
  def check_var(node); end
25360
25567
 
25361
- # source://rubocop//lib/rubocop/cop/lint/void.rb#144
25568
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#162
25362
25569
  def check_void_expression(node); end
25363
25570
 
25364
- # source://rubocop//lib/rubocop/cop/lint/void.rb#104
25365
- def check_void_op(node); end
25571
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#118
25572
+ def check_void_op(node, &block); end
25366
25573
 
25367
25574
  # @return [Boolean]
25368
25575
  #
25369
- # source://rubocop//lib/rubocop/cop/lint/void.rb#170
25576
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#221
25577
+ def entirely_literal?(node); end
25578
+
25579
+ # @return [Boolean]
25580
+ #
25581
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#188
25370
25582
  def in_void_context?(node); end
25371
25583
  end
25372
25584
 
25373
- # source://rubocop//lib/rubocop/cop/lint/void.rb#55
25585
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#66
25374
25586
  RuboCop::Cop::Lint::Void::BINARY_OPERATORS = T.let(T.unsafe(nil), Array)
25375
25587
 
25376
- # source://rubocop//lib/rubocop/cop/lint/void.rb#52
25588
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#60
25589
+ RuboCop::Cop::Lint::Void::CONST_MSG = T.let(T.unsafe(nil), String)
25590
+
25591
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#63
25377
25592
  RuboCop::Cop::Lint::Void::EXPRESSION_MSG = T.let(T.unsafe(nil), String)
25378
25593
 
25379
- # source://rubocop//lib/rubocop/cop/lint/void.rb#50
25594
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#61
25380
25595
  RuboCop::Cop::Lint::Void::LIT_MSG = T.let(T.unsafe(nil), String)
25381
25596
 
25382
- # source://rubocop//lib/rubocop/cop/lint/void.rb#66
25597
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#77
25383
25598
  RuboCop::Cop::Lint::Void::METHODS_REPLACEABLE_BY_EACH = T.let(T.unsafe(nil), Array)
25384
25599
 
25385
- # source://rubocop//lib/rubocop/cop/lint/void.rb#68
25600
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#79
25386
25601
  RuboCop::Cop::Lint::Void::NONMUTATING_METHODS = T.let(T.unsafe(nil), Array)
25387
25602
 
25388
- # source://rubocop//lib/rubocop/cop/lint/void.rb#59
25603
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#70
25389
25604
  RuboCop::Cop::Lint::Void::NONMUTATING_METHODS_WITH_BANG_VERSION = T.let(T.unsafe(nil), Array)
25390
25605
 
25391
- # source://rubocop//lib/rubocop/cop/lint/void.rb#53
25606
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#64
25392
25607
  RuboCop::Cop::Lint::Void::NONMUTATING_MSG = T.let(T.unsafe(nil), String)
25393
25608
 
25394
- # source://rubocop//lib/rubocop/cop/lint/void.rb#57
25609
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#68
25395
25610
  RuboCop::Cop::Lint::Void::OPERATORS = T.let(T.unsafe(nil), Array)
25396
25611
 
25397
- # source://rubocop//lib/rubocop/cop/lint/void.rb#48
25612
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#58
25398
25613
  RuboCop::Cop::Lint::Void::OP_MSG = T.let(T.unsafe(nil), String)
25399
25614
 
25400
- # source://rubocop//lib/rubocop/cop/lint/void.rb#51
25615
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#62
25401
25616
  RuboCop::Cop::Lint::Void::SELF_MSG = T.let(T.unsafe(nil), String)
25402
25617
 
25403
- # source://rubocop//lib/rubocop/cop/lint/void.rb#56
25618
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#67
25404
25619
  RuboCop::Cop::Lint::Void::UNARY_OPERATORS = T.let(T.unsafe(nil), Array)
25405
25620
 
25406
- # source://rubocop//lib/rubocop/cop/lint/void.rb#49
25621
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#59
25407
25622
  RuboCop::Cop::Lint::Void::VAR_MSG = T.let(T.unsafe(nil), String)
25408
25623
 
25409
- # source://rubocop//lib/rubocop/cop/lint/void.rb#58
25624
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#69
25410
25625
  RuboCop::Cop::Lint::Void::VOID_CONTEXT_TYPES = T.let(T.unsafe(nil), Array)
25411
25626
 
25412
25627
  # Common functionality for obtaining source ranges from regexp matches
@@ -25618,9 +25833,9 @@ module RuboCop::Cop::Metrics; end
25618
25833
  #
25619
25834
  # Interpreting ABC size:
25620
25835
  #
25621
- # * <= 17 satisfactory
25622
- # * 18..30 unsatisfactory
25623
- # * > 30 dangerous
25836
+ # * ``<= 17`` satisfactory
25837
+ # * `18..30` unsatisfactory
25838
+ # * `>` 30 dangerous
25624
25839
  #
25625
25840
  # You can have repeated "attributes" calls count as a single "branch".
25626
25841
  # For this purpose, attributes are any method with no argument; no attempt
@@ -25800,18 +26015,18 @@ RuboCop::Cop::Metrics::BlockNesting::NESTING_BLOCKS = T.let(T.unsafe(nil), Array
25800
26015
  class RuboCop::Cop::Metrics::ClassLength < ::RuboCop::Cop::Base
25801
26016
  include ::RuboCop::Cop::CodeLength
25802
26017
 
25803
- # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#47
26018
+ # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#52
25804
26019
  def on_casgn(node); end
25805
26020
 
25806
26021
  # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#42
25807
26022
  def on_class(node); end
25808
26023
 
25809
- # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#42
26024
+ # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#46
25810
26025
  def on_sclass(node); end
25811
26026
 
25812
26027
  private
25813
26028
 
25814
- # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#65
26029
+ # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#70
25815
26030
  def message(length, max_length); end
25816
26031
  end
25817
26032
 
@@ -27353,7 +27568,7 @@ class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base
27353
27568
  # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#27
27354
27569
  def class_or_struct_return_method?(param0 = T.unsafe(nil)); end
27355
27570
 
27356
- # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#69
27571
+ # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#68
27357
27572
  def literal_receiver?(param0 = T.unsafe(nil)); end
27358
27573
 
27359
27574
  # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#33
@@ -27368,7 +27583,7 @@ class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base
27368
27583
 
27369
27584
  # @return [Boolean]
27370
27585
  #
27371
- # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#74
27586
+ # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#73
27372
27587
  def allowed_conditional_expression_on_rhs?(node); end
27373
27588
 
27374
27589
  # @return [Boolean]
@@ -27378,7 +27593,7 @@ class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base
27378
27593
 
27379
27594
  # @return [Boolean]
27380
27595
  #
27381
- # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#78
27596
+ # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#77
27382
27597
  def contains_constant?(node); end
27383
27598
  end
27384
27599
 
@@ -30691,7 +30906,16 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
30691
30906
  #
30692
30907
  # This cop also identifies places where `use_args(*args)`/`use_kwargs(**kwargs)` can be
30693
30908
  # replaced by `use_args(*)`/`use_kwargs(**)`; if desired, this functionality can be disabled
30694
- # by setting UseAnonymousForwarding: false.
30909
+ # by setting `UseAnonymousForwarding: false`.
30910
+ #
30911
+ # And this cop has `RedundantRestArgumentNames`, `RedundantKeywordRestArgumentNames`,
30912
+ # and `RedundantBlockArgumentNames` options. This configuration is a list of redundant names
30913
+ # that are sufficient for anonymizing meaningless naming.
30914
+ #
30915
+ # Meaningless names that are commonly used can be anonymized by default:
30916
+ # e.g., `*args`, `**options`, `&block`, and so on.
30917
+ #
30918
+ # Names not on this list are likely to be meaningful and are allowed by default.
30695
30919
  #
30696
30920
  # @example
30697
30921
  # # bad
@@ -30746,191 +30970,232 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
30746
30970
  # def foo(**kwargs)
30747
30971
  # bar(**kwargs)
30748
30972
  # end
30973
+ # @example RedundantRestArgumentNames: ['args', 'arguments'] (default)
30974
+ # # bad
30975
+ # def foo(*args)
30976
+ # bar(*args)
30977
+ # end
30978
+ #
30979
+ # # good
30980
+ # def foo(*)
30981
+ # bar(*)
30982
+ # end
30983
+ # @example RedundantKeywordRestArgumentNames: ['kwargs', 'options', 'opts'] (default)
30984
+ # # bad
30985
+ # def foo(**kwargs)
30986
+ # bar(**kwargs)
30987
+ # end
30749
30988
  #
30750
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#75
30989
+ # # good
30990
+ # def foo(**)
30991
+ # bar(**)
30992
+ # end
30993
+ # @example RedundantBlockArgumentNames: ['blk', 'block', 'proc'] (default)
30994
+ # # bad
30995
+ # def foo(&block)
30996
+ # bar(&block)
30997
+ # end
30998
+ #
30999
+ # # good
31000
+ # def foo(&)
31001
+ # bar(&)
31002
+ # end
31003
+ #
31004
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#116
30751
31005
  class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
30752
31006
  include ::RuboCop::Cop::RangeHelp
30753
31007
  extend ::RuboCop::Cop::AutoCorrector
30754
31008
  extend ::RuboCop::Cop::TargetRubyVersion
30755
31009
 
30756
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#89
31010
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#134
30757
31011
  def on_def(node); end
30758
31012
 
30759
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#89
31013
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#134
30760
31014
  def on_defs(node); end
30761
31015
 
30762
31016
  private
30763
31017
 
30764
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#122
31018
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#174
30765
31019
  def add_forward_all_offenses(node, send_classifications, forwardable_args); end
30766
31020
 
30767
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#233
31021
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#295
30768
31022
  def add_parens_if_missing(node, corrector); end
30769
31023
 
30770
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#131
31024
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#183
30771
31025
  def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end
30772
31026
 
30773
31027
  # @return [Boolean]
30774
31028
  #
30775
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#225
31029
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#287
30776
31030
  def allow_only_rest_arguments?; end
30777
31031
 
30778
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#217
31032
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#279
30779
31033
  def arguments_range(node, first_node); end
30780
31034
 
30781
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#174
31035
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#226
30782
31036
  def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end
30783
31037
 
30784
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#159
31038
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#211
30785
31039
  def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end
30786
31040
 
30787
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#114
31041
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#158
30788
31042
  def extract_forwardable_args(args); end
30789
31043
 
30790
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#149
31044
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#201
30791
31045
  def non_splat_or_block_pass_lvar_references(body); end
30792
31046
 
30793
31047
  # @return [Boolean]
30794
31048
  #
30795
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#118
31049
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#170
30796
31050
  def only_forwards_all?(send_classifications); end
30797
31051
 
30798
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#207
31052
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#162
31053
+ def redundant_forwardable_named_args(restarg, kwrestarg, blockarg); end
31054
+
31055
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#243
31056
+ def redundant_named_arg(arg, config_name, keyword); end
31057
+
31058
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#269
30799
31059
  def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end
30800
31060
 
30801
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#191
31061
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#253
30802
31062
  def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end
30803
31063
 
30804
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#199
31064
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#261
30805
31065
  def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end
30806
31066
 
30807
31067
  # @return [Boolean]
30808
31068
  #
30809
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#229
31069
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#291
30810
31070
  def use_anonymous_forwarding?; end
31071
+
31072
+ class << self
31073
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#130
31074
+ def autocorrect_incompatible_with; end
31075
+ end
30811
31076
  end
30812
31077
 
30813
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#83
31078
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#124
30814
31079
  RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array)
30815
31080
 
30816
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#86
31081
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#127
30817
31082
  RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String)
30818
31083
 
30819
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#82
31084
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#123
30820
31085
  RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array)
30821
31086
 
30822
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#85
31087
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#126
30823
31088
  RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String)
30824
31089
 
30825
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#87
31090
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#128
30826
31091
  RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String)
30827
31092
 
30828
31093
  # Classifies send nodes for possible rest/kwrest/all (including block) forwarding.
30829
31094
  #
30830
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#240
31095
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#302
30831
31096
  class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier
30832
31097
  extend ::RuboCop::AST::NodePattern::Macros
30833
31098
 
30834
31099
  # @return [SendNodeClassifier] a new instance of SendNodeClassifier
30835
31100
  #
30836
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#252
31101
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#314
30837
31102
  def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end
30838
31103
 
30839
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#280
31104
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#342
30840
31105
  def classification; end
30841
31106
 
30842
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#247
31107
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#309
30843
31108
  def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end
30844
31109
 
30845
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#274
31110
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#336
30846
31111
  def forwarded_block_arg; end
30847
31112
 
30848
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#250
31113
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#312
30849
31114
  def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end
30850
31115
 
30851
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#268
31116
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#330
30852
31117
  def forwarded_kwrest_arg; end
30853
31118
 
30854
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#262
31119
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#324
30855
31120
  def forwarded_rest_arg; end
30856
31121
 
30857
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#244
31122
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#306
30858
31123
  def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end
30859
31124
 
30860
31125
  private
30861
31126
 
30862
31127
  # @return [Boolean]
30863
31128
  #
30864
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#348
31129
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#410
30865
31130
  def additional_kwargs?; end
30866
31131
 
30867
31132
  # @return [Boolean]
30868
31133
  #
30869
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#344
31134
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#406
30870
31135
  def additional_kwargs_or_forwarded_kwargs?; end
30871
31136
 
30872
31137
  # @return [Boolean]
30873
31138
  #
30874
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#358
31139
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#420
30875
31140
  def allow_offense_for_no_block?; end
30876
31141
 
30877
31142
  # @return [Boolean]
30878
31143
  #
30879
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#329
31144
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#391
30880
31145
  def any_arg_referenced?; end
30881
31146
 
30882
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#313
31147
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#375
30883
31148
  def arguments; end
30884
31149
 
30885
31150
  # @return [Boolean]
30886
31151
  #
30887
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#292
31152
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#354
30888
31153
  def can_forward_all?; end
30889
31154
 
30890
31155
  # @return [Boolean]
30891
31156
  #
30892
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#352
31157
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#414
30893
31158
  def forward_additional_kwargs?; end
30894
31159
 
30895
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#309
31160
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#371
30896
31161
  def forwarded_rest_and_kwrest_args; end
30897
31162
 
30898
31163
  # @return [Boolean]
30899
31164
  #
30900
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#362
31165
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#424
30901
31166
  def no_additional_args?; end
30902
31167
 
30903
31168
  # @return [Boolean]
30904
31169
  #
30905
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#337
31170
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#399
30906
31171
  def no_post_splat_args?; end
30907
31172
 
30908
31173
  # @return [Boolean]
30909
31174
  #
30910
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#305
31175
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367
30911
31176
  def offensive_block_forwarding?; end
30912
31177
 
30913
31178
  # @return [Boolean]
30914
31179
  #
30915
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#325
31180
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#387
30916
31181
  def referenced_block_arg?; end
30917
31182
 
30918
31183
  # @return [Boolean]
30919
31184
  #
30920
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#321
31185
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#383
30921
31186
  def referenced_kwrest_arg?; end
30922
31187
 
30923
31188
  # @return [Boolean]
30924
31189
  #
30925
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#317
31190
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#379
30926
31191
  def referenced_rest_arg?; end
30927
31192
 
30928
31193
  # @return [Boolean]
30929
31194
  #
30930
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#301
31195
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#363
30931
31196
  def ruby_32_missing_rest_or_kwest?; end
30932
31197
 
30933
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#333
31198
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#395
30934
31199
  def target_ruby_version; end
30935
31200
  end
30936
31201
 
@@ -30972,6 +31237,46 @@ RuboCop::Cop::Style::ArrayCoercion::CHECK_MSG = T.let(T.unsafe(nil), String)
30972
31237
  # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#44
30973
31238
  RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String)
30974
31239
 
31240
+ # Identifies usages of `arr[0]` and `arr[-1]` and suggests to change
31241
+ # them to use `arr.first` and `arr.last` instead.
31242
+ #
31243
+ # The cop is disabled by default due to safety concerns.
31244
+ #
31245
+ # @example
31246
+ # # bad
31247
+ # arr[0]
31248
+ # arr[-1]
31249
+ #
31250
+ # # good
31251
+ # arr.first
31252
+ # arr.last
31253
+ # arr[0] = 2
31254
+ # arr[0][-2]
31255
+ #
31256
+ # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#28
31257
+ class RuboCop::Cop::Style::ArrayFirstLast < ::RuboCop::Cop::Base
31258
+ extend ::RuboCop::Cop::AutoCorrector
31259
+
31260
+ # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#35
31261
+ def on_send(node); end
31262
+
31263
+ private
31264
+
31265
+ # @return [Boolean]
31266
+ #
31267
+ # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#58
31268
+ def brace_method?(node); end
31269
+
31270
+ # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#53
31271
+ def innermost_braces_node(node); end
31272
+ end
31273
+
31274
+ # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#31
31275
+ RuboCop::Cop::Style::ArrayFirstLast::MSG = T.let(T.unsafe(nil), String)
31276
+
31277
+ # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#32
31278
+ RuboCop::Cop::Style::ArrayFirstLast::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
31279
+
30975
31280
  # In Ruby 3.1, `Array#intersect?` has been added.
30976
31281
  #
30977
31282
  # This cop identifies places where `(array1 & array2).any?`
@@ -31174,28 +31479,36 @@ RuboCop::Cop::Style::Attr::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
31174
31479
  # # ...
31175
31480
  # end
31176
31481
  #
31177
- # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#19
31482
+ # # bad
31483
+ # f = Tempfile.open('temp')
31484
+ #
31485
+ # # good
31486
+ # Tempfile.open('temp') do |f|
31487
+ # # ...
31488
+ # end
31489
+ #
31490
+ # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#27
31178
31491
  class RuboCop::Cop::Style::AutoResourceCleanup < ::RuboCop::Cop::Base
31179
- # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#26
31492
+ # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#32
31493
+ def file_open_method?(param0 = T.unsafe(nil)); end
31494
+
31495
+ # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#36
31180
31496
  def on_send(node); end
31181
31497
 
31182
31498
  private
31183
31499
 
31184
31500
  # @return [Boolean]
31185
31501
  #
31186
- # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#41
31502
+ # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#46
31187
31503
  def cleanup?(node); end
31188
31504
  end
31189
31505
 
31190
- # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#20
31506
+ # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#28
31191
31507
  RuboCop::Cop::Style::AutoResourceCleanup::MSG = T.let(T.unsafe(nil), String)
31192
31508
 
31193
- # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#24
31509
+ # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#29
31194
31510
  RuboCop::Cop::Style::AutoResourceCleanup::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
31195
31511
 
31196
- # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#22
31197
- RuboCop::Cop::Style::AutoResourceCleanup::TARGET_METHODS = T.let(T.unsafe(nil), Hash)
31198
-
31199
31512
  # Checks if usage of %() or %Q() matches configuration.
31200
31513
  #
31201
31514
  # @example EnforcedStyle: bare_percent (default)
@@ -32173,9 +32486,12 @@ class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Base
32173
32486
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
32174
32487
  extend ::RuboCop::Cop::AutoCorrector
32175
32488
 
32176
- # source://rubocop//lib/rubocop/cop/style/class_check.rb#44
32489
+ # source://rubocop//lib/rubocop/cop/style/class_check.rb#45
32177
32490
  def message(node); end
32178
32491
 
32492
+ # source://rubocop//lib/rubocop/cop/style/class_check.rb#33
32493
+ def on_csend(node); end
32494
+
32179
32495
  # source://rubocop//lib/rubocop/cop/style/class_check.rb#33
32180
32496
  def on_send(node); end
32181
32497
  end
@@ -32503,6 +32819,9 @@ class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base
32503
32819
  extend ::RuboCop::Cop::AutoCorrector
32504
32820
  extend ::RuboCop::Cop::TargetRubyVersion
32505
32821
 
32822
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#82
32823
+ def on_csend(node); end
32824
+
32506
32825
  # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#82
32507
32826
  def on_send(node); end
32508
32827
 
@@ -32517,18 +32836,18 @@ class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base
32517
32836
 
32518
32837
  private
32519
32838
 
32520
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#119
32839
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#120
32521
32840
  def good_method_name(node); end
32522
32841
 
32523
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#97
32842
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#98
32524
32843
  def offense_range(node); end
32525
32844
 
32526
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#127
32845
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#128
32527
32846
  def range(begin_pos_node, end_pos_node); end
32528
32847
 
32529
32848
  # @return [Boolean]
32530
32849
  #
32531
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#113
32850
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#114
32532
32851
  def to_enum_method?(node); end
32533
32852
  end
32534
32853
 
@@ -32721,40 +33040,42 @@ RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String)
32721
33040
  #
32722
33041
  # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#59
32723
33042
  class RuboCop::Cop::Style::CombinableLoops < ::RuboCop::Cop::Base
32724
- include ::RuboCop::Cop::RangeHelp
32725
33043
  extend ::RuboCop::Cop::AutoCorrector
32726
33044
 
32727
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#66
33045
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#64
32728
33046
  def on_block(node); end
32729
33047
 
32730
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#79
33048
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#77
32731
33049
  def on_for(node); end
32732
33050
 
32733
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#66
33051
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#64
32734
33052
  def on_numblock(node); end
32735
33053
 
32736
33054
  private
32737
33055
 
32738
33056
  # @return [Boolean]
32739
33057
  #
32740
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#90
33058
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#88
32741
33059
  def collection_looping_method?(node); end
32742
33060
 
32743
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#107
33061
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#105
32744
33062
  def combine_with_left_sibling(corrector, node); end
32745
33063
 
33064
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#112
33065
+ def correct_end_of_block(corrector, node); end
33066
+
32746
33067
  # @return [Boolean]
32747
33068
  #
32748
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#95
33069
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#93
32749
33070
  def same_collection_looping_block?(node, sibling); end
32750
33071
 
32751
33072
  # @return [Boolean]
32752
33073
  #
32753
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#103
33074
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#101
32754
33075
  def same_collection_looping_for?(node, sibling); end
32755
33076
  end
32756
33077
 
32757
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#64
33078
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#62
32758
33079
  RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String)
32759
33080
 
32760
33081
  # Enforces using `` or %x around command literals.
@@ -33158,20 +33479,23 @@ RuboCop::Cop::Style::ComparableClamp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
33158
33479
  class RuboCop::Cop::Style::ConcatArrayLiterals < ::RuboCop::Cop::Base
33159
33480
  extend ::RuboCop::Cop::AutoCorrector
33160
33481
 
33482
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34
33483
+ def on_csend(node); end
33484
+
33161
33485
  # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34
33162
33486
  def on_send(node); end
33163
33487
 
33164
33488
  private
33165
33489
 
33166
- # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#69
33490
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#70
33167
33491
  def offense_range(node); end
33168
33492
 
33169
33493
  # @return [Boolean]
33170
33494
  #
33171
- # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#86
33495
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#87
33172
33496
  def percent_literals_includes_only_basic_literals?(node); end
33173
33497
 
33174
- # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#73
33498
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#74
33175
33499
  def preferred_method(node); end
33176
33500
  end
33177
33501
 
@@ -33761,6 +34085,9 @@ class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base
33761
34085
  # source://rubocop//lib/rubocop/cop/style/date_time.rb#61
33762
34086
  def historic_date?(param0 = T.unsafe(nil)); end
33763
34087
 
34088
+ # source://rubocop//lib/rubocop/cop/style/date_time.rb#70
34089
+ def on_csend(node); end
34090
+
33764
34091
  # source://rubocop//lib/rubocop/cop/style/date_time.rb#70
33765
34092
  def on_send(node); end
33766
34093
 
@@ -33769,12 +34096,12 @@ class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base
33769
34096
 
33770
34097
  private
33771
34098
 
33772
- # source://rubocop//lib/rubocop/cop/style/date_time.rb#85
34099
+ # source://rubocop//lib/rubocop/cop/style/date_time.rb#86
33773
34100
  def autocorrect(corrector, node); end
33774
34101
 
33775
34102
  # @return [Boolean]
33776
34103
  #
33777
- # source://rubocop//lib/rubocop/cop/style/date_time.rb#81
34104
+ # source://rubocop//lib/rubocop/cop/style/date_time.rb#82
33778
34105
  def disallow_coercion?; end
33779
34106
  end
33780
34107
 
@@ -35524,6 +35851,9 @@ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base
35524
35851
  # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#32
35525
35852
  def exact_regexp_match(param0 = T.unsafe(nil)); end
35526
35853
 
35854
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40
35855
+ def on_csend(node); end
35856
+
35527
35857
  # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40
35528
35858
  def on_send(node); end
35529
35859
 
@@ -35531,10 +35861,10 @@ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base
35531
35861
 
35532
35862
  # @return [Boolean]
35533
35863
  #
35534
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#55
35864
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#56
35535
35865
  def exact_match_pattern?(parsed_regexp); end
35536
35866
 
35537
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#62
35867
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#63
35538
35868
  def new_method(node); end
35539
35869
  end
35540
35870
 
@@ -37103,72 +37433,103 @@ RuboCop::Cop::Style::HashConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
37103
37433
  # @example
37104
37434
  # # bad
37105
37435
  # hash.keys.each { |k| p k }
37106
- # hash.values.each { |v| p v }
37436
+ # hash.each { |k, unused_value| p k }
37107
37437
  #
37108
37438
  # # good
37109
37439
  # hash.each_key { |k| p k }
37440
+ #
37441
+ # # bad
37442
+ # hash.values.each { |v| p v }
37443
+ # hash.each { |unused_key, v| p v }
37444
+ #
37445
+ # # good
37110
37446
  # hash.each_value { |v| p v }
37111
37447
  # @example AllowedReceivers: ['execute']
37112
37448
  # # good
37113
37449
  # execute(sql).keys.each { |v| p v }
37114
37450
  # execute(sql).values.each { |v| p v }
37115
37451
  #
37116
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#30
37452
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#36
37117
37453
  class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base
37118
37454
  include ::RuboCop::Cop::AllowedReceivers
37119
37455
  include ::RuboCop::Cop::Lint::UnusedArgument
37120
37456
  extend ::RuboCop::Cop::AutoCorrector
37121
37457
 
37122
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#38
37458
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#50
37459
+ def each_arguments(param0 = T.unsafe(nil)); end
37460
+
37461
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#45
37123
37462
  def kv_each(param0 = T.unsafe(nil)); end
37124
37463
 
37125
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#43
37464
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#55
37126
37465
  def kv_each_with_block_pass(param0 = T.unsafe(nil)); end
37127
37466
 
37128
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#47
37467
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#60
37129
37468
  def on_block(node); end
37130
37469
 
37131
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#55
37470
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#85
37132
37471
  def on_block_pass(node); end
37133
37472
 
37134
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#47
37473
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#60
37135
37474
  def on_numblock(node); end
37136
37475
 
37137
37476
  private
37138
37477
 
37139
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#86
37478
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#159
37140
37479
  def check_argument(variable); end
37141
37480
 
37142
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#110
37481
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#183
37143
37482
  def correct_args(node, corrector); end
37144
37483
 
37145
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#96
37484
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#169
37146
37485
  def correct_implicit(node, corrector, method_name); end
37147
37486
 
37148
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#101
37487
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#174
37149
37488
  def correct_key_value_each(node, corrector); end
37150
37489
 
37151
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#82
37152
- def format_message(method_name); end
37490
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#155
37491
+ def format_message(method_name, current); end
37153
37492
 
37154
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#117
37493
+ # @return [Boolean]
37494
+ #
37495
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#93
37496
+ def handleable?(node); end
37497
+
37498
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#190
37155
37499
  def kv_range(outer_node); end
37156
37500
 
37157
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#63
37501
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#122
37502
+ def message(prefer, method_name, unused_code); end
37503
+
37504
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#128
37505
+ def register_each_args_offense(node, message, prefer, unused_range); end
37506
+
37507
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#99
37158
37508
  def register_kv_offense(target, method); end
37159
37509
 
37160
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#72
37510
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#135
37161
37511
  def register_kv_with_block_pass_offense(node, target, method); end
37162
37512
 
37513
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#146
37514
+ def root_receiver(node); end
37515
+
37516
+ # @return [Boolean]
37517
+ #
37518
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#110
37519
+ def unused_block_arg_exist?(node, block_arg); end
37520
+
37163
37521
  # @return [Boolean]
37164
37522
  #
37165
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#92
37523
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#165
37166
37524
  def used?(arg); end
37167
37525
  end
37168
37526
 
37169
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#35
37527
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#41
37170
37528
  RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String)
37171
37529
 
37530
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#42
37531
+ RuboCop::Cop::Style::HashEachMethods::UNUSED_BLOCK_ARG_MSG = T.let(T.unsafe(nil), String)
37532
+
37172
37533
  # Checks for usages of `Hash#reject`, `Hash#select`, and `Hash#filter` methods
37173
37534
  # that can be replaced with `Hash#except` method.
37174
37535
  #
@@ -37204,6 +37565,9 @@ class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base
37204
37565
  # source://rubocop//lib/rubocop/cop/style/hash_except.rb#44
37205
37566
  def bad_method_with_poro?(param0 = T.unsafe(nil)); end
37206
37567
 
37568
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#75
37569
+ def on_csend(node); end
37570
+
37207
37571
  # source://rubocop//lib/rubocop/cop/style/hash_except.rb#75
37208
37572
  def on_send(node); end
37209
37573
 
@@ -37211,42 +37575,42 @@ class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base
37211
37575
 
37212
37576
  # @return [Boolean]
37213
37577
  #
37214
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#93
37578
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#94
37215
37579
  def bad_method?(block); end
37216
37580
 
37217
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#165
37581
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#166
37218
37582
  def decorate_source(value); end
37219
37583
 
37220
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#173
37584
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#174
37221
37585
  def except_key(node); end
37222
37586
 
37223
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#152
37587
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#153
37224
37588
  def except_key_source(key); end
37225
37589
 
37226
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#146
37590
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#147
37227
37591
  def extract_body_if_negated(body); end
37228
37592
 
37229
37593
  # @return [Boolean]
37230
37594
  #
37231
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#127
37595
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#128
37232
37596
  def included?(negated, body); end
37233
37597
 
37234
37598
  # @return [Boolean]
37235
37599
  #
37236
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#131
37600
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#132
37237
37601
  def not_included?(negated, body); end
37238
37602
 
37239
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#182
37603
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#183
37240
37604
  def offense_range(node); end
37241
37605
 
37242
37606
  # @return [Boolean]
37243
37607
  #
37244
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#135
37608
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#136
37245
37609
  def safe_to_register_offense?(block, except_key); end
37246
37610
 
37247
37611
  # @return [Boolean]
37248
37612
  #
37249
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#111
37613
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#112
37250
37614
  def semantically_except_method?(send, block); end
37251
37615
  end
37252
37616
 
@@ -37680,43 +38044,43 @@ class RuboCop::Cop::Style::IdenticalConditionalBranches < ::RuboCop::Cop::Base
37680
38044
 
37681
38045
  private
37682
38046
 
37683
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#173
38047
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#181
37684
38048
  def assignable_condition_value(node); end
37685
38049
 
37686
38050
  # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#140
37687
38051
  def check_branches(node, branches); end
37688
38052
 
37689
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#182
38053
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#190
37690
38054
  def check_expressions(node, expressions, insert_position); end
37691
38055
 
37692
38056
  # @return [Boolean]
37693
38057
  #
37694
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#162
38058
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#170
37695
38059
  def duplicated_expressions?(node, expressions); end
37696
38060
 
37697
38061
  # `elsif` branches show up in the if node as nested `else` branches. We
37698
38062
  # need to recursively iterate over all `else` branches.
37699
38063
  #
37700
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#222
38064
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#230
37701
38065
  def expand_elses(branch); end
37702
38066
 
37703
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#237
38067
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#245
37704
38068
  def head(node); end
37705
38069
 
37706
38070
  # @return [Boolean]
37707
38071
  #
37708
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#206
38072
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#214
37709
38073
  def last_child_of_parent?(node); end
37710
38074
 
37711
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#216
38075
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#224
37712
38076
  def message(node); end
37713
38077
 
37714
38078
  # @return [Boolean]
37715
38079
  #
37716
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#212
38080
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#220
37717
38081
  def single_child_branch?(branch_node); end
37718
38082
 
37719
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#233
38083
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#241
37720
38084
  def tail(node); end
37721
38085
  end
37722
38086
 
@@ -38413,10 +38777,13 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
38413
38777
  # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#61
38414
38778
  def inverse_candidate?(param0 = T.unsafe(nil)); end
38415
38779
 
38416
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#91
38780
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92
38417
38781
  def on_block(node); end
38418
38782
 
38419
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#91
38783
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78
38784
+ def on_csend(node); end
38785
+
38786
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92
38420
38787
  def on_numblock(node); end
38421
38788
 
38422
38789
  # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78
@@ -38426,39 +38793,39 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
38426
38793
 
38427
38794
  # @return [Boolean]
38428
38795
  #
38429
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#176
38796
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#177
38430
38797
  def camel_case_constant?(node); end
38431
38798
 
38432
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#120
38799
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#121
38433
38800
  def correct_inverse_block(corrector, node); end
38434
38801
 
38435
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#111
38802
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#112
38436
38803
  def correct_inverse_method(corrector, node); end
38437
38804
 
38438
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#127
38805
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#128
38439
38806
  def correct_inverse_selector(block, corrector); end
38440
38807
 
38441
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#180
38808
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#181
38442
38809
  def dot_range(loc); end
38443
38810
 
38444
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#163
38811
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#164
38445
38812
  def end_parentheses(node, method_call); end
38446
38813
 
38447
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#149
38814
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#150
38448
38815
  def inverse_blocks; end
38449
38816
 
38450
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#144
38817
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#145
38451
38818
  def inverse_methods; end
38452
38819
 
38453
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#190
38820
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#191
38454
38821
  def message(method, inverse); end
38455
38822
 
38456
38823
  # @return [Boolean]
38457
38824
  #
38458
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#153
38825
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#154
38459
38826
  def negated?(node); end
38460
38827
 
38461
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#157
38828
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#158
38462
38829
  def not_to_receiver(node, method_call); end
38463
38830
 
38464
38831
  # When comparing classes, `!(Integer < Numeric)` is not the same as
@@ -38466,10 +38833,10 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
38466
38833
  #
38467
38834
  # @return [Boolean]
38468
38835
  #
38469
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#171
38836
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#172
38470
38837
  def possible_class_hierarchy_check?(lhs, rhs, method); end
38471
38838
 
38472
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#184
38839
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#185
38473
38840
  def remove_end_parenthesis(corrector, node, method, method_call); end
38474
38841
 
38475
38842
  class << self
@@ -39089,10 +39456,10 @@ class RuboCop::Cop::Style::MagicCommentFormat::CommentRange
39089
39456
  # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125
39090
39457
  def directives; end
39091
39458
 
39092
- # source://forwardable/1.3.2/forwardable.rb#229
39459
+ # source://forwardable/1.3.3/forwardable.rb#231
39093
39460
  def loc(*args, **_arg1, &block); end
39094
39461
 
39095
- # source://forwardable/1.3.2/forwardable.rb#229
39462
+ # source://forwardable/1.3.3/forwardable.rb#231
39096
39463
  def text(*args, **_arg1, &block); end
39097
39464
 
39098
39465
  # A magic comment can contain one value (normal style) or
@@ -39161,32 +39528,35 @@ class RuboCop::Cop::Style::MapCompactWithConditionalBlock < ::RuboCop::Cop::Base
39161
39528
  # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#46
39162
39529
  def map_and_compact?(param0 = T.unsafe(nil)); end
39163
39530
 
39531
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#72
39532
+ def on_csend(node); end
39533
+
39164
39534
  # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#72
39165
39535
  def on_send(node); end
39166
39536
 
39167
39537
  private
39168
39538
 
39169
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#125
39539
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#126
39170
39540
  def range(node); end
39171
39541
 
39172
39542
  # @return [Boolean]
39173
39543
  #
39174
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#91
39544
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#92
39175
39545
  def returns_block_argument?(block_argument_node, return_value_node); end
39176
39546
 
39177
39547
  # @return [Boolean]
39178
39548
  #
39179
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#95
39549
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#96
39180
39550
  def truthy_branch?(node); end
39181
39551
 
39182
39552
  # @return [Boolean]
39183
39553
  #
39184
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#115
39554
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#116
39185
39555
  def truthy_branch_for_guard?(node); end
39186
39556
 
39187
39557
  # @return [Boolean]
39188
39558
  #
39189
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#105
39559
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#106
39190
39560
  def truthy_branch_for_if?(node); end
39191
39561
  end
39192
39562
 
@@ -39222,13 +39592,21 @@ class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base
39222
39592
  # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#41
39223
39593
  def map_to_h?(param0 = T.unsafe(nil)); end
39224
39594
 
39225
- # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#48
39595
+ # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#52
39596
+ def on_csend(node); end
39597
+
39598
+ # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#52
39226
39599
  def on_send(node); end
39227
39600
 
39228
39601
  private
39229
39602
 
39230
- # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#62
39603
+ # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#67
39231
39604
  def autocorrect(corrector, to_h, map); end
39605
+
39606
+ class << self
39607
+ # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#48
39608
+ def autocorrect_incompatible_with; end
39609
+ end
39232
39610
  end
39233
39611
 
39234
39612
  # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#37
@@ -39515,12 +39893,12 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
39515
39893
 
39516
39894
  # @return [Boolean]
39517
39895
  #
39518
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#165
39896
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#166
39519
39897
  def allowed_chained_call_with_parentheses?(node); end
39520
39898
 
39521
39899
  # @return [Boolean]
39522
39900
  #
39523
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#161
39901
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#162
39524
39902
  def allowed_multiline_call_with_parentheses?(node); end
39525
39903
 
39526
39904
  # @return [Boolean]
@@ -39530,17 +39908,17 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
39530
39908
 
39531
39909
  # @return [Boolean]
39532
39910
  #
39533
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#174
39911
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#175
39534
39912
  def ambiguous_literal?(node); end
39535
39913
 
39536
39914
  # @return [Boolean]
39537
39915
  #
39538
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#203
39916
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#204
39539
39917
  def assigned_before?(node, target); end
39540
39918
 
39541
39919
  # @return [Boolean]
39542
39920
  #
39543
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#211
39921
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#212
39544
39922
  def assignment_in_condition?(node); end
39545
39923
 
39546
39924
  # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#31
@@ -39548,57 +39926,57 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
39548
39926
 
39549
39927
  # @return [Boolean]
39550
39928
  #
39551
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#142
39929
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#143
39552
39930
  def call_as_argument_or_chain?(node); end
39553
39931
 
39554
39932
  # @return [Boolean]
39555
39933
  #
39556
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#99
39934
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#100
39557
39935
  def call_in_literals?(node); end
39558
39936
 
39559
39937
  # @return [Boolean]
39560
39938
  #
39561
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#110
39939
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#111
39562
39940
  def call_in_logical_operators?(node); end
39563
39941
 
39564
39942
  # @return [Boolean]
39565
39943
  #
39566
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#148
39944
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#149
39567
39945
  def call_in_match_pattern?(node); end
39568
39946
 
39569
39947
  # @return [Boolean]
39570
39948
  #
39571
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#119
39949
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#120
39572
39950
  def call_in_optional_arguments?(node); end
39573
39951
 
39574
39952
  # @return [Boolean]
39575
39953
  #
39576
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#123
39954
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#124
39577
39955
  def call_in_single_line_inheritance?(node); end
39578
39956
 
39579
39957
  # @return [Boolean]
39580
39958
  #
39581
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#127
39959
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#128
39582
39960
  def call_with_ambiguous_arguments?(node); end
39583
39961
 
39584
39962
  # @return [Boolean]
39585
39963
  #
39586
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#138
39964
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#139
39587
39965
  def call_with_braced_block?(node); end
39588
39966
 
39589
39967
  # @return [Boolean]
39590
39968
  #
39591
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#221
39969
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#222
39592
39970
  def forwards_anonymous_rest_arguments?(node); end
39593
39971
 
39594
39972
  # @return [Boolean]
39595
39973
  #
39596
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#190
39974
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#191
39597
39975
  def hash_literal?(node); end
39598
39976
 
39599
39977
  # @return [Boolean]
39600
39978
  #
39601
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#154
39979
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#155
39602
39980
  def hash_literal_in_arguments?(node); end
39603
39981
 
39604
39982
  # @return [Boolean]
@@ -39608,7 +39986,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
39608
39986
 
39609
39987
  # @return [Boolean]
39610
39988
  #
39611
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#207
39989
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#208
39612
39990
  def inside_string_interpolation?(node); end
39613
39991
 
39614
39992
  # Require hash value omission be enclosed in parentheses to prevent the following issue:
@@ -39626,7 +40004,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
39626
40004
 
39627
40005
  # @return [Boolean]
39628
40006
  #
39629
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#186
40007
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#187
39630
40008
  def logical_operator?(node); end
39631
40009
 
39632
40010
  # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#40
@@ -39642,7 +40020,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
39642
40020
 
39643
40021
  # @return [Boolean]
39644
40022
  #
39645
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#194
40023
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#195
39646
40024
  def regexp_slash_literal?(node); end
39647
40025
 
39648
40026
  # @return [Boolean]
@@ -39652,7 +40030,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
39652
40030
 
39653
40031
  # @return [Boolean]
39654
40032
  #
39655
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#178
40033
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#179
39656
40034
  def splat?(node); end
39657
40035
 
39658
40036
  # @return [Boolean]
@@ -39667,12 +40045,12 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
39667
40045
 
39668
40046
  # @return [Boolean]
39669
40047
  #
39670
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#182
40048
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#183
39671
40049
  def ternary_if?(node); end
39672
40050
 
39673
40051
  # @return [Boolean]
39674
40052
  #
39675
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#198
40053
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#199
39676
40054
  def unary_literal?(node); end
39677
40055
  end
39678
40056
 
@@ -39718,6 +40096,9 @@ RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_
39718
40096
  # This cop can be customized allowed methods with `AllowedMethods`.
39719
40097
  # By default, there are no methods to allowed.
39720
40098
  #
40099
+ # NOTE: This cop allows the use of `it()` without arguments in blocks,
40100
+ # as in `0.times { it() }`, following `Lint/ItWithoutArgumentsInBlock` cop.
40101
+ #
39721
40102
  # @example
39722
40103
  # # bad
39723
40104
  # object.some_method()
@@ -39731,55 +40112,66 @@ RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_
39731
40112
  # # good
39732
40113
  # object.foo()
39733
40114
  #
39734
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#26
40115
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#29
39735
40116
  class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Base
39736
40117
  include ::RuboCop::Cop::AllowedMethods
39737
40118
  include ::RuboCop::Cop::AllowedPattern
39738
40119
  extend ::RuboCop::Cop::AutoCorrector
39739
40120
 
39740
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#33
40121
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#37
39741
40122
  def on_send(node); end
39742
40123
 
39743
40124
  private
39744
40125
 
39745
40126
  # @return [Boolean]
39746
40127
  #
39747
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#60
40128
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#66
39748
40129
  def allowed_method_name?(name); end
39749
40130
 
39750
40131
  # @return [Boolean]
39751
40132
  #
39752
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#74
40133
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#94
39753
40134
  def any_assignment?(node); end
39754
40135
 
39755
40136
  # @return [Boolean]
39756
40137
  #
39757
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#56
40138
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#62
39758
40139
  def default_argument?(node); end
39759
40140
 
39760
40141
  # @return [Boolean]
39761
40142
  #
39762
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#52
40143
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#58
39763
40144
  def ineligible_node?(node); end
39764
40145
 
39765
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#97
40146
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#117
39766
40147
  def offense_range(node); end
39767
40148
 
39768
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#45
40149
+ # Respects `Lint/ItWithoutArgumentsInBlock` cop and the following Ruby 3.3's warning:
40150
+ #
40151
+ # $ ruby -e '0.times { begin; it; end }'
40152
+ # -e:1: warning: `it` calls without arguments will refer to the first block param in
40153
+ # Ruby 3.4; use it() or self.it
40154
+ #
40155
+ # @return [Boolean]
40156
+ #
40157
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#86
40158
+ def parenthesized_it_method_in_block?(node); end
40159
+
40160
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#51
39769
40161
  def register_offense(node); end
39770
40162
 
39771
40163
  # @return [Boolean]
39772
40164
  #
39773
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#64
40165
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#70
39774
40166
  def same_name_assignment?(node); end
39775
40167
 
39776
40168
  # @return [Boolean]
39777
40169
  #
39778
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#90
40170
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#110
39779
40171
  def variable_in_mass_assignment?(variable_name, node); end
39780
40172
  end
39781
40173
 
39782
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#31
40174
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#34
39783
40175
  RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil), String)
39784
40176
 
39785
40177
  # Checks for methods called on a do...end block. The point of
@@ -40218,12 +40610,12 @@ RuboCop::Cop::Style::MissingElse::MSG_NIL = T.let(T.unsafe(nil), String)
40218
40610
  # defining `respond_to_missing?`.
40219
40611
  #
40220
40612
  # @example
40221
- # #bad
40613
+ # # bad
40222
40614
  # def method_missing(name, *args)
40223
40615
  # # ...
40224
40616
  # end
40225
40617
  #
40226
- # #good
40618
+ # # good
40227
40619
  # def respond_to_missing?(name, include_private)
40228
40620
  # # ...
40229
40621
  # end
@@ -41092,7 +41484,7 @@ RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String)
41092
41484
  # # shareable_constant_value: literal
41093
41485
  # CONST = [1, 2, 3]
41094
41486
  #
41095
- # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#87
41487
+ # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#83
41096
41488
  class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
41097
41489
  include ::RuboCop::Cop::Style::MutableConstant::ShareableConstantValue
41098
41490
  include ::RuboCop::Cop::FrozenStringLiteral
@@ -42647,8 +43039,8 @@ end
42647
43039
  RuboCop::Cop::Style::OpenStructUse::MSG = T.let(T.unsafe(nil), String)
42648
43040
 
42649
43041
  # Checks for redundant dot before operator method call.
42650
- # The target operator methods are `|`, `^`, `&`, `<=>`, `==`, `===`, `=~`, `>`, `>=`, `<`,
42651
- # `<=`, `<<`, `>>`, `+`, `-`, `*`, `/`, `%`, `**`, `~`, `!`, `!=`, and `!~`.
43042
+ # The target operator methods are `|`, `^`, `&`, ``<=>``, `==`, `===`, `=~`, `>`, `>=`, `<`,
43043
+ # ``<=``, `<<`, `>>`, `+`, `-`, `*`, `/`, `%`, `**`, `~`, `!`, `!=`, and `!~`.
42652
43044
  #
42653
43045
  # @example
42654
43046
  #
@@ -43764,20 +44156,23 @@ class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base
43764
44156
  include ::RuboCop::Cop::RangeHelp
43765
44157
  extend ::RuboCop::Cop::AutoCorrector
43766
44158
 
44159
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64
44160
+ def on_csend(node); end
44161
+
43767
44162
  # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64
43768
44163
  def on_send(node); end
43769
44164
 
43770
44165
  private
43771
44166
 
43772
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#93
44167
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#94
43773
44168
  def argument_range(node); end
43774
44169
 
43775
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#86
44170
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#87
43776
44171
  def redundant_arg_for_method(method_name); end
43777
44172
 
43778
44173
  # @return [Boolean]
43779
44174
  #
43780
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#79
44175
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#80
43781
44176
  def redundant_argument?(node); end
43782
44177
  end
43783
44178
 
@@ -44415,39 +44810,39 @@ class RuboCop::Cop::Style::RedundantDoubleSplatHashBraces < ::RuboCop::Cop::Base
44415
44810
 
44416
44811
  # @return [Boolean]
44417
44812
  #
44418
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#44
44813
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#45
44419
44814
  def allowed_double_splat_receiver?(kwsplat); end
44420
44815
 
44421
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#52
44816
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#55
44422
44817
  def autocorrect(corrector, node, kwsplat); end
44423
44818
 
44424
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#86
44819
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#89
44425
44820
  def autocorrect_merge_methods(corrector, merge_methods, kwsplat); end
44426
44821
 
44427
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#82
44822
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#85
44428
44823
  def closing_brace(node); end
44429
44824
 
44430
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#108
44825
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#111
44431
44826
  def convert_to_new_arguments(node); end
44432
44827
 
44433
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#104
44828
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#107
44434
44829
  def extract_send_methods(kwsplat); end
44435
44830
 
44436
44831
  # @return [Boolean]
44437
44832
  #
44438
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#120
44439
- def merge_method?(node); end
44833
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#123
44834
+ def mergeable?(node); end
44440
44835
 
44441
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#78
44836
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#81
44442
44837
  def opening_brace(node); end
44443
44838
 
44444
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#97
44839
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#100
44445
44840
  def range_of_merge_methods(merge_methods); end
44446
44841
 
44447
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#63
44842
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#66
44448
44843
  def root_receiver(node); end
44449
44844
 
44450
- # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#72
44845
+ # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#75
44451
44846
  def select_merge_method_nodes(kwsplat); end
44452
44847
  end
44453
44848
 
@@ -44747,6 +45142,9 @@ RuboCop::Cop::Style::RedundantFileExtensionInRequire::RESTRICT_ON_SEND = T.let(T
44747
45142
  class RuboCop::Cop::Style::RedundantFilterChain < ::RuboCop::Cop::Base
44748
45143
  extend ::RuboCop::Cop::AutoCorrector
44749
45144
 
45145
+ # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81
45146
+ def on_csend(node); end
45147
+
44750
45148
  # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81
44751
45149
  def on_send(node); end
44752
45150
 
@@ -44755,13 +45153,13 @@ class RuboCop::Cop::Style::RedundantFilterChain < ::RuboCop::Cop::Base
44755
45153
 
44756
45154
  private
44757
45155
 
44758
- # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#107
45156
+ # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#108
44759
45157
  def offense_range(select_node, predicate_node); end
44760
45158
 
44761
- # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#111
45159
+ # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#112
44762
45160
  def predicate_range(predicate_node); end
44763
45161
 
44764
- # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#93
45162
+ # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#94
44765
45163
  def register_offense(select_node, predicate_node); end
44766
45164
  end
44767
45165
 
@@ -45144,12 +45542,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45144
45542
 
45145
45543
  # @return [Boolean]
45146
45544
  #
45147
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#166
45545
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#168
45148
45546
  def argument_is_method?(node); end
45149
45547
 
45150
45548
  # @return [Boolean]
45151
45549
  #
45152
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#134
45550
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#136
45153
45551
  def argument_newline?(node); end
45154
45552
 
45155
45553
  # @return [Boolean]
@@ -45157,12 +45555,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45157
45555
  # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#100
45158
45556
  def ends_with_backslash_without_comment?(source_line); end
45159
45557
 
45160
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#146
45558
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#148
45161
45559
  def find_node_for_line(line); end
45162
45560
 
45163
45561
  # @return [Boolean]
45164
45562
  #
45165
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#122
45563
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#124
45166
45564
  def inside_string_literal?(range, token); end
45167
45565
 
45168
45566
  # @return [Boolean]
@@ -45172,7 +45570,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45172
45570
 
45173
45571
  # @return [Boolean]
45174
45572
  #
45175
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#173
45573
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#175
45176
45574
  def method_call_with_arguments?(node); end
45177
45575
 
45178
45576
  # A method call without parentheses such as the following cannot remove `\`:
@@ -45182,12 +45580,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45182
45580
  #
45183
45581
  # @return [Boolean]
45184
45582
  #
45185
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#130
45583
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#132
45186
45584
  def method_with_argument?(current_token, next_token); end
45187
45585
 
45188
45586
  # @return [Boolean]
45189
45587
  #
45190
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#114
45588
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#116
45191
45589
  def redundant_line_continuation?(range); end
45192
45590
 
45193
45591
  # @return [Boolean]
@@ -45197,12 +45595,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45197
45595
 
45198
45596
  # @return [Boolean]
45199
45597
  #
45200
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#152
45598
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#154
45201
45599
  def same_line?(node, line); end
45202
45600
 
45203
45601
  # @return [Boolean]
45204
45602
  #
45205
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#177
45603
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#179
45206
45604
  def start_with_arithmetic_operator?(source_line); end
45207
45605
 
45208
45606
  # @return [Boolean]
@@ -45235,37 +45633,34 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
45235
45633
  include ::RuboCop::Cop::Parentheses
45236
45634
  extend ::RuboCop::Cop::AutoCorrector
45237
45635
 
45238
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#33
45636
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#32
45239
45637
  def allowed_pin_operator?(param0 = T.unsafe(nil)); end
45240
45638
 
45241
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#36
45639
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#35
45242
45640
  def arg_in_call_with_block?(param0 = T.unsafe(nil)); end
45243
45641
 
45244
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#238
45642
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#253
45245
45643
  def first_send_argument?(param0 = T.unsafe(nil)); end
45246
45644
 
45247
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#243
45645
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#258
45248
45646
  def first_super_argument?(param0 = T.unsafe(nil)); end
45249
45647
 
45250
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#248
45648
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#263
45251
45649
  def first_yield_argument?(param0 = T.unsafe(nil)); end
45252
45650
 
45253
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#156
45651
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#166
45254
45652
  def interpolation?(param0 = T.unsafe(nil)); end
45255
45653
 
45256
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#27
45654
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#26
45257
45655
  def method_node_and_args(param0 = T.unsafe(nil)); end
45258
45656
 
45259
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#38
45657
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#37
45260
45658
  def on_begin(node); end
45261
45659
 
45262
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#24
45263
- def range_end?(param0 = T.unsafe(nil)); end
45264
-
45265
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#30
45660
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#29
45266
45661
  def rescue?(param0 = T.unsafe(nil)); end
45267
45662
 
45268
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#21
45663
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#23
45269
45664
  def square_brackets?(param0 = T.unsafe(nil)); end
45270
45665
 
45271
45666
  private
@@ -45277,7 +45672,7 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
45277
45672
 
45278
45673
  # @return [Boolean]
45279
45674
  #
45280
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#61
45675
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#60
45281
45676
  def allowed_expression?(node); end
45282
45677
 
45283
45678
  # @return [Boolean]
@@ -45297,21 +45692,21 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
45297
45692
 
45298
45693
  # @return [Boolean]
45299
45694
  #
45300
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#252
45695
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#267
45301
45696
  def call_chain_starts_with_int?(begin_node, send_node); end
45302
45697
 
45303
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#127
45698
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#129
45304
45699
  def check(begin_node); end
45305
45700
 
45306
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#158
45701
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#168
45307
45702
  def check_send(begin_node, node); end
45308
45703
 
45309
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#167
45704
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#177
45310
45705
  def check_unary(begin_node, node); end
45311
45706
 
45312
45707
  # @return [Boolean]
45313
45708
  #
45314
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#191
45709
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#201
45315
45710
  def disallowed_literal?(begin_node, node); end
45316
45711
 
45317
45712
  # @return [Boolean]
@@ -45319,7 +45714,7 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
45319
45714
  # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#107
45320
45715
  def empty_parentheses?(node); end
45321
45716
 
45322
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#138
45717
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#140
45323
45718
  def find_offense_message(begin_node, node); end
45324
45719
 
45325
45720
  # @return [Boolean]
@@ -45329,22 +45724,22 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
45329
45724
 
45330
45725
  # @return [Boolean]
45331
45726
  #
45332
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#233
45727
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#242
45333
45728
  def first_argument?(node); end
45334
45729
 
45335
45730
  # @return [Boolean]
45336
45731
  #
45337
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#54
45732
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#53
45338
45733
  def ignore_syntax?(node); end
45339
45734
 
45340
45735
  # @return [Boolean]
45341
45736
  #
45342
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#187
45737
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#197
45343
45738
  def keyword_ancestor?(node); end
45344
45739
 
45345
45740
  # @return [Boolean]
45346
45741
  #
45347
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#206
45742
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#216
45348
45743
  def keyword_with_redundant_parentheses?(node); end
45349
45744
 
45350
45745
  # @return [Boolean]
@@ -45354,35 +45749,33 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
45354
45749
 
45355
45750
  # @return [Boolean]
45356
45751
  #
45357
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#219
45752
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#229
45358
45753
  def method_call_with_redundant_parentheses?(node); end
45359
45754
 
45360
- # @return [Boolean]
45361
- #
45362
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#119
45363
- def method_chain_begins_with_hash_literal?(node); end
45755
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#121
45756
+ def method_chain_begins_with_hash_literal(node); end
45364
45757
 
45365
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#177
45758
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#187
45366
45759
  def offense(node, msg); end
45367
45760
 
45368
45761
  # @return [Boolean]
45369
45762
  #
45370
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#229
45763
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#238
45371
45764
  def only_begin_arg?(args); end
45372
45765
 
45373
45766
  # @return [Boolean]
45374
45767
  #
45375
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#46
45768
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#45
45376
45769
  def parens_allowed?(node); end
45377
45770
 
45378
45771
  # @return [Boolean]
45379
45772
  #
45380
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#195
45773
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#205
45381
45774
  def raised_to_power_negative_numeric?(begin_node, node); end
45382
45775
 
45383
45776
  # @return [Boolean]
45384
45777
  #
45385
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#183
45778
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#193
45386
45779
  def suspect_unary?(node); end
45387
45780
 
45388
45781
  # @return [Boolean]
@@ -45391,6 +45784,9 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
45391
45784
  def ternary_parentheses_required?; end
45392
45785
  end
45393
45786
 
45787
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#20
45788
+ RuboCop::Cop::Style::RedundantParentheses::ALLOWED_NODE_TYPES = T.let(T.unsafe(nil), Array)
45789
+
45394
45790
  # Checks for usage of the %q/%Q syntax when '' or "" would do.
45395
45791
  #
45396
45792
  # @example
@@ -45871,7 +46267,8 @@ RuboCop::Cop::Style::RedundantReturn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
45871
46267
  # protected scope, you cannot send private messages this way.
45872
46268
  #
45873
46269
  # Note we allow uses of `self` with operators because it would be awkward
45874
- # otherwise.
46270
+ # otherwise. Also allows the use of `self.it` without arguments in blocks,
46271
+ # as in `0.times { self.it }`, following `Lint/ItWithoutArgumentsInBlock` cop.
45875
46272
  #
45876
46273
  # @example
45877
46274
  #
@@ -45896,114 +46293,125 @@ RuboCop::Cop::Style::RedundantReturn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
45896
46293
  # end
45897
46294
  # end
45898
46295
  #
45899
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#44
46296
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#45
45900
46297
  class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
45901
46298
  extend ::RuboCop::Cop::AutoCorrector
45902
46299
 
45903
46300
  # @return [RedundantSelf] a new instance of RedundantSelf
45904
46301
  #
45905
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#59
46302
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#60
45906
46303
  def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
45907
46304
 
45908
46305
  # Assignment of self.x
45909
46306
  #
45910
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#67
46307
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68
45911
46308
  def on_and_asgn(node); end
45912
46309
 
45913
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#85
46310
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#86
45914
46311
  def on_args(node); end
45915
46312
 
45916
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119
46313
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#120
45917
46314
  def on_block(node); end
45918
46315
 
45919
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#89
46316
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#90
45920
46317
  def on_blockarg(node); end
45921
46318
 
45922
46319
  # Using self.x to distinguish from local variable x
45923
46320
  #
45924
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#80
46321
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#81
45925
46322
  def on_def(node); end
45926
46323
 
45927
46324
  # Using self.x to distinguish from local variable x
45928
46325
  #
45929
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#80
46326
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#81
45930
46327
  def on_defs(node); end
45931
46328
 
45932
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125
46329
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
45933
46330
  def on_if(node); end
45934
46331
 
45935
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#103
46332
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#104
45936
46333
  def on_in_pattern(node); end
45937
46334
 
45938
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#98
46335
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#99
45939
46336
  def on_lvasgn(node); end
45940
46337
 
45941
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#93
46338
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#94
45942
46339
  def on_masgn(node); end
45943
46340
 
45944
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119
46341
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#120
45945
46342
  def on_numblock(node); end
45946
46343
 
45947
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#73
46344
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#74
45948
46345
  def on_op_asgn(node); end
45949
46346
 
45950
46347
  # Assignment of self.x
45951
46348
  #
45952
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#67
46349
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68
45953
46350
  def on_or_asgn(node); end
45954
46351
 
45955
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#107
46352
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#108
45956
46353
  def on_send(node); end
45957
46354
 
45958
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125
46355
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
45959
46356
  def on_until(node); end
45960
46357
 
45961
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125
46358
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
45962
46359
  def on_while(node); end
45963
46360
 
45964
46361
  private
45965
46362
 
45966
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#181
46363
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#196
45967
46364
  def add_lhs_to_local_variables_scopes(rhs, lhs); end
45968
46365
 
45969
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#189
46366
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#204
45970
46367
  def add_masgn_lhs_variables(rhs, lhs); end
45971
46368
 
45972
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#195
46369
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#210
45973
46370
  def add_match_var_scopes(in_pattern_node); end
45974
46371
 
45975
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#143
46372
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#144
45976
46373
  def add_scope(node, local_variables = T.unsafe(nil)); end
45977
46374
 
45978
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#175
46375
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#190
45979
46376
  def allow_self(node); end
45980
46377
 
45981
46378
  # @return [Boolean]
45982
46379
  #
45983
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#149
46380
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#150
45984
46381
  def allowed_send_node?(node); end
45985
46382
 
45986
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#166
46383
+ # Respects `Lint/ItWithoutArgumentsInBlock` cop and the following Ruby 3.3's warning:
46384
+ #
46385
+ # $ ruby -e '0.times { begin; it; end }'
46386
+ # -e:1: warning: `it` calls without arguments will refer to the first block param in
46387
+ # Ruby 3.4; use it() or self.it
46388
+ #
46389
+ # @return [Boolean]
46390
+ #
46391
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#165
46392
+ def it_method_in_block?(node); end
46393
+
46394
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#181
45987
46395
  def on_argument(node); end
45988
46396
 
45989
46397
  # @return [Boolean]
45990
46398
  #
45991
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#158
46399
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#173
45992
46400
  def regular_method_call?(node); end
45993
46401
 
45994
46402
  class << self
45995
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#55
46403
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#56
45996
46404
  def autocorrect_incompatible_with; end
45997
46405
  end
45998
46406
  end
45999
46407
 
46000
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#48
46408
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#49
46001
46409
  RuboCop::Cop::Style::RedundantSelf::KERNEL_METHODS = T.let(T.unsafe(nil), Array)
46002
46410
 
46003
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#49
46411
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#50
46004
46412
  RuboCop::Cop::Style::RedundantSelf::KEYWORDS = T.let(T.unsafe(nil), Array)
46005
46413
 
46006
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#47
46414
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#48
46007
46415
  RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String)
46008
46416
 
46009
46417
  # Checks for places where redundant assignments are made for in place
@@ -46187,6 +46595,9 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base
46187
46595
  include ::RuboCop::Cop::RangeHelp
46188
46596
  extend ::RuboCop::Cop::AutoCorrector
46189
46597
 
46598
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104
46599
+ def on_csend(node); end
46600
+
46190
46601
  # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104
46191
46602
  def on_send(node); end
46192
46603
 
@@ -46198,45 +46609,45 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base
46198
46609
  # This gets the start of the accessor whether it has a dot
46199
46610
  # (e.g. `.first`) or doesn't (e.g. `[0]`)
46200
46611
  #
46201
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#192
46612
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#193
46202
46613
  def accessor_start(node); end
46203
46614
 
46204
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#182
46615
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#183
46205
46616
  def arg_node(node); end
46206
46617
 
46207
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#186
46618
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#187
46208
46619
  def arg_value(node); end
46209
46620
 
46210
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#147
46621
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#148
46211
46622
  def autocorrect(corrector, node, sort_node, sorter, accessor); end
46212
46623
 
46213
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#165
46624
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#166
46214
46625
  def base(accessor, arg); end
46215
46626
 
46216
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#114
46627
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#115
46217
46628
  def find_redundant_sort(*nodes); end
46218
46629
 
46219
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#135
46630
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#136
46220
46631
  def message(node, sorter, accessor); end
46221
46632
 
46222
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#131
46633
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#132
46223
46634
  def offense_range(sort_node, node); end
46224
46635
 
46225
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#124
46636
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#125
46226
46637
  def register_offense(node, sort_node, sorter, accessor); end
46227
46638
 
46228
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#156
46639
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#157
46229
46640
  def replace_with_logical_operator(corrector, node); end
46230
46641
 
46231
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#173
46642
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#174
46232
46643
  def suffix(sorter); end
46233
46644
 
46234
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#161
46645
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#162
46235
46646
  def suggestion(sorter, accessor, arg); end
46236
46647
 
46237
46648
  # @return [Boolean]
46238
46649
  #
46239
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#200
46650
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#201
46240
46651
  def with_logical_operator?(node); end
46241
46652
  end
46242
46653
 
@@ -47198,6 +47609,9 @@ RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String)
47198
47609
  class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base
47199
47610
  extend ::RuboCop::Cop::AutoCorrector
47200
47611
 
47612
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#41
47613
+ def on_csend(node); end
47614
+
47201
47615
  # source://rubocop//lib/rubocop/cop/style/sample.rb#41
47202
47616
  def on_send(node); end
47203
47617
 
@@ -47206,36 +47620,36 @@ class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base
47206
47620
 
47207
47621
  private
47208
47622
 
47209
- # source://rubocop//lib/rubocop/cop/style/sample.rb#123
47623
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#124
47210
47624
  def correction(shuffle_arg, method, method_args); end
47211
47625
 
47212
- # source://rubocop//lib/rubocop/cop/style/sample.rb#139
47626
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#140
47213
47627
  def extract_source(args); end
47214
47628
 
47215
- # source://rubocop//lib/rubocop/cop/style/sample.rb#117
47629
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#118
47216
47630
  def message(shuffle_arg, method, method_args, range); end
47217
47631
 
47218
47632
  # @return [Boolean]
47219
47633
  #
47220
- # source://rubocop//lib/rubocop/cop/style/sample.rb#58
47634
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#59
47221
47635
  def offensive?(method, method_args); end
47222
47636
 
47223
- # source://rubocop//lib/rubocop/cop/style/sample.rb#95
47637
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#96
47224
47638
  def range_size(range_node); end
47225
47639
 
47226
- # source://rubocop//lib/rubocop/cop/style/sample.rb#130
47640
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#131
47227
47641
  def sample_arg(method, method_args); end
47228
47642
 
47229
- # source://rubocop//lib/rubocop/cop/style/sample.rb#69
47643
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#70
47230
47644
  def sample_size(method_args); end
47231
47645
 
47232
- # source://rubocop//lib/rubocop/cop/style/sample.rb#78
47646
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#79
47233
47647
  def sample_size_for_one_arg(arg); end
47234
47648
 
47235
- # source://rubocop//lib/rubocop/cop/style/sample.rb#88
47649
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#89
47236
47650
  def sample_size_for_two_args(first, second); end
47237
47651
 
47238
- # source://rubocop//lib/rubocop/cop/style/sample.rb#111
47652
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#112
47239
47653
  def source_range(shuffle_node, node); end
47240
47654
  end
47241
47655
 
@@ -47292,6 +47706,9 @@ class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base
47292
47706
  # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#74
47293
47707
  def env_const?(param0 = T.unsafe(nil)); end
47294
47708
 
47709
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#88
47710
+ def on_csend(node); end
47711
+
47295
47712
  # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#88
47296
47713
  def on_send(node); end
47297
47714
 
@@ -47300,31 +47717,31 @@ class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base
47300
47717
 
47301
47718
  private
47302
47719
 
47303
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#132
47720
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#133
47304
47721
  def extract_send_node(block_node); end
47305
47722
 
47306
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#145
47723
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#146
47307
47724
  def find_regexp(node, block); end
47308
47725
 
47309
47726
  # @return [Boolean]
47310
47727
  #
47311
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#156
47728
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#157
47312
47729
  def match_predicate_without_receiver?(node); end
47313
47730
 
47314
47731
  # @return [Boolean]
47315
47732
  #
47316
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#141
47733
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#142
47317
47734
  def opposite?(regexp_method_send_node); end
47318
47735
 
47319
47736
  # @return [Boolean]
47320
47737
  #
47321
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#106
47738
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#107
47322
47739
  def receiver_allowed?(node); end
47323
47740
 
47324
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#120
47741
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#121
47325
47742
  def register_offense(node, block_node, regexp, replacement); end
47326
47743
 
47327
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#112
47744
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#113
47328
47745
  def replacement(regexp_method_send_node, node); end
47329
47746
  end
47330
47747
 
@@ -47444,40 +47861,45 @@ class RuboCop::Cop::Style::Semicolon < ::RuboCop::Cop::Base
47444
47861
 
47445
47862
  # @return [Boolean]
47446
47863
  #
47447
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#102
47864
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#106
47448
47865
  def exist_semicolon_after_left_curly_brace?(tokens); end
47449
47866
 
47450
47867
  # @return [Boolean]
47451
47868
  #
47452
47869
  # source://rubocop//lib/rubocop/cop/style/semicolon.rb#110
47870
+ def exist_semicolon_after_left_lambda_curly_brace?(tokens); end
47871
+
47872
+ # @return [Boolean]
47873
+ #
47874
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#118
47453
47875
  def exist_semicolon_after_left_string_interpolation_brace?(tokens); end
47454
47876
 
47455
47877
  # @return [Boolean]
47456
47878
  #
47457
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#98
47879
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#102
47458
47880
  def exist_semicolon_before_right_curly_brace?(tokens); end
47459
47881
 
47460
47882
  # @return [Boolean]
47461
47883
  #
47462
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#106
47884
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#114
47463
47885
  def exist_semicolon_before_right_string_interpolation_brace?(tokens); end
47464
47886
 
47465
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#134
47887
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#142
47466
47888
  def expressions_per_line(exprs); end
47467
47889
 
47468
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#148
47890
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#156
47469
47891
  def find_range_node(token_before_semicolon); end
47470
47892
 
47471
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#140
47893
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#148
47472
47894
  def find_semicolon_positions(line); end
47473
47895
 
47474
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#154
47896
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#162
47475
47897
  def range_nodes; end
47476
47898
 
47477
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#114
47899
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#122
47478
47900
  def register_semicolon(line, column, after_expression, token_before_semicolon = T.unsafe(nil)); end
47479
47901
 
47480
- # source://rubocop//lib/rubocop/cop/style/semicolon.rb#83
47902
+ # source://rubocop//lib/rubocop/cop/style/semicolon.rb#84
47481
47903
  def semicolon_position(tokens); end
47482
47904
 
47483
47905
  # source://rubocop//lib/rubocop/cop/style/semicolon.rb#79
@@ -47675,8 +48097,11 @@ RuboCop::Cop::Style::SignalException::RAISE_MSG = T.let(T.unsafe(nil), String)
47675
48097
  # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#114
47676
48098
  RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
47677
48099
 
47678
- # Sometimes using dig method ends up with just a single
47679
- # argument. In such cases, dig should be replaced with [].
48100
+ # Sometimes using `dig` method ends up with just a single
48101
+ # argument. In such cases, dig should be replaced with `[]`.
48102
+ #
48103
+ # Since replacing `hash&.dig(:key)` with `hash[:key]` could potentially lead to error,
48104
+ # calls to the `dig` method using safe navigation will be ignored.
47680
48105
  #
47681
48106
  # @example
47682
48107
  # # bad
@@ -47695,21 +48120,24 @@ RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
47695
48120
  # keys = %i[key1 key2]
47696
48121
  # { key1: { key2: 'value' } }.dig(*keys)
47697
48122
  #
47698
- # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#31
48123
+ # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#34
47699
48124
  class RuboCop::Cop::Style::SingleArgumentDig < ::RuboCop::Cop::Base
47700
48125
  extend ::RuboCop::Cop::AutoCorrector
47701
48126
 
47702
- # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#42
48127
+ # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#46
47703
48128
  def on_send(node); end
47704
48129
 
47705
- # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#38
48130
+ # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#42
47706
48131
  def single_argument_dig?(param0 = T.unsafe(nil)); end
47707
48132
  end
47708
48133
 
47709
- # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#34
48134
+ # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#39
48135
+ RuboCop::Cop::Style::SingleArgumentDig::IGNORED_ARGUMENT_TYPES = T.let(T.unsafe(nil), Array)
48136
+
48137
+ # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#37
47710
48138
  RuboCop::Cop::Style::SingleArgumentDig::MSG = T.let(T.unsafe(nil), String)
47711
48139
 
47712
- # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#35
48140
+ # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#38
47713
48141
  RuboCop::Cop::Style::SingleArgumentDig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
47714
48142
 
47715
48143
  # Checks whether the block parameters of a single-line
@@ -47810,18 +48238,18 @@ RuboCop::Cop::Style::SingleLineBlockParams::MSG = T.let(T.unsafe(nil), String)
47810
48238
  class RuboCop::Cop::Style::SingleLineDoEndBlock < ::RuboCop::Cop::Base
47811
48239
  extend ::RuboCop::Cop::AutoCorrector
47812
48240
 
47813
- # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#33
48241
+ # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#34
47814
48242
  def on_block(node); end
47815
48243
 
47816
- # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#33
48244
+ # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#34
47817
48245
  def on_numblock(node); end
47818
48246
 
47819
48247
  private
47820
48248
 
47821
- # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#53
48249
+ # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#55
47822
48250
  def do_line(node); end
47823
48251
 
47824
- # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#61
48252
+ # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#63
47825
48253
  def x(corrector, node); end
47826
48254
  end
47827
48255
 
@@ -48434,6 +48862,9 @@ class RuboCop::Cop::Style::StringChars < ::RuboCop::Cop::Base
48434
48862
  include ::RuboCop::Cop::RangeHelp
48435
48863
  extend ::RuboCop::Cop::AutoCorrector
48436
48864
 
48865
+ # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29
48866
+ def on_csend(node); end
48867
+
48437
48868
  # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29
48438
48869
  def on_send(node); end
48439
48870
  end
@@ -48781,7 +49212,10 @@ class RuboCop::Cop::Style::Strip < ::RuboCop::Cop::Base
48781
49212
  # source://rubocop//lib/rubocop/cop/style/strip.rb#24
48782
49213
  def lstrip_rstrip(param0 = T.unsafe(nil)); end
48783
49214
 
48784
- # source://rubocop//lib/rubocop/cop/style/strip.rb#29
49215
+ # source://rubocop//lib/rubocop/cop/style/strip.rb#31
49216
+ def on_csend(node); end
49217
+
49218
+ # source://rubocop//lib/rubocop/cop/style/strip.rb#31
48785
49219
  def on_send(node); end
48786
49220
  end
48787
49221
 
@@ -48831,6 +49265,29 @@ end
48831
49265
  # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#30
48832
49266
  RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String)
48833
49267
 
49268
+ # Enforces the presence of parentheses in `super` containing arguments.
49269
+ #
49270
+ # `super` is a keyword and is provided as a distinct cop from those designed for method call.
49271
+ #
49272
+ # @example
49273
+ #
49274
+ # # bad
49275
+ # super name, age
49276
+ #
49277
+ # # good
49278
+ # super(name, age)
49279
+ #
49280
+ # source://rubocop//lib/rubocop/cop/style/super_with_args_parentheses.rb#18
49281
+ class RuboCop::Cop::Style::SuperWithArgsParentheses < ::RuboCop::Cop::Base
49282
+ extend ::RuboCop::Cop::AutoCorrector
49283
+
49284
+ # source://rubocop//lib/rubocop/cop/style/super_with_args_parentheses.rb#23
49285
+ def on_super(node); end
49286
+ end
49287
+
49288
+ # source://rubocop//lib/rubocop/cop/style/super_with_args_parentheses.rb#21
49289
+ RuboCop::Cop::Style::SuperWithArgsParentheses::MSG = T.let(T.unsafe(nil), String)
49290
+
48834
49291
  # Enforces the use of shorthand-style swapping of 2 variables.
48835
49292
  #
48836
49293
  # @example
@@ -49619,7 +50076,7 @@ class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base
49619
50076
  def on_send(node); end
49620
50077
 
49621
50078
  class << self
49622
- # source://rubocop-rspec/2.24.1/lib/rubocop-rspec.rb#60
50079
+ # source://rubocop-rspec/2.25.0/lib/rubocop-rspec.rb#60
49623
50080
  def autocorrect_incompatible_with; end
49624
50081
  end
49625
50082
  end
@@ -50340,22 +50797,25 @@ class RuboCop::Cop::Style::UnpackFirst < ::RuboCop::Cop::Base
50340
50797
  extend ::RuboCop::Cop::AutoCorrector
50341
50798
  extend ::RuboCop::Cop::TargetRubyVersion
50342
50799
 
50343
- # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#38
50800
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37
50801
+ def on_csend(node); end
50802
+
50803
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37
50344
50804
  def on_send(node); end
50345
50805
 
50346
- # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#31
50806
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#30
50347
50807
  def unpack_and_first_element?(param0 = T.unsafe(nil)); end
50348
50808
 
50349
50809
  private
50350
50810
 
50351
- # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#54
50811
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#53
50352
50812
  def first_element_range(node, unpack_call); end
50353
50813
  end
50354
50814
 
50355
50815
  # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#26
50356
50816
  RuboCop::Cop::Style::UnpackFirst::MSG = T.let(T.unsafe(nil), String)
50357
50817
 
50358
- # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#28
50818
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#27
50359
50819
  RuboCop::Cop::Style::UnpackFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
50360
50820
 
50361
50821
  # Checks for variable interpolation (like "#@ivar").
@@ -54028,37 +54488,37 @@ RuboCop::Formatter::GitHubActionsFormatter::ESCAPE_MAP = T.let(T.unsafe(nil), Ha
54028
54488
 
54029
54489
  # This formatter saves the output as an html file.
54030
54490
  #
54031
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#11
54491
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#9
54032
54492
  class RuboCop::Formatter::HTMLFormatter < ::RuboCop::Formatter::BaseFormatter
54033
54493
  # @return [HTMLFormatter] a new instance of HTMLFormatter
54034
54494
  #
54035
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#30
54495
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#28
54036
54496
  def initialize(output, options = T.unsafe(nil)); end
54037
54497
 
54038
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#40
54498
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#38
54039
54499
  def file_finished(file, offenses); end
54040
54500
 
54041
54501
  # Returns the value of attribute files.
54042
54502
  #
54043
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#28
54503
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#26
54044
54504
  def files; end
54045
54505
 
54046
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#45
54506
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#43
54047
54507
  def finished(inspected_files); end
54048
54508
 
54049
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#51
54509
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#49
54050
54510
  def render_html; end
54051
54511
 
54052
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#36
54512
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#34
54053
54513
  def started(target_files); end
54054
54514
 
54055
54515
  # Returns the value of attribute summary.
54056
54516
  #
54057
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#28
54517
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#26
54058
54518
  def summary; end
54059
54519
  end
54060
54520
 
54061
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15
54521
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#13
54062
54522
  class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
54063
54523
  # Returns the value of attribute alpha
54064
54524
  #
@@ -54082,7 +54542,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
54082
54542
  # @return [Object] the newly set value
54083
54543
  def blue=(_); end
54084
54544
 
54085
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#20
54545
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#18
54086
54546
  def fade_out(amount); end
54087
54547
 
54088
54548
  # Returns the value of attribute green
@@ -54107,7 +54567,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
54107
54567
  # @return [Object] the newly set value
54108
54568
  def red=(_); end
54109
54569
 
54110
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#16
54570
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
54111
54571
  def to_s; end
54112
54572
 
54113
54573
  class << self
@@ -54119,68 +54579,68 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
54119
54579
  end
54120
54580
  end
54121
54581
 
54122
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#12
54582
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#10
54123
54583
  RuboCop::Formatter::HTMLFormatter::ELLIPSES = T.let(T.unsafe(nil), String)
54124
54584
 
54125
54585
  # This class provides helper methods used in the ERB template.
54126
54586
  #
54127
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#62
54587
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#60
54128
54588
  class RuboCop::Formatter::HTMLFormatter::ERBContext
54129
54589
  include ::RuboCop::PathUtil
54130
54590
  include ::RuboCop::Formatter::TextUtil
54131
54591
 
54132
54592
  # @return [ERBContext] a new instance of ERBContext
54133
54593
  #
54134
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#78
54594
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76
54135
54595
  def initialize(files, summary); end
54136
54596
 
54137
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#125
54597
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#123
54138
54598
  def base64_encoded_logo_image; end
54139
54599
 
54140
54600
  # Make Kernel#binding public.
54141
54601
  #
54142
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#85
54602
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#83
54143
54603
  def binding; end
54144
54604
 
54145
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#90
54605
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#88
54146
54606
  def decorated_message(offense); end
54147
54607
 
54148
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#121
54608
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#119
54149
54609
  def escape(string); end
54150
54610
 
54151
54611
  # Returns the value of attribute files.
54152
54612
  #
54153
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76
54613
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#74
54154
54614
  def files; end
54155
54615
 
54156
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#101
54616
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#99
54157
54617
  def highlight_source_tag(offense); end
54158
54618
 
54159
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#94
54619
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#92
54160
54620
  def highlighted_source_line(offense); end
54161
54621
 
54162
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#117
54622
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#115
54163
54623
  def possible_ellipses(location); end
54164
54624
 
54165
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#112
54625
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#110
54166
54626
  def source_after_highlight(offense); end
54167
54627
 
54168
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#107
54628
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#105
54169
54629
  def source_before_highlight(offense); end
54170
54630
 
54171
54631
  # Returns the value of attribute summary.
54172
54632
  #
54173
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76
54633
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#74
54174
54634
  def summary; end
54175
54635
  end
54176
54636
 
54177
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#74
54637
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#72
54178
54638
  RuboCop::Formatter::HTMLFormatter::ERBContext::LOGO_IMAGE_PATH = T.let(T.unsafe(nil), String)
54179
54639
 
54180
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#66
54640
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#64
54181
54641
  RuboCop::Formatter::HTMLFormatter::ERBContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash)
54182
54642
 
54183
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#26
54643
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
54184
54644
  class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct
54185
54645
  # Returns the value of attribute offenses
54186
54646
  #
@@ -54213,7 +54673,7 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct
54213
54673
  end
54214
54674
  end
54215
54675
 
54216
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
54676
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#23
54217
54677
  class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct
54218
54678
  # Returns the value of attribute inspected_files
54219
54679
  #
@@ -54257,7 +54717,7 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct
54257
54717
  end
54258
54718
  end
54259
54719
 
54260
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#13
54720
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#11
54261
54721
  RuboCop::Formatter::HTMLFormatter::TEMPLATE_PATH = T.let(T.unsafe(nil), String)
54262
54722
 
54263
54723
  # This formatter formats the report data in JSON format.
@@ -55781,39 +56241,39 @@ RuboCop::RemoteConfig::CACHE_LIFETIME = T.let(T.unsafe(nil), Integer)
55781
56241
  #
55782
56242
  # @api private
55783
56243
  #
55784
- # source://rubocop//lib/rubocop/result_cache.rb#12
56244
+ # source://rubocop//lib/rubocop/result_cache.rb#11
55785
56245
  class RuboCop::ResultCache
55786
56246
  # @api private
55787
56247
  # @return [ResultCache] a new instance of ResultCache
55788
56248
  #
55789
- # source://rubocop//lib/rubocop/result_cache.rb#88
56249
+ # source://rubocop//lib/rubocop/result_cache.rb#87
55790
56250
  def initialize(file, team, options, config_store, cache_root = T.unsafe(nil)); end
55791
56251
 
55792
56252
  # @api private
55793
56253
  # @return [Boolean]
55794
56254
  #
55795
- # source://rubocop//lib/rubocop/result_cache.rb#101
56255
+ # source://rubocop//lib/rubocop/result_cache.rb#100
55796
56256
  def debug?; end
55797
56257
 
55798
56258
  # @api private
55799
56259
  #
55800
- # source://rubocop//lib/rubocop/result_cache.rb#109
56260
+ # source://rubocop//lib/rubocop/result_cache.rb#108
55801
56261
  def load; end
55802
56262
 
55803
56263
  # @api private
55804
56264
  #
55805
- # source://rubocop//lib/rubocop/result_cache.rb#86
56265
+ # source://rubocop//lib/rubocop/result_cache.rb#85
55806
56266
  def path; end
55807
56267
 
55808
56268
  # @api private
55809
56269
  #
55810
- # source://rubocop//lib/rubocop/result_cache.rb#114
56270
+ # source://rubocop//lib/rubocop/result_cache.rb#113
55811
56271
  def save(offenses); end
55812
56272
 
55813
56273
  # @api private
55814
56274
  # @return [Boolean]
55815
56275
  #
55816
- # source://rubocop//lib/rubocop/result_cache.rb#105
56276
+ # source://rubocop//lib/rubocop/result_cache.rb#104
55817
56277
  def valid?; end
55818
56278
 
55819
56279
  private
@@ -55821,7 +56281,7 @@ class RuboCop::ResultCache
55821
56281
  # @api private
55822
56282
  # @return [Boolean]
55823
56283
  #
55824
- # source://rubocop//lib/rubocop/result_cache.rb#147
56284
+ # source://rubocop//lib/rubocop/result_cache.rb#146
55825
56285
  def any_symlink?(path); end
55826
56286
 
55827
56287
  # We combine team and options into a single "context" checksum to avoid
@@ -55831,17 +56291,17 @@ class RuboCop::ResultCache
55831
56291
  #
55832
56292
  # @api private
55833
56293
  #
55834
- # source://rubocop//lib/rubocop/result_cache.rb#237
56294
+ # source://rubocop//lib/rubocop/result_cache.rb#236
55835
56295
  def context_checksum(team, options); end
55836
56296
 
55837
56297
  # @api private
55838
56298
  #
55839
- # source://rubocop//lib/rubocop/result_cache.rb#190
56299
+ # source://rubocop//lib/rubocop/result_cache.rb#189
55840
56300
  def digest(path); end
55841
56301
 
55842
56302
  # @api private
55843
56303
  #
55844
- # source://rubocop//lib/rubocop/result_cache.rb#158
56304
+ # source://rubocop//lib/rubocop/result_cache.rb#157
55845
56305
  def file_checksum(file, config_store); end
55846
56306
 
55847
56307
  # Return a hash of the options given at invocation, minus the ones that have
@@ -55850,25 +56310,25 @@ class RuboCop::ResultCache
55850
56310
  #
55851
56311
  # @api private
55852
56312
  #
55853
- # source://rubocop//lib/rubocop/result_cache.rb#221
56313
+ # source://rubocop//lib/rubocop/result_cache.rb#220
55854
56314
  def relevant_options_digest(options); end
55855
56315
 
55856
56316
  # The checksum of the RuboCop program running the inspection.
55857
56317
  #
55858
56318
  # @api private
55859
56319
  #
55860
- # source://rubocop//lib/rubocop/result_cache.rb#175
56320
+ # source://rubocop//lib/rubocop/result_cache.rb#174
55861
56321
  def rubocop_checksum; end
55862
56322
 
55863
56323
  # @api private
55864
56324
  #
55865
- # source://rubocop//lib/rubocop/result_cache.rb#201
56325
+ # source://rubocop//lib/rubocop/result_cache.rb#200
55866
56326
  def rubocop_extra_features; end
55867
56327
 
55868
56328
  # @api private
55869
56329
  # @return [Boolean]
55870
56330
  #
55871
- # source://rubocop//lib/rubocop/result_cache.rb#143
56331
+ # source://rubocop//lib/rubocop/result_cache.rb#142
55872
56332
  def symlink_protection_triggered?(path); end
55873
56333
 
55874
56334
  # The external dependency checksums are cached per RuboCop team so that
@@ -55876,19 +56336,19 @@ class RuboCop::ResultCache
55876
56336
  #
55877
56337
  # @api private
55878
56338
  #
55879
- # source://rubocop//lib/rubocop/result_cache.rb#228
56339
+ # source://rubocop//lib/rubocop/result_cache.rb#227
55880
56340
  def team_checksum(team); end
55881
56341
 
55882
56342
  class << self
55883
56343
  # @api private
55884
56344
  # @return [Boolean]
55885
56345
  #
55886
- # source://rubocop//lib/rubocop/result_cache.rb#82
56346
+ # source://rubocop//lib/rubocop/result_cache.rb#81
55887
56347
  def allow_symlinks_in_cache_location?(config_store); end
55888
56348
 
55889
56349
  # @api private
55890
56350
  #
55891
- # source://rubocop//lib/rubocop/result_cache.rb#76
56351
+ # source://rubocop//lib/rubocop/result_cache.rb#75
55892
56352
  def cache_root(config_store); end
55893
56353
 
55894
56354
  # Remove old files so that the cache doesn't grow too big. When the
@@ -55900,67 +56360,67 @@ class RuboCop::ResultCache
55900
56360
  #
55901
56361
  # @api private
55902
56362
  #
55903
- # source://rubocop//lib/rubocop/result_cache.rb#29
56363
+ # source://rubocop//lib/rubocop/result_cache.rb#28
55904
56364
  def cleanup(config_store, verbose, cache_root = T.unsafe(nil)); end
55905
56365
 
55906
56366
  # @api private
55907
56367
  #
55908
- # source://rubocop//lib/rubocop/result_cache.rb#171
56368
+ # source://rubocop//lib/rubocop/result_cache.rb#170
55909
56369
  def inhibit_cleanup; end
55910
56370
 
55911
56371
  # @api private
55912
56372
  #
55913
- # source://rubocop//lib/rubocop/result_cache.rb#171
56373
+ # source://rubocop//lib/rubocop/result_cache.rb#170
55914
56374
  def inhibit_cleanup=(_arg0); end
55915
56375
 
55916
56376
  # @api private
55917
56377
  #
55918
- # source://rubocop//lib/rubocop/result_cache.rb#43
56378
+ # source://rubocop//lib/rubocop/result_cache.rb#42
55919
56379
  def rubocop_required_features; end
55920
56380
 
55921
56381
  # @api private
55922
56382
  #
55923
- # source://rubocop//lib/rubocop/result_cache.rb#43
56383
+ # source://rubocop//lib/rubocop/result_cache.rb#42
55924
56384
  def rubocop_required_features=(_arg0); end
55925
56385
 
55926
56386
  # @api private
55927
56387
  #
55928
- # source://rubocop//lib/rubocop/result_cache.rb#171
56388
+ # source://rubocop//lib/rubocop/result_cache.rb#170
55929
56389
  def source_checksum; end
55930
56390
 
55931
56391
  # @api private
55932
56392
  #
55933
- # source://rubocop//lib/rubocop/result_cache.rb#171
56393
+ # source://rubocop//lib/rubocop/result_cache.rb#170
55934
56394
  def source_checksum=(_arg0); end
55935
56395
 
55936
56396
  private
55937
56397
 
55938
56398
  # @api private
55939
56399
  #
55940
- # source://rubocop//lib/rubocop/result_cache.rb#66
56400
+ # source://rubocop//lib/rubocop/result_cache.rb#65
55941
56401
  def remove_files(files, dirs, remove_count); end
55942
56402
 
55943
56403
  # @api private
55944
56404
  #
55945
- # source://rubocop//lib/rubocop/result_cache.rb#53
56405
+ # source://rubocop//lib/rubocop/result_cache.rb#52
55946
56406
  def remove_oldest_files(files, dirs, cache_root, verbose); end
55947
56407
 
55948
56408
  # @api private
55949
56409
  # @return [Boolean]
55950
56410
  #
55951
- # source://rubocop//lib/rubocop/result_cache.rb#49
56411
+ # source://rubocop//lib/rubocop/result_cache.rb#48
55952
56412
  def requires_file_removal?(file_count, config_store); end
55953
56413
  end
55954
56414
  end
55955
56415
 
55956
56416
  # @api private
55957
56417
  #
55958
- # source://rubocop//lib/rubocop/result_cache.rb#17
56418
+ # source://rubocop//lib/rubocop/result_cache.rb#16
55959
56419
  RuboCop::ResultCache::DL_EXTENSIONS = T.let(T.unsafe(nil), Array)
55960
56420
 
55961
56421
  # @api private
55962
56422
  #
55963
- # source://rubocop//lib/rubocop/result_cache.rb#13
56423
+ # source://rubocop//lib/rubocop/result_cache.rb#12
55964
56424
  RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array)
55965
56425
 
55966
56426
  # This class handles the processing of files, which includes dealing with