sorbet-schema 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.standard.yml +2 -1
  3. data/CHANGELOG.md +28 -0
  4. data/Gemfile +1 -0
  5. data/Gemfile.lock +45 -44
  6. data/README.md +230 -7
  7. data/lib/sorbet-schema/t/struct.rb +38 -0
  8. data/lib/sorbet-schema/version.rb +1 -1
  9. data/lib/sorbet-schema.rb +7 -1
  10. data/lib/typed/field.rb +2 -1
  11. data/lib/typed/schema.rb +14 -0
  12. data/lib/typed/serializer.rb +1 -1
  13. data/sorbet/rbi/gems/ansi@1.5.0.rbi +1 -0
  14. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
  15. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +9 -0
  16. data/sorbet/rbi/gems/builder@3.2.4.rbi +1 -0
  17. data/sorbet/rbi/gems/erubi@1.12.0.rbi +1 -0
  18. data/sorbet/rbi/gems/io-console@0.7.2.rbi +1 -0
  19. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +77 -68
  20. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -0
  21. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
  22. data/sorbet/rbi/gems/minitest-focus@1.4.0.rbi +14 -13
  23. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +27 -26
  24. data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.23.1.rbi} +160 -141
  25. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  26. data/sorbet/rbi/gems/parallel@1.24.0.rbi +1 -0
  27. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.1.0.rbi} +233 -186
  28. data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.29.0.rbi} +19135 -12188
  29. data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
  30. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.0.rbi} +38 -33
  31. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  32. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  33. data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.13.rbi} +226 -154
  34. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
  35. data/sorbet/rbi/gems/{reline@0.4.3.rbi → reline@0.5.7.rbi} +1 -0
  36. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.2.8.rbi} +121 -108
  37. data/sorbet/rbi/gems/{rubocop-ast@1.31.2.rbi → rubocop-ast@1.31.3.rbi} +4 -6
  38. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.21.0.rbi} +1 -0
  39. data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +1 -0
  40. data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.63.5.rbi} +612 -371
  41. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  42. data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +83 -82
  43. data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +1 -0
  44. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
  45. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
  46. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.4.0.rbi} +1 -0
  47. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
  48. data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.36.0.rbi} +61 -60
  49. data/sorbet/rbi/gems/stringio@3.1.0.rbi +1 -0
  50. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  51. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.14.2.rbi} +148 -113
  52. data/sorbet/rbi/gems/thor@1.3.1.rbi +1 -0
  53. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +1 -0
  54. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +2 -1
  55. data/sorbet/rbi/gems/yard@0.9.36.rbi +1 -0
  56. data/sorbet/rbi/gems/{zeitwerk@2.6.13.rbi → zeitwerk@2.6.15.rbi} +47 -36
  57. metadata +24 -23
  58. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  59. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `rubocop` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem rubocop`.
6
6
 
7
+
7
8
  class Parser::Source::Comment
8
9
  include ::RuboCop::Ext::Comment
9
10
  end
@@ -97,44 +98,44 @@ class RuboCop::CLI
97
98
 
98
99
  private
99
100
 
100
- # source://rubocop//lib/rubocop/cli.rb#152
101
+ # source://rubocop//lib/rubocop/cli.rb#156
101
102
  def act_on_options; end
102
103
 
103
- # source://rubocop//lib/rubocop/cli.rb#194
104
+ # source://rubocop//lib/rubocop/cli.rb#198
104
105
  def apply_default_formatter; end
105
106
 
106
- # source://rubocop//lib/rubocop/cli.rb#121
107
+ # source://rubocop//lib/rubocop/cli.rb#125
107
108
  def execute_runners; end
108
109
 
109
- # source://rubocop//lib/rubocop/cli.rb#178
110
+ # source://rubocop//lib/rubocop/cli.rb#182
110
111
  def handle_editor_mode; end
111
112
 
112
113
  # @raise [Finished]
113
114
  #
114
- # source://rubocop//lib/rubocop/cli.rb#183
115
+ # source://rubocop//lib/rubocop/cli.rb#187
115
116
  def handle_exiting_options; end
116
117
 
117
- # source://rubocop//lib/rubocop/cli.rb#140
118
+ # source://rubocop//lib/rubocop/cli.rb#144
118
119
  def parallel_by_default!; end
119
120
 
120
- # source://rubocop//lib/rubocop/cli.rb#76
121
+ # source://rubocop//lib/rubocop/cli.rb#80
121
122
  def profile_if_needed; end
122
123
 
123
- # source://rubocop//lib/rubocop/cli.rb#109
124
+ # source://rubocop//lib/rubocop/cli.rb#113
124
125
  def require_gem(name); end
125
126
 
126
- # source://rubocop//lib/rubocop/cli.rb#117
127
+ # source://rubocop//lib/rubocop/cli.rb#121
127
128
  def run_command(name); end
128
129
 
129
- # source://rubocop//lib/rubocop/cli.rb#170
130
+ # source://rubocop//lib/rubocop/cli.rb#174
130
131
  def set_options_to_config_loader; end
131
132
 
132
- # source://rubocop//lib/rubocop/cli.rb#129
133
+ # source://rubocop//lib/rubocop/cli.rb#133
133
134
  def suggest_extensions; end
134
135
 
135
136
  # @raise [OptionArgumentError]
136
137
  #
137
- # source://rubocop//lib/rubocop/cli.rb#133
138
+ # source://rubocop//lib/rubocop/cli.rb#137
138
139
  def validate_options_vs_config; end
139
140
  end
140
141
 
@@ -744,6 +745,11 @@ class RuboCop::CachedData
744
745
  # source://rubocop//lib/rubocop/cached_data.rb#47
745
746
  def deserialize_offenses(offenses); end
746
747
 
748
+ # @api private
749
+ #
750
+ # source://rubocop//lib/rubocop/cached_data.rb#56
751
+ def location_from_source_buffer(offense, source_buffer); end
752
+
747
753
  # @api private
748
754
  #
749
755
  # source://rubocop//lib/rubocop/cached_data.rb#40
@@ -763,7 +769,7 @@ class RuboCop::CommentConfig
763
769
 
764
770
  # @return [CommentConfig] a new instance of CommentConfig
765
771
  #
766
- # source://standard/1.35.1/lib/standard/rubocop/ext.rb#20
772
+ # source://standard/1.36.0/lib/standard/rubocop/ext.rb#20
767
773
  def initialize(processed_source); end
768
774
 
769
775
  # @return [Boolean]
@@ -1002,7 +1008,9 @@ class RuboCop::Config
1002
1008
  # source://rubocop//lib/rubocop/config.rb#237
1003
1009
  def base_dir_for_path_parameters; end
1004
1010
 
1005
- # source://rubocop//lib/rubocop/config.rb#266
1011
+ # @return [String, nil]
1012
+ #
1013
+ # source://rubocop//lib/rubocop/config.rb#267
1006
1014
  def bundler_lock_file_path; end
1007
1015
 
1008
1016
  # source://rubocop//lib/rubocop/config.rb#51
@@ -1078,7 +1086,12 @@ class RuboCop::Config
1078
1086
  # source://rubocop//lib/rubocop/config.rb#153
1079
1087
  def for_department(department_name); end
1080
1088
 
1081
- # source://rubocop//lib/rubocop/config.rb#289
1089
+ # Returns target's locked gem versions (i.e. from Gemfile.lock or gems.locked)
1090
+ #
1091
+ # source://rubocop//lib/rubocop/config.rb#292
1092
+ def gem_versions_in_target; end
1093
+
1094
+ # source://rubocop//lib/rubocop/config.rb#296
1082
1095
  def inspect; end
1083
1096
 
1084
1097
  # True if this is a config file that is shipped with RuboCop
@@ -1123,7 +1136,7 @@ class RuboCop::Config
1123
1136
  # source://rubocop//lib/rubocop/config.rb#220
1124
1137
  def patterns_to_include; end
1125
1138
 
1126
- # source://rubocop//lib/rubocop/config.rb#277
1139
+ # source://rubocop//lib/rubocop/config.rb#278
1127
1140
  def pending_cops; end
1128
1141
 
1129
1142
  # Returns true if there's a chance that an Include pattern matches hidden
@@ -1169,18 +1182,31 @@ class RuboCop::Config
1169
1182
 
1170
1183
  private
1171
1184
 
1172
- # source://rubocop//lib/rubocop/config.rb#324
1185
+ # source://rubocop//lib/rubocop/config.rb#347
1173
1186
  def department_of(qualified_cop_name); end
1174
1187
 
1175
1188
  # @return [Boolean]
1176
1189
  #
1177
- # source://rubocop//lib/rubocop/config.rb#312
1190
+ # source://rubocop//lib/rubocop/config.rb#335
1178
1191
  def enable_cop?(qualified_cop_name, cop_options); end
1179
1192
 
1180
- # source://rubocop//lib/rubocop/config.rb#299
1193
+ # @param gem_version [Gem::Version] an object like `Gem::Version.new("7.1.2.3")`
1194
+ # @return [Float] The major and minor version, like `7.1`
1195
+ #
1196
+ # source://rubocop//lib/rubocop/config.rb#321
1197
+ def gem_version_to_major_minor_float(gem_version); end
1198
+
1199
+ # source://rubocop//lib/rubocop/config.rb#328
1200
+ def read_gem_versions_from_target_lockfile; end
1201
+
1202
+ # @return [Float, nil] The Rails version as a `major.minor` Float.
1203
+ #
1204
+ # source://rubocop//lib/rubocop/config.rb#308
1181
1205
  def read_rails_version_from_bundler_lock_file; end
1182
1206
 
1183
- # source://rubocop//lib/rubocop/config.rb#295
1207
+ # @return [Float, nil] The Rails version as a `major.minor` Float.
1208
+ #
1209
+ # source://rubocop//lib/rubocop/config.rb#303
1184
1210
  def target_rails_version_from_bundler_lock_file; end
1185
1211
 
1186
1212
  class << self
@@ -2916,18 +2942,18 @@ class RuboCop::Cop::Base
2916
2942
 
2917
2943
  # @return [Base] a new instance of Base
2918
2944
  #
2919
- # source://rubocop//lib/rubocop/cop/base.rb#129
2945
+ # source://rubocop//lib/rubocop/cop/base.rb#153
2920
2946
  def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
2921
2947
 
2922
2948
  # @return [Boolean]
2923
2949
  #
2924
- # source://rubocop//lib/rubocop/cop/base.rb#243
2950
+ # source://rubocop//lib/rubocop/cop/base.rb#269
2925
2951
  def active_support_extensions_enabled?; end
2926
2952
 
2927
2953
  # Adds an offense that has no particular location.
2928
2954
  # No correction can be applied to global offenses
2929
2955
  #
2930
- # source://rubocop//lib/rubocop/cop/base.rb#162
2956
+ # source://rubocop//lib/rubocop/cop/base.rb#186
2931
2957
  def add_global_offense(message = T.unsafe(nil), severity: T.unsafe(nil)); end
2932
2958
 
2933
2959
  # Adds an offense on the specified range (or node with an expression)
@@ -2935,25 +2961,25 @@ class RuboCop::Cop::Base
2935
2961
  # to provide the cop the opportunity to autocorrect the offense.
2936
2962
  # If message is not specified, the method `message` will be called.
2937
2963
  #
2938
- # source://rubocop//lib/rubocop/cop/base.rb#172
2964
+ # source://rubocop//lib/rubocop/cop/base.rb#198
2939
2965
  def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end
2940
2966
 
2941
2967
  # @api private
2942
2968
  # @return [Boolean]
2943
2969
  #
2944
- # source://rubocop//lib/rubocop/cop/base.rb#313
2970
+ # source://rubocop//lib/rubocop/cop/base.rb#340
2945
2971
  def always_autocorrect?; end
2946
2972
 
2947
2973
  # Called before any investigation
2948
2974
  #
2949
2975
  # @api private
2950
2976
  #
2951
- # source://rubocop//lib/rubocop/cop/base.rb#299
2977
+ # source://rubocop//lib/rubocop/cop/base.rb#326
2952
2978
  def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end
2953
2979
 
2954
2980
  # @api private
2955
2981
  #
2956
- # source://rubocop//lib/rubocop/cop/base.rb#284
2982
+ # source://rubocop//lib/rubocop/cop/base.rb#311
2957
2983
  def callbacks_needed; end
2958
2984
 
2959
2985
  # Returns the value of attribute config.
@@ -2961,29 +2987,29 @@ class RuboCop::Cop::Base
2961
2987
  # source://rubocop//lib/rubocop/cop/base.rb#43
2962
2988
  def config; end
2963
2989
 
2964
- # source://rubocop//lib/rubocop/cop/base.rb#223
2990
+ # source://rubocop//lib/rubocop/cop/base.rb#249
2965
2991
  def config_to_allow_offenses; end
2966
2992
 
2967
- # source://rubocop//lib/rubocop/cop/base.rb#227
2993
+ # source://rubocop//lib/rubocop/cop/base.rb#253
2968
2994
  def config_to_allow_offenses=(hash); end
2969
2995
 
2970
2996
  # @api private
2971
2997
  # @return [Boolean]
2972
2998
  #
2973
- # source://rubocop//lib/rubocop/cop/base.rb#319
2999
+ # source://rubocop//lib/rubocop/cop/base.rb#346
2974
3000
  def contextual_autocorrect?; end
2975
3001
 
2976
3002
  # Configuration Helpers
2977
3003
  #
2978
- # source://rubocop//lib/rubocop/cop/base.rb#217
3004
+ # source://rubocop//lib/rubocop/cop/base.rb#243
2979
3005
  def cop_config; end
2980
3006
 
2981
- # source://rubocop//lib/rubocop/cop/base.rb#209
3007
+ # source://rubocop//lib/rubocop/cop/base.rb#235
2982
3008
  def cop_name; end
2983
3009
 
2984
3010
  # @return [Boolean]
2985
3011
  #
2986
- # source://rubocop//lib/rubocop/cop/base.rb#255
3012
+ # source://rubocop//lib/rubocop/cop/base.rb#282
2987
3013
  def excluded_file?(file); end
2988
3014
 
2989
3015
  # This method should be overridden when a cop's behavior depends
@@ -3002,51 +3028,51 @@ class RuboCop::Cop::Base
3002
3028
  # ResultCache system when those external dependencies change,
3003
3029
  # ie when the ResultCache should be invalidated.
3004
3030
  #
3005
- # source://rubocop//lib/rubocop/cop/base.rb#205
3031
+ # source://rubocop//lib/rubocop/cop/base.rb#231
3006
3032
  def external_dependency_checksum; end
3007
3033
 
3008
- # source://rubocop//lib/rubocop/cop/base.rb#323
3034
+ # source://rubocop//lib/rubocop/cop/base.rb#350
3009
3035
  def inspect; end
3010
3036
 
3011
3037
  # Gets called if no message is specified when calling `add_offense` or
3012
3038
  # `add_global_offense`
3013
3039
  # Cops are discouraged to override this; instead pass your message directly
3014
3040
  #
3015
- # source://rubocop//lib/rubocop/cop/base.rb#156
3041
+ # source://rubocop//lib/rubocop/cop/base.rb#180
3016
3042
  def message(_range = T.unsafe(nil)); end
3017
3043
 
3018
- # source://rubocop//lib/rubocop/cop/base.rb#209
3044
+ # source://rubocop//lib/rubocop/cop/base.rb#235
3019
3045
  def name; end
3020
3046
 
3021
3047
  # @deprecated Make potential errors with previous API more obvious
3022
3048
  #
3023
- # source://rubocop//lib/rubocop/cop/base.rb#275
3049
+ # source://rubocop//lib/rubocop/cop/base.rb#302
3024
3050
  def offenses; end
3025
3051
 
3026
3052
  # Called after all on_... have been called
3027
3053
  # When refining this method, always call `super`
3028
3054
  #
3029
- # source://rubocop//lib/rubocop/cop/base.rb#143
3055
+ # source://rubocop//lib/rubocop/cop/base.rb#167
3030
3056
  def on_investigation_end; end
3031
3057
 
3032
3058
  # Called before all on_... have been called
3033
3059
  # When refining this method, always call `super`
3034
3060
  #
3035
- # source://rubocop//lib/rubocop/cop/base.rb#137
3061
+ # source://rubocop//lib/rubocop/cop/base.rb#161
3036
3062
  def on_new_investigation; end
3037
3063
 
3038
3064
  # Called instead of all on_... callbacks for unrecognized files / syntax errors
3039
3065
  # When refining this method, always call `super`
3040
3066
  #
3041
- # source://rubocop//lib/rubocop/cop/base.rb#149
3067
+ # source://rubocop//lib/rubocop/cop/base.rb#173
3042
3068
  def on_other_file; end
3043
3069
 
3044
3070
  # There should be very limited reasons for a Cop to do it's own parsing
3045
3071
  #
3046
- # source://rubocop//lib/rubocop/cop/base.rb#260
3072
+ # source://rubocop//lib/rubocop/cop/base.rb#287
3047
3073
  def parse(source, path = T.unsafe(nil)); end
3048
3074
 
3049
- # source://rubocop//lib/rubocop/cop/base.rb#235
3075
+ # source://rubocop//lib/rubocop/cop/base.rb#261
3050
3076
  def parser_engine; end
3051
3077
 
3052
3078
  # Returns the value of attribute processed_source.
@@ -3058,99 +3084,104 @@ class RuboCop::Cop::Base
3058
3084
  #
3059
3085
  # @api private
3060
3086
  #
3061
- # source://rubocop//lib/rubocop/cop/base.rb#266
3087
+ # source://rubocop//lib/rubocop/cop/base.rb#293
3062
3088
  def ready; end
3063
3089
 
3064
3090
  # @return [Boolean]
3065
3091
  #
3066
- # source://rubocop//lib/rubocop/cop/base.rb#247
3092
+ # source://rubocop//lib/rubocop/cop/base.rb#273
3067
3093
  def relevant_file?(file); end
3068
3094
 
3069
- # source://rubocop//lib/rubocop/cop/base.rb#239
3095
+ # source://rubocop//lib/rubocop/cop/base.rb#265
3070
3096
  def target_rails_version; end
3071
3097
 
3072
- # source://rubocop//lib/rubocop/cop/base.rb#231
3098
+ # source://rubocop//lib/rubocop/cop/base.rb#257
3073
3099
  def target_ruby_version; end
3074
3100
 
3075
3101
  private
3076
3102
 
3077
- # source://rubocop//lib/rubocop/cop/base.rb#451
3103
+ # source://rubocop//lib/rubocop/cop/base.rb#478
3078
3104
  def annotate(message); end
3079
3105
 
3080
- # source://rubocop//lib/rubocop/cop/base.rb#335
3106
+ # source://rubocop//lib/rubocop/cop/base.rb#362
3081
3107
  def apply_correction(corrector); end
3082
3108
 
3083
3109
  # @return [Symbol] offense status
3084
3110
  #
3085
- # source://rubocop//lib/rubocop/cop/base.rb#415
3111
+ # source://rubocop//lib/rubocop/cop/base.rb#442
3086
3112
  def attempt_correction(range, corrector); end
3087
3113
 
3088
3114
  # Reserved for Cop::Cop
3089
3115
  #
3090
- # source://rubocop//lib/rubocop/cop/base.rb#331
3116
+ # source://rubocop//lib/rubocop/cop/base.rb#358
3091
3117
  def callback_argument(range); end
3092
3118
 
3093
3119
  # Called to complete an investigation
3094
3120
  #
3095
- # source://rubocop//lib/rubocop/cop/base.rb#364
3121
+ # source://rubocop//lib/rubocop/cop/base.rb#391
3096
3122
  def complete_investigation; end
3097
3123
 
3098
3124
  # @return [Symbol, Corrector] offense status
3099
3125
  #
3100
- # source://rubocop//lib/rubocop/cop/base.rb#389
3126
+ # source://rubocop//lib/rubocop/cop/base.rb#416
3101
3127
  def correct(range); end
3102
3128
 
3103
- # source://rubocop//lib/rubocop/cop/base.rb#349
3129
+ # source://rubocop//lib/rubocop/cop/base.rb#376
3104
3130
  def current_corrector; end
3105
3131
 
3106
3132
  # Reserved for Commissioner:
3107
3133
  #
3108
- # source://rubocop//lib/rubocop/cop/base.rb#341
3134
+ # source://rubocop//lib/rubocop/cop/base.rb#368
3109
3135
  def current_offense_locations; end
3110
3136
 
3111
- # source://rubocop//lib/rubocop/cop/base.rb#353
3137
+ # source://rubocop//lib/rubocop/cop/base.rb#380
3112
3138
  def current_offenses; end
3113
3139
 
3114
- # source://rubocop//lib/rubocop/cop/base.rb#345
3140
+ # source://rubocop//lib/rubocop/cop/base.rb#372
3115
3141
  def currently_disabled_lines; end
3116
3142
 
3117
- # source://rubocop//lib/rubocop/cop/base.rb#479
3143
+ # source://rubocop//lib/rubocop/cop/base.rb#506
3118
3144
  def custom_severity; end
3119
3145
 
3120
- # source://rubocop//lib/rubocop/cop/base.rb#475
3146
+ # source://rubocop//lib/rubocop/cop/base.rb#502
3121
3147
  def default_severity; end
3122
3148
 
3123
- # source://rubocop//lib/rubocop/cop/base.rb#429
3149
+ # source://rubocop//lib/rubocop/cop/base.rb#456
3124
3150
  def disable_uncorrectable(range); end
3125
3151
 
3126
3152
  # @return [Boolean]
3127
3153
  #
3128
- # source://rubocop//lib/rubocop/cop/base.rb#465
3154
+ # source://rubocop//lib/rubocop/cop/base.rb#492
3129
3155
  def enabled_line?(line_number); end
3130
3156
 
3131
3157
  # @return [Boolean]
3132
3158
  #
3133
- # source://rubocop//lib/rubocop/cop/base.rb#457
3159
+ # source://rubocop//lib/rubocop/cop/base.rb#484
3134
3160
  def file_name_matches_any?(file, parameter, default_result); end
3135
3161
 
3136
- # source://rubocop//lib/rubocop/cop/base.rb#447
3162
+ # source://rubocop//lib/rubocop/cop/base.rb#474
3137
3163
  def find_message(range, message); end
3138
3164
 
3139
- # source://rubocop//lib/rubocop/cop/base.rb#471
3165
+ # source://rubocop//lib/rubocop/cop/base.rb#498
3140
3166
  def find_severity(_range, severity); end
3141
3167
 
3142
- # source://rubocop//lib/rubocop/cop/base.rb#492
3168
+ # source://rubocop//lib/rubocop/cop/base.rb#519
3143
3169
  def range_for_original(range); end
3144
3170
 
3145
- # source://rubocop//lib/rubocop/cop/base.rb#436
3171
+ # source://rubocop//lib/rubocop/cop/base.rb#463
3146
3172
  def range_from_node_or_range(node_or_range); end
3147
3173
 
3148
- # source://rubocop//lib/rubocop/cop/base.rb#384
3174
+ # source://rubocop//lib/rubocop/cop/base.rb#411
3149
3175
  def reset_investigation; end
3150
3176
 
3177
+ # @return [Boolean]
3178
+ #
3179
+ # source://rubocop//lib/rubocop/cop/base.rb#527
3180
+ def target_satisfies_all_gem_version_requirements?; end
3181
+
3151
3182
  # @return [Symbol] offense status
3152
3183
  #
3153
- # source://rubocop//lib/rubocop/cop/base.rb#404
3184
+ # source://rubocop//lib/rubocop/cop/base.rb#431
3154
3185
  def use_corrector(range, corrector); end
3155
3186
 
3156
3187
  class << self
@@ -3165,18 +3196,18 @@ class RuboCop::Cop::Base
3165
3196
 
3166
3197
  # Naming
3167
3198
  #
3168
- # source://rubocop//lib/rubocop/cop/base.rb#89
3199
+ # source://rubocop//lib/rubocop/cop/base.rb#90
3169
3200
  def badge; end
3170
3201
 
3171
3202
  # @api private
3172
3203
  #
3173
- # source://rubocop//lib/rubocop/cop/base.rb#289
3204
+ # source://rubocop//lib/rubocop/cop/base.rb#316
3174
3205
  def callbacks_needed; end
3175
3206
 
3176
- # source://rubocop//lib/rubocop/cop/base.rb#93
3207
+ # source://rubocop//lib/rubocop/cop/base.rb#94
3177
3208
  def cop_name; end
3178
3209
 
3179
- # source://rubocop//lib/rubocop/cop/base.rb#97
3210
+ # source://rubocop//lib/rubocop/cop/base.rb#98
3180
3211
  def department; end
3181
3212
 
3182
3213
  # Cops (other than builtin) are encouraged to implement this
@@ -3189,9 +3220,14 @@ class RuboCop::Cop::Base
3189
3220
 
3190
3221
  # Call for abstract Cop classes
3191
3222
  #
3192
- # source://rubocop//lib/rubocop/cop/base.rb#77
3223
+ # source://rubocop//lib/rubocop/cop/base.rb#78
3193
3224
  def exclude_from_registry; end
3194
3225
 
3226
+ # Returns the value of attribute gem_requirements.
3227
+ #
3228
+ # source://rubocop//lib/rubocop/cop/base.rb#135
3229
+ def gem_requirements; end
3230
+
3195
3231
  # @private
3196
3232
  #
3197
3233
  # source://rubocop//lib/rubocop/cop/base.rb#71
@@ -3199,12 +3235,12 @@ class RuboCop::Cop::Base
3199
3235
 
3200
3236
  # Override and return the Force class(es) you need to join
3201
3237
  #
3202
- # source://rubocop//lib/rubocop/cop/base.rb#114
3238
+ # source://rubocop//lib/rubocop/cop/base.rb#115
3203
3239
  def joining_forces; end
3204
3240
 
3205
3241
  # @return [Boolean]
3206
3242
  #
3207
- # source://rubocop//lib/rubocop/cop/base.rb#101
3243
+ # source://rubocop//lib/rubocop/cop/base.rb#102
3208
3244
  def lint?; end
3209
3245
 
3210
3246
  # Returns true if the cop name or the cop namespace matches any of the
@@ -3212,15 +3248,30 @@ class RuboCop::Cop::Base
3212
3248
  #
3213
3249
  # @return [Boolean]
3214
3250
  #
3215
- # source://rubocop//lib/rubocop/cop/base.rb#107
3251
+ # source://rubocop//lib/rubocop/cop/base.rb#108
3216
3252
  def match?(given_names); end
3217
3253
 
3254
+ # Register a version requirement for the given gem name.
3255
+ # This cop will be skipped unless the target satisfies *all* requirements.
3256
+ #
3257
+ # @api public
3258
+ # @param gem_name [String]
3259
+ # @param version_requirements [Array<String>] The version requirements,
3260
+ # using the same syntax as a Gemfile, e.g. ">= 1.2.3"
3261
+ #
3262
+ # If omitted, any version of the gem will be accepted.
3263
+ #
3264
+ # https://guides.rubygems.org/patterns/#declaring-dependencies
3265
+ #
3266
+ # source://rubocop//lib/rubocop/cop/base.rb#148
3267
+ def requires_gem(gem_name, *version_requirements); end
3268
+
3218
3269
  # Returns if class supports autocorrect.
3219
3270
  # It is recommended to extend AutoCorrector instead of overriding
3220
3271
  #
3221
3272
  # @return [Boolean]
3222
3273
  #
3223
- # source://rubocop//lib/rubocop/cop/base.rb#83
3274
+ # source://rubocop//lib/rubocop/cop/base.rb#84
3224
3275
  def support_autocorrect?; end
3225
3276
 
3226
3277
  # Override if your cop should be called repeatedly for multiple investigations
@@ -3233,22 +3284,22 @@ class RuboCop::Cop::Base
3233
3284
  #
3234
3285
  # @return [Boolean]
3235
3286
  #
3236
- # source://rubocop//lib/rubocop/cop/base.rb#125
3287
+ # source://rubocop//lib/rubocop/cop/base.rb#126
3237
3288
  def support_multiple_source?; end
3238
3289
 
3239
3290
  private
3240
3291
 
3241
3292
  # @return [Boolean]
3242
3293
  #
3243
- # source://rubocop//lib/rubocop/cop/base.rb#375
3294
+ # source://rubocop//lib/rubocop/cop/base.rb#402
3244
3295
  def builtin?; end
3245
3296
 
3246
- # source://rubocop//lib/rubocop/cop/base.rb#357
3297
+ # source://rubocop//lib/rubocop/cop/base.rb#384
3247
3298
  def restrict_on_send; end
3248
3299
  end
3249
3300
  end
3250
3301
 
3251
- # source://rubocop//lib/rubocop/cop/base.rb#361
3302
+ # source://rubocop//lib/rubocop/cop/base.rb#388
3252
3303
  RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array)
3253
3304
 
3254
3305
  # Reports of an investigation.
@@ -4137,6 +4188,9 @@ module RuboCop::Cop::CodeLength
4137
4188
  # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#45
4138
4189
  def irrelevant_line(source_line); end
4139
4190
 
4191
+ # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#58
4192
+ def location(node); end
4193
+
4140
4194
  # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#19
4141
4195
  def max_length; end
4142
4196
 
@@ -5042,7 +5096,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter
5042
5096
 
5043
5097
  # Legacy
5044
5098
  #
5045
- # source://parser/3.3.0.5/lib/parser/source/tree_rewriter.rb#252
5099
+ # source://parser/3.3.1.0/lib/parser/source/tree_rewriter.rb#252
5046
5100
  def rewrite; end
5047
5101
 
5048
5102
  # Swaps sources at the given ranges.
@@ -10661,43 +10715,43 @@ class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base
10661
10715
  # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#94
10662
10716
  def on_array(node); end
10663
10717
 
10664
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#98
10718
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#100
10665
10719
  def on_csend(node); end
10666
10720
 
10667
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#98
10721
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#100
10668
10722
  def on_send(node); end
10669
10723
 
10670
10724
  private
10671
10725
 
10672
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#189
10726
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#191
10673
10727
  def array_alignment_config; end
10674
10728
 
10675
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#109
10729
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#111
10676
10730
  def autocorrect(corrector, node); end
10677
10731
 
10678
10732
  # Returns the description of what the correct indentation is based on.
10679
10733
  #
10680
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#147
10734
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#149
10681
10735
  def base_description(indent_base_type); end
10682
10736
 
10683
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#113
10737
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#115
10684
10738
  def brace_alignment_style; end
10685
10739
 
10686
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#117
10740
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#119
10687
10741
  def check(array_node, left_parenthesis); end
10688
10742
 
10689
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#131
10743
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#133
10690
10744
  def check_right_bracket(right_bracket, first_elem, left_bracket, left_parenthesis); end
10691
10745
 
10692
10746
  # @return [Boolean]
10693
10747
  #
10694
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#183
10748
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#185
10695
10749
  def enforce_first_argument_with_fixed_indentation?; end
10696
10750
 
10697
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#160
10751
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#162
10698
10752
  def message(base_description); end
10699
10753
 
10700
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#168
10754
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#170
10701
10755
  def message_for_right_bracket(indent_base_type); end
10702
10756
  end
10703
10757
 
@@ -16926,7 +16980,7 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
16926
16980
  include ::RuboCop::Cop::SafeAssignment
16927
16981
  extend ::RuboCop::Cop::AutoCorrector
16928
16982
 
16929
- # source://standard/1.35.1/lib/standard/rubocop/ext.rb#4
16983
+ # source://standard/1.36.0/lib/standard/rubocop/ext.rb#4
16930
16984
  def message(_); end
16931
16985
 
16932
16986
  # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55
@@ -17370,6 +17424,11 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String)
17370
17424
  # MyDebugger.debug_this
17371
17425
  # ----
17372
17426
  #
17427
+ # Some gems also ship files that will start a debugging session when required,
17428
+ # for example `require 'debug/start'` from `ruby/debug`. These requires can
17429
+ # be configured through `DebuggerRequires`. It has the same structure as
17430
+ # `DebuggerMethods`, which you can read about above.
17431
+ #
17373
17432
  # @example
17374
17433
  #
17375
17434
  # # bad (ok during development)
@@ -17402,43 +17461,56 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String)
17402
17461
  # def some_method
17403
17462
  # my_debugger
17404
17463
  # end
17464
+ # @example DebuggerRequires: [my_debugger/start]
17405
17465
  #
17406
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#67
17466
+ # # bad (ok during development)
17467
+ #
17468
+ # require 'my_debugger/start'
17469
+ #
17470
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#78
17407
17471
  class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base
17408
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#71
17472
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#82
17409
17473
  def on_send(node); end
17410
17474
 
17411
17475
  private
17412
17476
 
17413
17477
  # @return [Boolean]
17414
17478
  #
17415
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#117
17479
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#142
17416
17480
  def assumed_argument?(node); end
17417
17481
 
17418
17482
  # @return [Boolean]
17419
17483
  #
17420
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#96
17484
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#121
17421
17485
  def assumed_usage_context?(node); end
17422
17486
 
17423
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#106
17487
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#131
17424
17488
  def chained_method_name(send_node); end
17425
17489
 
17426
17490
  # @return [Boolean]
17427
17491
  #
17428
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#90
17492
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#108
17429
17493
  def debugger_method?(send_node); end
17430
17494
 
17431
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#83
17495
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#94
17432
17496
  def debugger_methods; end
17433
17497
 
17434
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#79
17498
+ # @return [Boolean]
17499
+ #
17500
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#114
17501
+ def debugger_require?(send_node); end
17502
+
17503
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#101
17504
+ def debugger_requires; end
17505
+
17506
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#90
17435
17507
  def message(node); end
17436
17508
  end
17437
17509
 
17438
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#69
17510
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#80
17439
17511
  RuboCop::Cop::Lint::Debugger::BLOCK_TYPES = T.let(T.unsafe(nil), Array)
17440
17512
 
17441
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#68
17513
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#79
17442
17514
  RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String)
17443
17515
 
17444
17516
  # Checks for uses of the deprecated class method usages.
@@ -20453,7 +20525,7 @@ class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base
20453
20525
  include ::RuboCop::Cop::RangeHelp
20454
20526
  extend ::RuboCop::Cop::AutoCorrector
20455
20527
 
20456
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#56
20528
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#58
20457
20529
  def each_unsafe_regexp_range(node); end
20458
20530
 
20459
20531
  # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37
@@ -20467,31 +20539,31 @@ class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base
20467
20539
 
20468
20540
  private
20469
20541
 
20470
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#72
20542
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#74
20471
20543
  def build_source_range(range_start, range_end); end
20472
20544
 
20473
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#76
20545
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#78
20474
20546
  def range_for(char); end
20475
20547
 
20476
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#82
20548
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#84
20477
20549
  def range_pairs(expr); end
20478
20550
 
20479
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#102
20480
- def rewrite_regexp_range(source); end
20551
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#104
20552
+ def regexp_range(source); end
20481
20553
 
20482
20554
  # @return [Boolean]
20483
20555
  #
20484
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#92
20556
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#94
20485
20557
  def skip_expression?(expr); end
20486
20558
 
20487
20559
  # @return [Boolean]
20488
20560
  #
20489
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#96
20561
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#98
20490
20562
  def skip_range?(range_start, range_end); end
20491
20563
 
20492
20564
  # @return [Boolean]
20493
20565
  #
20494
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#86
20566
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#88
20495
20567
  def unsafe_range?(range_start, range_end); end
20496
20568
  end
20497
20569
 
@@ -22468,21 +22540,21 @@ class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base
22468
22540
  include ::RuboCop::Cop::RangeHelp
22469
22541
  extend ::RuboCop::Cop::AutoCorrector
22470
22542
 
22471
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36
22543
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37
22472
22544
  def on_block(node); end
22473
22545
 
22474
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36
22546
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37
22475
22547
  def on_numblock(node); end
22476
22548
 
22477
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#57
22549
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#60
22478
22550
  def redundant_with_index?(param0 = T.unsafe(nil)); end
22479
22551
 
22480
22552
  private
22481
22553
 
22482
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#67
22554
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#70
22483
22555
  def message(node); end
22484
22556
 
22485
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#75
22557
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#78
22486
22558
  def with_index_range(send); end
22487
22559
  end
22488
22560
 
@@ -24501,7 +24573,7 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base
24501
24573
 
24502
24574
  # @return [Boolean]
24503
24575
  #
24504
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#194
24576
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#200
24505
24577
  def conditional_continue_keyword?(break_statement); end
24506
24578
 
24507
24579
  # @return [Boolean]
@@ -24511,7 +24583,7 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base
24511
24583
 
24512
24584
  # @return [Boolean]
24513
24585
  #
24514
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#184
24586
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#190
24515
24587
  def preceded_by_continue_statement?(break_statement); end
24516
24588
 
24517
24589
  # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#130
@@ -25874,6 +25946,11 @@ module RuboCop::Cop::MethodComplexity
25874
25946
  #
25875
25947
  # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#61
25876
25948
  def complexity(body); end
25949
+
25950
+ # @api private
25951
+ #
25952
+ # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#73
25953
+ def location(node); end
25877
25954
  end
25878
25955
 
25879
25956
  # Common code for cops that deal with preferred methods.
@@ -27492,43 +27569,66 @@ class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base
27492
27569
  extend ::RuboCop::Cop::AutoCorrector
27493
27570
  extend ::RuboCop::Cop::TargetRubyVersion
27494
27571
 
27495
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#55
27572
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54
27496
27573
  def on_def(node); end
27497
27574
 
27498
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#55
27575
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54
27499
27576
  def on_defs(node); end
27500
27577
 
27501
27578
  private
27502
27579
 
27503
27580
  # @return [Boolean]
27504
27581
  #
27505
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#95
27582
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#114
27506
27583
  def anonymous_block_argument?(node); end
27507
27584
 
27508
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#127
27585
+ # @return [Boolean]
27586
+ #
27587
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#87
27588
+ def block_argument_name_matched?(block_pass_node, last_argument); end
27589
+
27590
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#146
27509
27591
  def block_forwarding_name; end
27510
27592
 
27511
27593
  # @return [Boolean]
27512
27594
  #
27513
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#81
27595
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#77
27514
27596
  def expected_block_forwarding_style?(node, last_argument); end
27515
27597
 
27516
27598
  # @return [Boolean]
27517
27599
  #
27518
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#99
27600
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#118
27519
27601
  def explicit_block_argument?(node); end
27520
27602
 
27521
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#103
27603
+ # Prevents the following syntax error:
27604
+ #
27605
+ # # foo.rb
27606
+ # def foo(&)
27607
+ # block_method do
27608
+ # bar(&)
27609
+ # end
27610
+ # end
27611
+ #
27612
+ # $ ruby -vc foo.rb
27613
+ # ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-darwin22]
27614
+ # foo.rb: foo.rb:4: anonymous block parameter is also used within block (SyntaxError)
27615
+ #
27616
+ # @return [Boolean]
27617
+ #
27618
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#106
27619
+ def invalidates_syntax?(block_pass_node); end
27620
+
27621
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#122
27522
27622
  def register_offense(block_argument, node); end
27523
27623
 
27524
27624
  # @return [Boolean]
27525
27625
  #
27526
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#119
27626
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#138
27527
27627
  def use_block_argument_as_local_variable?(node, last_argument); end
27528
27628
 
27529
27629
  # @return [Boolean]
27530
27630
  #
27531
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#91
27631
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#110
27532
27632
  def use_kwarg_in_method_definition?(node); end
27533
27633
 
27534
27634
  class << self
@@ -27754,8 +27854,6 @@ class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Base
27754
27854
  # source://rubocop//lib/rubocop/cop/naming/file_name.rb#165
27755
27855
  def find_definition(node); end
27756
27856
 
27757
- # @yield [source_range(processed_source.buffer, 1, 0), msg]
27758
- #
27759
27857
  # source://rubocop//lib/rubocop/cop/naming/file_name.rb#65
27760
27858
  def for_bad_filename(file_path); end
27761
27859
 
@@ -28007,13 +28105,13 @@ class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
28007
28105
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#126
28008
28106
  def check_token?(type); end
28009
28107
 
28010
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#244
28108
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#243
28011
28109
  def create_message(word, message = T.unsafe(nil)); end
28012
28110
 
28013
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#218
28111
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#217
28014
28112
  def create_multiple_word_message_for_file(words); end
28015
28113
 
28016
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#214
28114
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#213
28017
28115
  def create_single_word_message_for_file(word); end
28018
28116
 
28019
28117
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#189
@@ -28022,10 +28120,10 @@ class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
28022
28120
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#160
28023
28121
  def extract_regexp(term, term_definition); end
28024
28122
 
28025
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#252
28123
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#251
28026
28124
  def find_flagged_term(word); end
28027
28125
 
28028
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#266
28126
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#265
28029
28127
  def format_suggestions(suggestions); end
28030
28128
 
28031
28129
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#197
@@ -28034,10 +28132,10 @@ class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
28034
28132
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#100
28035
28133
  def investigate_tokens; end
28036
28134
 
28037
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#232
28135
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#231
28038
28136
  def mask_input(str); end
28039
28137
 
28040
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#281
28138
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#280
28041
28139
  def offense_range(token, word); end
28042
28140
 
28043
28141
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#130
@@ -28046,13 +28144,13 @@ class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
28046
28144
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#144
28047
28145
  def preprocess_flagged_terms; end
28048
28146
 
28049
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#259
28147
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#258
28050
28148
  def preprocess_suggestions(suggestions); end
28051
28149
 
28052
28150
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#179
28053
28151
  def process_allowed_regex(allowed); end
28054
28152
 
28055
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#222
28153
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#221
28056
28154
  def scan_for_words(input); end
28057
28155
 
28058
28156
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#174
@@ -30799,7 +30897,7 @@ class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Base
30799
30897
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
30800
30898
  extend ::RuboCop::Cop::AutoCorrector
30801
30899
 
30802
- # source://rubocop//lib/rubocop/cop/style/alias.rb#51
30900
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#52
30803
30901
  def on_alias(node); end
30804
30902
 
30805
30903
  # source://rubocop//lib/rubocop/cop/style/alias.rb#41
@@ -30807,47 +30905,47 @@ class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Base
30807
30905
 
30808
30906
  private
30809
30907
 
30810
- # source://rubocop//lib/rubocop/cop/style/alias.rb#85
30908
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#86
30811
30909
  def add_offense_for_args(node, &block); end
30812
30910
 
30813
30911
  # @return [Boolean]
30814
30912
  #
30815
- # source://rubocop//lib/rubocop/cop/style/alias.rb#75
30913
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#76
30816
30914
  def alias_keyword_possible?(node); end
30817
30915
 
30818
30916
  # @return [Boolean]
30819
30917
  #
30820
- # source://rubocop//lib/rubocop/cop/style/alias.rb#79
30918
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#80
30821
30919
  def alias_method_possible?(node); end
30822
30920
 
30823
- # source://rubocop//lib/rubocop/cop/style/alias.rb#65
30921
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#66
30824
30922
  def autocorrect(corrector, node); end
30825
30923
 
30826
30924
  # @return [Boolean]
30827
30925
  #
30828
- # source://rubocop//lib/rubocop/cop/style/alias.rb#124
30926
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#125
30829
30927
  def bareword?(sym_node); end
30830
30928
 
30831
- # source://rubocop//lib/rubocop/cop/style/alias.rb#128
30929
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#129
30832
30930
  def correct_alias_method_to_alias(corrector, send_node); end
30833
30931
 
30834
- # source://rubocop//lib/rubocop/cop/style/alias.rb#135
30932
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#136
30835
30933
  def correct_alias_to_alias_method(corrector, node); end
30836
30934
 
30837
- # source://rubocop//lib/rubocop/cop/style/alias.rb#142
30935
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#143
30838
30936
  def correct_alias_with_symbol_args(corrector, node); end
30839
30937
 
30840
- # source://rubocop//lib/rubocop/cop/style/alias.rb#147
30938
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#148
30841
30939
  def identifier(node); end
30842
30940
 
30843
- # source://rubocop//lib/rubocop/cop/style/alias.rb#113
30941
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#114
30844
30942
  def lexical_scope_type(node); end
30845
30943
 
30846
30944
  # In this expression, will `self` be the same as the innermost enclosing
30847
30945
  # class or module block (:lexical)? Or will it be something else
30848
30946
  # (:dynamic)? If we're in an instance_eval block, return that.
30849
30947
  #
30850
- # source://rubocop//lib/rubocop/cop/style/alias.rb#96
30948
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#97
30851
30949
  def scope_type(node); end
30852
30950
  end
30853
30951
 
@@ -31096,7 +31194,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
31096
31194
  # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#185
31097
31195
  def add_forward_all_offenses(node, send_classifications, forwardable_args); end
31098
31196
 
31099
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#350
31197
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#351
31100
31198
  def add_parens_if_missing(node, corrector); end
31101
31199
 
31102
31200
  # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#212
@@ -31104,10 +31202,10 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
31104
31202
 
31105
31203
  # @return [Boolean]
31106
31204
  #
31107
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#342
31205
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#343
31108
31206
  def allow_only_rest_arguments?; end
31109
31207
 
31110
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#334
31208
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#335
31111
31209
  def arguments_range(node, first_node); end
31112
31210
 
31113
31211
  # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#263
@@ -31118,7 +31216,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
31118
31216
 
31119
31217
  # @return [Boolean]
31120
31218
  #
31121
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#494
31219
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#495
31122
31220
  def explicit_block_name?; end
31123
31221
 
31124
31222
  # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#168
@@ -31143,7 +31241,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
31143
31241
  # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#282
31144
31242
  def redundant_named_arg(arg, config_name, keyword); end
31145
31243
 
31146
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#324
31244
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#325
31147
31245
  def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end
31148
31246
 
31149
31247
  # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#298
@@ -31157,7 +31255,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
31157
31255
 
31158
31256
  # @return [Boolean]
31159
31257
  #
31160
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#346
31258
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#347
31161
31259
  def use_anonymous_forwarding?; end
31162
31260
 
31163
31261
  class << self
@@ -31186,115 +31284,115 @@ RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), Stri
31186
31284
 
31187
31285
  # Classifies send nodes for possible rest/kwrest/all (including block) forwarding.
31188
31286
  #
31189
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#357
31287
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#358
31190
31288
  class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier
31191
31289
  extend ::RuboCop::AST::NodePattern::Macros
31192
31290
 
31193
31291
  # @return [SendNodeClassifier] a new instance of SendNodeClassifier
31194
31292
  #
31195
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#369
31293
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#370
31196
31294
  def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end
31197
31295
 
31198
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#397
31296
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#398
31199
31297
  def classification; end
31200
31298
 
31201
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#364
31299
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#365
31202
31300
  def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end
31203
31301
 
31204
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#391
31302
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#392
31205
31303
  def forwarded_block_arg; end
31206
31304
 
31207
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367
31305
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#368
31208
31306
  def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end
31209
31307
 
31210
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#385
31308
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#386
31211
31309
  def forwarded_kwrest_arg; end
31212
31310
 
31213
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#379
31311
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#380
31214
31312
  def forwarded_rest_arg; end
31215
31313
 
31216
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#361
31314
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#362
31217
31315
  def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end
31218
31316
 
31219
31317
  private
31220
31318
 
31221
31319
  # @return [Boolean]
31222
31320
  #
31223
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#465
31321
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#466
31224
31322
  def additional_kwargs?; end
31225
31323
 
31226
31324
  # @return [Boolean]
31227
31325
  #
31228
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#461
31326
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#462
31229
31327
  def additional_kwargs_or_forwarded_kwargs?; end
31230
31328
 
31231
31329
  # @return [Boolean]
31232
31330
  #
31233
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#475
31331
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#476
31234
31332
  def allow_offense_for_no_block?; end
31235
31333
 
31236
31334
  # @return [Boolean]
31237
31335
  #
31238
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#446
31336
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#447
31239
31337
  def any_arg_referenced?; end
31240
31338
 
31241
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#430
31339
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#431
31242
31340
  def arguments; end
31243
31341
 
31244
31342
  # @return [Boolean]
31245
31343
  #
31246
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#409
31344
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#410
31247
31345
  def can_forward_all?; end
31248
31346
 
31249
31347
  # @return [Boolean]
31250
31348
  #
31251
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#469
31349
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#470
31252
31350
  def forward_additional_kwargs?; end
31253
31351
 
31254
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#426
31352
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#427
31255
31353
  def forwarded_rest_and_kwrest_args; end
31256
31354
 
31257
31355
  # @return [Boolean]
31258
31356
  #
31259
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#488
31357
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#489
31260
31358
  def missing_rest_arg_or_kwrest_arg?; end
31261
31359
 
31262
31360
  # @return [Boolean]
31263
31361
  #
31264
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#479
31362
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#480
31265
31363
  def no_additional_args?; end
31266
31364
 
31267
31365
  # @return [Boolean]
31268
31366
  #
31269
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#454
31367
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#455
31270
31368
  def no_post_splat_args?; end
31271
31369
 
31272
31370
  # @return [Boolean]
31273
31371
  #
31274
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#422
31372
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#423
31275
31373
  def offensive_block_forwarding?; end
31276
31374
 
31277
31375
  # @return [Boolean]
31278
31376
  #
31279
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#442
31377
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#443
31280
31378
  def referenced_block_arg?; end
31281
31379
 
31282
31380
  # @return [Boolean]
31283
31381
  #
31284
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#438
31382
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#439
31285
31383
  def referenced_kwrest_arg?; end
31286
31384
 
31287
31385
  # @return [Boolean]
31288
31386
  #
31289
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#434
31387
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#435
31290
31388
  def referenced_rest_arg?; end
31291
31389
 
31292
31390
  # @return [Boolean]
31293
31391
  #
31294
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#418
31392
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#419
31295
31393
  def ruby_32_missing_rest_or_kwest?; end
31296
31394
 
31297
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#450
31395
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#451
31298
31396
  def target_ruby_version; end
31299
31397
  end
31300
31398
 
@@ -32892,9 +32990,7 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
32892
32990
  # @example
32893
32991
  # # bad
32894
32992
  # array.reject(&:nil?)
32895
- # array.delete_if(&:nil?)
32896
32993
  # array.reject { |e| e.nil? }
32897
- # array.delete_if { |e| e.nil? }
32898
32994
  # array.select { |e| !e.nil? }
32899
32995
  # array.grep_v(nil)
32900
32996
  # array.grep_v(NilClass)
@@ -32904,7 +33000,9 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
32904
33000
  #
32905
33001
  # # bad
32906
33002
  # hash.reject!(&:nil?)
33003
+ # array.delete_if(&:nil?)
32907
33004
  # hash.reject! { |k, v| v.nil? }
33005
+ # array.delete_if { |e| e.nil? }
32908
33006
  # hash.select! { |k, v| !v.nil? }
32909
33007
  #
32910
33008
  # # good
@@ -34062,36 +34160,36 @@ class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base
34062
34160
 
34063
34161
  private
34064
34162
 
34065
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#47
34163
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#45
34164
+ def autocorrect(corrector); end
34165
+
34166
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#56
34066
34167
  def autocorrect_notice; end
34067
34168
 
34068
34169
  # @return [Boolean]
34069
34170
  #
34070
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#78
34171
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#83
34071
34172
  def encoding_token?(processed_source, token_index); end
34072
34173
 
34073
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#64
34174
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#69
34074
34175
  def insert_notice_before(processed_source); end
34075
34176
 
34076
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#43
34177
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#52
34077
34178
  def notice; end
34078
34179
 
34079
34180
  # @return [Boolean]
34080
34181
  #
34081
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#85
34182
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#90
34082
34183
  def notice_found?(processed_source); end
34083
34184
 
34084
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#51
34085
- def offense_range; end
34086
-
34087
34185
  # @return [Boolean]
34088
34186
  #
34089
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#71
34187
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#76
34090
34188
  def shebang_token?(processed_source, token_index); end
34091
34189
 
34092
34190
  # @raise [Warning]
34093
34191
  #
34094
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#55
34192
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#60
34095
34193
  def verify_autocorrect_notice!; end
34096
34194
  end
34097
34195
 
@@ -35814,19 +35912,19 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base
35814
35912
 
35815
35913
  private
35816
35914
 
35817
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#184
35915
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#186
35818
35916
  def add_offense_for_different_line(node, line_node, line_diff); end
35819
35917
 
35820
35918
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#131
35821
35919
  def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end
35822
35920
 
35823
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#199
35921
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#201
35824
35922
  def add_offense_for_missing_line(node, code); end
35825
35923
 
35826
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#206
35924
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#208
35827
35925
  def add_offense_for_missing_location(node, code); end
35828
35926
 
35829
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#178
35927
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#180
35830
35928
  def add_offense_for_same_line(node, line_node); end
35831
35929
 
35832
35930
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#143
@@ -35838,16 +35936,16 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base
35838
35936
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#95
35839
35937
  def check_location(node, code); end
35840
35938
 
35841
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#191
35939
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#193
35842
35940
  def expected_line(sign, line_diff); end
35843
35941
 
35844
35942
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#122
35845
35943
  def file_and_line(node); end
35846
35944
 
35847
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#166
35945
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#168
35848
35946
  def line_difference(line_node, code); end
35849
35947
 
35850
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#218
35948
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#220
35851
35949
  def missing_line(node, code); end
35852
35950
 
35853
35951
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#109
@@ -35863,7 +35961,7 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base
35863
35961
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#118
35864
35962
  def special_line_keyword?(node); end
35865
35963
 
35866
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#170
35964
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#172
35867
35965
  def string_first_line(str_node); end
35868
35966
 
35869
35967
  # @return [Boolean]
@@ -35958,10 +36056,10 @@ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base
35958
36056
 
35959
36057
  # @return [Boolean]
35960
36058
  #
35961
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#56
36059
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#57
35962
36060
  def exact_match_pattern?(parsed_regexp); end
35963
36061
 
35964
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#63
36062
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#64
35965
36063
  def new_method(node); end
35966
36064
  end
35967
36065
 
@@ -36723,25 +36821,25 @@ RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String)
36723
36821
  #
36724
36822
  # @example EnforcedStyle: format (default)
36725
36823
  # # bad
36726
- # puts sprintf('%10s', 'hoge')
36727
- # puts '%10s' % 'hoge'
36824
+ # puts sprintf('%10s', 'foo')
36825
+ # puts '%10s' % 'foo'
36728
36826
  #
36729
36827
  # # good
36730
- # puts format('%10s', 'hoge')
36828
+ # puts format('%10s', 'foo')
36731
36829
  # @example EnforcedStyle: sprintf
36732
36830
  # # bad
36733
- # puts format('%10s', 'hoge')
36734
- # puts '%10s' % 'hoge'
36831
+ # puts format('%10s', 'foo')
36832
+ # puts '%10s' % 'foo'
36735
36833
  #
36736
36834
  # # good
36737
- # puts sprintf('%10s', 'hoge')
36835
+ # puts sprintf('%10s', 'foo')
36738
36836
  # @example EnforcedStyle: percent
36739
36837
  # # bad
36740
- # puts format('%10s', 'hoge')
36741
- # puts sprintf('%10s', 'hoge')
36838
+ # puts format('%10s', 'foo')
36839
+ # puts sprintf('%10s', 'foo')
36742
36840
  #
36743
36841
  # # good
36744
- # puts '%10s' % 'hoge'
36842
+ # puts '%10s' % 'foo'
36745
36843
  #
36746
36844
  # source://rubocop//lib/rubocop/cop/style/format_string.rb#50
36747
36845
  class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Base
@@ -39687,6 +39785,109 @@ end
39687
39785
  # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#43
39688
39786
  RuboCop::Cop::Style::MapCompactWithConditionalBlock::MSG = T.let(T.unsafe(nil), String)
39689
39787
 
39788
+ # Checks for usages of `each` with `<<`, `push`, or `append` which
39789
+ # can be replaced by `map`.
39790
+ #
39791
+ # If `PreferredMethods` is configured for `map` in `Style/CollectionMethods`,
39792
+ # this cop uses the specified method for replacement.
39793
+ #
39794
+ # NOTE: The return value of `Enumerable#each` is `self`, whereas the
39795
+ # return value of `Enumerable#map` is an `Array`. They are not autocorrected
39796
+ # when a return value could be used because these types differ.
39797
+ #
39798
+ # NOTE: It only detects when the mapping destination is a local variable
39799
+ # initialized as an empty array and referred to only by the pushing operation.
39800
+ # This is because, if not, it's challenging to statically guarantee that the
39801
+ # mapping destination variable remains an empty array:
39802
+ #
39803
+ # [source,ruby]
39804
+ # ----
39805
+ # ret = []
39806
+ # src.each { |e| ret << e * 2 } # `<<` method may mutate `ret`
39807
+ #
39808
+ # dest = []
39809
+ # src.each { |e| dest << transform(e, dest) } # `transform` method may mutate `dest`
39810
+ # ----
39811
+ #
39812
+ # @example
39813
+ # # bad
39814
+ # dest = []
39815
+ # src.each { |e| dest << e * 2 }
39816
+ # dest
39817
+ #
39818
+ # # good
39819
+ # dest = src.map { |e| e * 2 }
39820
+ #
39821
+ # # good - contains another operation
39822
+ # dest = []
39823
+ # src.each { |e| dest << e * 2; puts e }
39824
+ # dest
39825
+ #
39826
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#50
39827
+ class RuboCop::Cop::Style::MapIntoArray < ::RuboCop::Cop::Base
39828
+ include ::RuboCop::Cop::RangeHelp
39829
+ extend ::RuboCop::Cop::AutoCorrector
39830
+
39831
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#75
39832
+ def after_leaving_scope(scope, _variable_table); end
39833
+
39834
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#57
39835
+ def each_block_with_push?(param0 = T.unsafe(nil)); end
39836
+
39837
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#66
39838
+ def empty_array_asgn?(param0 = T.unsafe(nil)); end
39839
+
39840
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#69
39841
+ def lvar_ref?(param0 = T.unsafe(nil), param1); end
39842
+
39843
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#79
39844
+ def on_block(node); end
39845
+
39846
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#79
39847
+ def on_numblock(node); end
39848
+
39849
+ private
39850
+
39851
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#155
39852
+ def correct_push_node(corrector, push_node); end
39853
+
39854
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#163
39855
+ def correct_return_value_handling(corrector, block, dest_var); end
39856
+
39857
+ # @return [Boolean]
39858
+ #
39859
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#108
39860
+ def dest_used_only_for_mapping?(block, dest_var, asgn); end
39861
+
39862
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#102
39863
+ def find_closest_assignment(block, dest_var); end
39864
+
39865
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#94
39866
+ def find_dest_var(block); end
39867
+
39868
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#127
39869
+ def new_method_name; end
39870
+
39871
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#116
39872
+ def register_offense(block, dest_var, asgn); end
39873
+
39874
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#148
39875
+ def remove_assignment(corrector, asgn); end
39876
+
39877
+ # @return [Boolean]
39878
+ #
39879
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#133
39880
+ def return_value_used?(node); end
39881
+
39882
+ class << self
39883
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#71
39884
+ def joining_forces; end
39885
+ end
39886
+ end
39887
+
39888
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#54
39889
+ RuboCop::Cop::Style::MapIntoArray::MSG = T.let(T.unsafe(nil), String)
39890
+
39690
39891
  # Looks for uses of `map.to_h` or `collect.to_h` that could be
39691
39892
  # written with just `to_h` in Ruby >= 2.6.
39692
39893
  #
@@ -42940,16 +43141,16 @@ class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base
42940
43141
  include ::RuboCop::Cop::AllowedPattern
42941
43142
  extend ::RuboCop::Cop::AutoCorrector
42942
43143
 
42943
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#166
43144
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#174
42944
43145
  def comparison(param0 = T.unsafe(nil)); end
42945
43146
 
42946
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#171
43147
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#179
42947
43148
  def inverted_comparison(param0 = T.unsafe(nil)); end
42948
43149
 
42949
43150
  # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#90
42950
43151
  def on_send(node); end
42951
43152
 
42952
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#161
43153
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#169
42953
43154
  def predicate(param0 = T.unsafe(nil)); end
42954
43155
 
42955
43156
  private
@@ -42962,23 +43163,28 @@ class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base
42962
43163
  # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#111
42963
43164
  def check(node); end
42964
43165
 
42965
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#152
43166
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#154
42966
43167
  def invert; end
42967
43168
 
42968
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#132
43169
+ # @return [Boolean]
43170
+ #
43171
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#162
43172
+ def negated?(node); end
43173
+
43174
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#134
42969
43175
  def parenthesized_source(node); end
42970
43176
 
42971
43177
  # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#124
42972
- def replacement(numeric, operation); end
43178
+ def replacement(node, numeric, operation); end
42973
43179
 
42974
43180
  # @return [Boolean]
42975
43181
  #
42976
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#144
43182
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#146
42977
43183
  def replacement_supported?(operator); end
42978
43184
 
42979
43185
  # @return [Boolean]
42980
43186
  #
42981
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#140
43187
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#142
42982
43188
  def require_parentheses?(node); end
42983
43189
  end
42984
43190
 
@@ -44297,10 +44503,20 @@ class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base
44297
44503
 
44298
44504
  private
44299
44505
 
44300
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#94
44506
+ # @return [Boolean]
44507
+ #
44508
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#108
44509
+ def argument_matched?(target_argument, redundant_argument); end
44510
+
44511
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#100
44301
44512
  def argument_range(node); end
44302
44513
 
44303
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#87
44514
+ # @return [Boolean]
44515
+ #
44516
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#120
44517
+ def exclude_cntrl_character?(target_argument, redundant_argument); end
44518
+
44519
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#93
44304
44520
  def redundant_arg_for_method(method_name); end
44305
44521
 
44306
44522
  # @return [Boolean]
@@ -44909,16 +45125,19 @@ class RuboCop::Cop::Style::RedundantCurrentDirectoryInPath < ::RuboCop::Cop::Bas
44909
45125
  include ::RuboCop::Cop::RangeHelp
44910
45126
  extend ::RuboCop::Cop::AutoCorrector
44911
45127
 
44912
- # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#23
45128
+ # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#24
44913
45129
  def on_send(node); end
44914
45130
  end
44915
45131
 
44916
- # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#21
45132
+ # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#22
44917
45133
  RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::CURRENT_DIRECTORY_PATH = T.let(T.unsafe(nil), String)
44918
45134
 
44919
45135
  # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#20
44920
45136
  RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::MSG = T.let(T.unsafe(nil), String)
44921
45137
 
45138
+ # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#21
45139
+ RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
45140
+
44922
45141
  # Checks for redundant uses of double splat hash braces.
44923
45142
  #
44924
45143
  # @example
@@ -45681,12 +45900,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45681
45900
 
45682
45901
  # @return [Boolean]
45683
45902
  #
45684
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#168
45685
- def allowed_type?(node); end
45686
-
45687
- # @return [Boolean]
45688
- #
45689
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#186
45903
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#182
45690
45904
  def argument_is_method?(node); end
45691
45905
 
45692
45906
  # @return [Boolean]
@@ -45704,7 +45918,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45704
45918
 
45705
45919
  # @return [Boolean]
45706
45920
  #
45707
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#133
45921
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#131
45708
45922
  def inside_string_literal?(range, token); end
45709
45923
 
45710
45924
  # @return [Boolean]
@@ -45719,7 +45933,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45719
45933
 
45720
45934
  # @return [Boolean]
45721
45935
  #
45722
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#193
45936
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#189
45723
45937
  def method_call_with_arguments?(node); end
45724
45938
 
45725
45939
  # A method call without parentheses such as the following cannot remove `\`:
@@ -45729,7 +45943,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45729
45943
  #
45730
45944
  # @return [Boolean]
45731
45945
  #
45732
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#141
45946
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#139
45733
45947
  def method_with_argument?(current_token, next_token); end
45734
45948
 
45735
45949
  # @return [Boolean]
@@ -45744,12 +45958,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45744
45958
 
45745
45959
  # @return [Boolean]
45746
45960
  #
45747
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#172
45961
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#168
45748
45962
  def same_line?(node, line); end
45749
45963
 
45750
45964
  # @return [Boolean]
45751
45965
  #
45752
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#197
45966
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#193
45753
45967
  def start_with_arithmetic_operator?(source_line); end
45754
45968
 
45755
45969
  # @return [Boolean]
@@ -48080,12 +48294,12 @@ RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String)
48080
48294
  #
48081
48295
  # @example
48082
48296
  # # bad
48083
- # Foo.send(:bar)
48084
- # quuz.send(:fred)
48297
+ # Foo.send(bar)
48298
+ # quuz.send(fred)
48085
48299
  #
48086
48300
  # # good
48087
- # Foo.__send__(:bar)
48088
- # quuz.public_send(:fred)
48301
+ # Foo.__send__(bar)
48302
+ # quuz.public_send(fred)
48089
48303
  #
48090
48304
  # source://rubocop//lib/rubocop/cop/style/send.rb#16
48091
48305
  class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Base
@@ -48711,13 +48925,30 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String)
48711
48925
  # will add a require statement to the top of the file if
48712
48926
  # enabled by RequireEnglish config.
48713
48927
  #
48714
- # Like `use_perl_names` but allows builtin global vars.
48715
- #
48928
+ # @example EnforcedStyle: use_english_names (default)
48716
48929
  # # good
48930
+ # require 'English' # or this could be in another file.
48931
+ #
48717
48932
  # puts $LOAD_PATH
48718
48933
  # puts $LOADED_FEATURES
48719
48934
  # puts $PROGRAM_NAME
48720
- # puts ARGV
48935
+ # puts $ERROR_INFO
48936
+ # puts $ERROR_POSITION
48937
+ # puts $FIELD_SEPARATOR # or $FS
48938
+ # puts $OUTPUT_FIELD_SEPARATOR # or $OFS
48939
+ # puts $INPUT_RECORD_SEPARATOR # or $RS
48940
+ # puts $OUTPUT_RECORD_SEPARATOR # or $ORS
48941
+ # puts $INPUT_LINE_NUMBER # or $NR
48942
+ # puts $LAST_READ_LINE
48943
+ # puts $DEFAULT_OUTPUT
48944
+ # puts $DEFAULT_INPUT
48945
+ # puts $PROCESS_ID # or $PID
48946
+ # puts $CHILD_STATUS
48947
+ # puts $LAST_MATCH_INFO
48948
+ # puts $IGNORECASE
48949
+ # puts $ARGV # or ARGV
48950
+ # @example EnforcedStyle: use_perl_names
48951
+ # # good
48721
48952
  # puts $:
48722
48953
  # puts $"
48723
48954
  # puts $0
@@ -48736,31 +48967,14 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String)
48736
48967
  # puts $~
48737
48968
  # puts $=
48738
48969
  # puts $*
48970
+ # @example EnforcedStyle: use_builtin_english_names
48739
48971
  #
48740
- # @example EnforcedStyle: use_english_names (default)
48741
48972
  # # good
48742
- # require 'English' # or this could be in another file.
48743
- #
48973
+ # # Like `use_perl_names` but allows builtin global vars.
48744
48974
  # puts $LOAD_PATH
48745
48975
  # puts $LOADED_FEATURES
48746
48976
  # puts $PROGRAM_NAME
48747
- # puts $ERROR_INFO
48748
- # puts $ERROR_POSITION
48749
- # puts $FIELD_SEPARATOR # or $FS
48750
- # puts $OUTPUT_FIELD_SEPARATOR # or $OFS
48751
- # puts $INPUT_RECORD_SEPARATOR # or $RS
48752
- # puts $OUTPUT_RECORD_SEPARATOR # or $ORS
48753
- # puts $INPUT_LINE_NUMBER # or $NR
48754
- # puts $LAST_READ_LINE
48755
- # puts $DEFAULT_OUTPUT
48756
- # puts $DEFAULT_INPUT
48757
- # puts $PROCESS_ID # or $PID
48758
- # puts $CHILD_STATUS
48759
- # puts $LAST_MATCH_INFO
48760
- # puts $IGNORECASE
48761
- # puts $ARGV # or ARGV
48762
- # @example EnforcedStyle: use_perl_names
48763
- # # good
48977
+ # puts ARGV
48764
48978
  # puts $:
48765
48979
  # puts $"
48766
48980
  # puts $0
@@ -48779,90 +48993,89 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String)
48779
48993
  # puts $~
48780
48994
  # puts $=
48781
48995
  # puts $*
48782
- # @example EnforcedStyle: use_builtin_english_names
48783
48996
  #
48784
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#87
48997
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#86
48785
48998
  class RuboCop::Cop::Style::SpecialGlobalVars < ::RuboCop::Cop::Base
48786
48999
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
48787
49000
  include ::RuboCop::Cop::RangeHelp
48788
49001
  include ::RuboCop::Cop::RequireLibrary
48789
49002
  extend ::RuboCop::Cop::AutoCorrector
48790
49003
 
48791
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#176
49004
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#175
48792
49005
  def autocorrect(corrector, node, global_var); end
48793
49006
 
48794
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#168
49007
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#167
48795
49008
  def message(global_var); end
48796
49009
 
48797
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#152
49010
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#151
48798
49011
  def on_gvar(node); end
48799
49012
 
48800
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#147
49013
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#146
48801
49014
  def on_new_investigation; end
48802
49015
 
48803
49016
  private
48804
49017
 
48805
49018
  # @return [Boolean]
48806
49019
  #
48807
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#247
49020
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#246
48808
49021
  def add_require_english?; end
48809
49022
 
48810
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#241
49023
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#240
48811
49024
  def english_name_replacement(preferred_name, node); end
48812
49025
 
48813
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#190
49026
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#189
48814
49027
  def format_english_message(global_var); end
48815
49028
 
48816
49029
  # For now, we assume that lists are 2 items or less. Easy grammar!
48817
49030
  #
48818
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#212
49031
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#211
48819
49032
  def format_list(items); end
48820
49033
 
48821
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#198
49034
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#197
48822
49035
  def format_message(english, regular, global); end
48823
49036
 
48824
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#235
49037
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#234
48825
49038
  def matching_styles(global); end
48826
49039
 
48827
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#227
49040
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#226
48828
49041
  def preferred_names(global); end
48829
49042
 
48830
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#216
49043
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#215
48831
49044
  def replacement(node, global_var); end
48832
49045
 
48833
49046
  # @return [Boolean]
48834
49047
  #
48835
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#251
49048
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#250
48836
49049
  def should_require_english?(global_var); end
48837
49050
  end
48838
49051
 
48839
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#128
49052
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#127
48840
49053
  RuboCop::Cop::Style::SpecialGlobalVars::BUILTIN_VARS = T.let(T.unsafe(nil), Hash)
48841
49054
 
48842
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#100
49055
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#99
48843
49056
  RuboCop::Cop::Style::SpecialGlobalVars::ENGLISH_VARS = T.let(T.unsafe(nil), Hash)
48844
49057
 
48845
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#145
49058
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#144
48846
49059
  RuboCop::Cop::Style::SpecialGlobalVars::LIBRARY_NAME = T.let(T.unsafe(nil), String)
48847
49060
 
48848
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#93
49061
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#92
48849
49062
  RuboCop::Cop::Style::SpecialGlobalVars::MSG_BOTH = T.let(T.unsafe(nil), String)
48850
49063
 
48851
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#96
49064
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#95
48852
49065
  RuboCop::Cop::Style::SpecialGlobalVars::MSG_ENGLISH = T.let(T.unsafe(nil), String)
48853
49066
 
48854
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#98
49067
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#97
48855
49068
  RuboCop::Cop::Style::SpecialGlobalVars::MSG_REGULAR = T.let(T.unsafe(nil), String)
48856
49069
 
48857
49070
  # Anything *not* in this set is provided by the English library.
48858
49071
  #
48859
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#122
49072
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#121
48860
49073
  RuboCop::Cop::Style::SpecialGlobalVars::NON_ENGLISH_VARS = T.let(T.unsafe(nil), Set)
48861
49074
 
48862
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#124
49075
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#123
48863
49076
  RuboCop::Cop::Style::SpecialGlobalVars::PERL_VARS = T.let(T.unsafe(nil), Hash)
48864
49077
 
48865
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#139
49078
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#138
48866
49079
  RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Hash)
48867
49080
 
48868
49081
  # Check for parentheses around stabby lambda arguments.
@@ -51794,22 +52007,22 @@ class RuboCop::Cop::Team
51794
52007
  # source://rubocop//lib/rubocop/cop/team.rb#121
51795
52008
  def autocorrect(processed_source, report, original:, offset:); end
51796
52009
 
51797
- # source://rubocop//lib/rubocop/cop/team.rb#182
52010
+ # source://rubocop//lib/rubocop/cop/team.rb#185
51798
52011
  def autocorrect_report(report, offset:, original:); end
51799
52012
 
51800
52013
  # source://rubocop//lib/rubocop/cop/team.rb#140
51801
52014
  def be_ready; end
51802
52015
 
51803
- # source://rubocop//lib/rubocop/cop/team.rb#188
52016
+ # source://rubocop//lib/rubocop/cop/team.rb#191
51804
52017
  def collate_corrections(report, offset:, original:); end
51805
52018
 
51806
- # source://rubocop//lib/rubocop/cop/team.rb#204
52019
+ # source://rubocop//lib/rubocop/cop/team.rb#207
51807
52020
  def each_corrector(report); end
51808
52021
 
51809
- # source://rubocop//lib/rubocop/cop/team.rb#254
52022
+ # source://rubocop//lib/rubocop/cop/team.rb#257
51810
52023
  def handle_error(error, location, cop); end
51811
52024
 
51812
- # source://rubocop//lib/rubocop/cop/team.rb#246
52025
+ # source://rubocop//lib/rubocop/cop/team.rb#249
51813
52026
  def handle_warning(error, location); end
51814
52027
 
51815
52028
  # @return [Commissioner::InvestigationReport]
@@ -51817,7 +52030,7 @@ class RuboCop::Cop::Team
51817
52030
  # source://rubocop//lib/rubocop/cop/team.rb#154
51818
52031
  def investigate_partial(cops, processed_source, offset:, original:); end
51819
52032
 
51820
- # source://rubocop//lib/rubocop/cop/team.rb#231
52033
+ # source://rubocop//lib/rubocop/cop/team.rb#234
51821
52034
  def process_errors(file, errors); end
51822
52035
 
51823
52036
  # source://rubocop//lib/rubocop/cop/team.rb#148
@@ -51838,10 +52051,10 @@ class RuboCop::Cop::Team
51838
52051
  # source://rubocop//lib/rubocop/cop/team.rb#170
51839
52052
  def support_target_ruby_version?(cop); end
51840
52053
 
51841
- # source://rubocop//lib/rubocop/cop/team.rb#219
52054
+ # source://rubocop//lib/rubocop/cop/team.rb#222
51842
52055
  def suppress_clobbering; end
51843
52056
 
51844
- # source://rubocop//lib/rubocop/cop/team.rb#225
52057
+ # source://rubocop//lib/rubocop/cop/team.rb#228
51845
52058
  def validate_config; end
51846
52059
 
51847
52060
  class << self
@@ -54358,10 +54571,10 @@ class RuboCop::Formatter::ClangStyleFormatter < ::RuboCop::Formatter::SimpleText
54358
54571
 
54359
54572
  private
54360
54573
 
54361
- # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#51
54574
+ # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#47
54362
54575
  def report_highlighted_area(highlighted_area); end
54363
54576
 
54364
- # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#41
54577
+ # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#37
54365
54578
  def report_line(location); end
54366
54579
 
54367
54580
  # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#17
@@ -54369,7 +54582,7 @@ class RuboCop::Formatter::ClangStyleFormatter < ::RuboCop::Formatter::SimpleText
54369
54582
 
54370
54583
  # @return [Boolean]
54371
54584
  #
54372
- # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#37
54585
+ # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#33
54373
54586
  def valid_line?(offense); end
54374
54587
  end
54375
54588
 
@@ -55312,10 +55525,10 @@ class RuboCop::Formatter::TapFormatter < ::RuboCop::Formatter::ClangStyleFormatt
55312
55525
 
55313
55526
  private
55314
55527
 
55315
- # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#66
55528
+ # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#62
55316
55529
  def annotate_message(msg); end
55317
55530
 
55318
- # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#70
55531
+ # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#66
55319
55532
  def message(offense); end
55320
55533
 
55321
55534
  # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#39
@@ -55472,47 +55685,47 @@ class RuboCop::LSP::Routes
55472
55685
 
55473
55686
  # @api private
55474
55687
  #
55475
- # source://rubocop//lib/rubocop/lsp/routes.rb#170
55688
+ # source://rubocop//lib/rubocop/lsp/routes.rb#169
55476
55689
  def handle_method_missing(request); end
55477
55690
 
55478
- # source://rubocop//lib/rubocop/lsp/routes.rb#67
55691
+ # source://rubocop//lib/rubocop/lsp/routes.rb#68
55479
55692
  def handle_shutdown(request); end
55480
55693
 
55481
55694
  # @api private
55482
55695
  #
55483
- # source://rubocop//lib/rubocop/lsp/routes.rb#159
55696
+ # source://rubocop//lib/rubocop/lsp/routes.rb#158
55484
55697
  def handle_unsupported_method(request, method = T.unsafe(nil)); end
55485
55698
 
55486
55699
  private
55487
55700
 
55488
55701
  # @api private
55489
55702
  #
55490
- # source://rubocop//lib/rubocop/lsp/routes.rb#208
55703
+ # source://rubocop//lib/rubocop/lsp/routes.rb#207
55491
55704
  def diagnostic(file_uri, text); end
55492
55705
 
55493
55706
  # @api private
55494
55707
  #
55495
- # source://rubocop//lib/rubocop/lsp/routes.rb#178
55708
+ # source://rubocop//lib/rubocop/lsp/routes.rb#177
55496
55709
  def extract_initialization_options_from(request); end
55497
55710
 
55498
55711
  # @api private
55499
55712
  #
55500
- # source://rubocop//lib/rubocop/lsp/routes.rb#188
55713
+ # source://rubocop//lib/rubocop/lsp/routes.rb#187
55501
55714
  def format_file(file_uri, command: T.unsafe(nil)); end
55502
55715
 
55503
55716
  # @api private
55504
55717
  #
55505
- # source://rubocop//lib/rubocop/lsp/routes.rb#222
55718
+ # source://rubocop//lib/rubocop/lsp/routes.rb#221
55506
55719
  def remove_file_protocol_from(uri); end
55507
55720
 
55508
55721
  # @api private
55509
55722
  #
55510
- # source://rubocop//lib/rubocop/lsp/routes.rb#226
55723
+ # source://rubocop//lib/rubocop/lsp/routes.rb#225
55511
55724
  def to_diagnostic(offense); end
55512
55725
 
55513
55726
  # @api private
55514
55727
  #
55515
- # source://rubocop//lib/rubocop/lsp/routes.rb#238
55728
+ # source://rubocop//lib/rubocop/lsp/routes.rb#237
55516
55729
  def to_range(location); end
55517
55730
 
55518
55731
  class << self
@@ -55606,32 +55819,32 @@ class RuboCop::LSP::Server
55606
55819
 
55607
55820
  # @api private
55608
55821
  #
55609
- # source://rubocop//lib/rubocop/lsp/server.rb#59
55822
+ # source://rubocop//lib/rubocop/lsp/server.rb#61
55610
55823
  def configure(options); end
55611
55824
 
55612
55825
  # @api private
55613
55826
  #
55614
- # source://rubocop//lib/rubocop/lsp/server.rb#51
55827
+ # source://rubocop//lib/rubocop/lsp/server.rb#53
55615
55828
  def format(path, text, command:); end
55616
55829
 
55617
55830
  # @api private
55618
55831
  #
55619
- # source://rubocop//lib/rubocop/lsp/server.rb#55
55832
+ # source://rubocop//lib/rubocop/lsp/server.rb#57
55620
55833
  def offenses(path, text); end
55621
55834
 
55622
55835
  # @api private
55623
55836
  #
55624
- # source://rubocop//lib/rubocop/lsp/server.rb#32
55837
+ # source://rubocop//lib/rubocop/lsp/server.rb#34
55625
55838
  def start; end
55626
55839
 
55627
55840
  # @api private
55628
55841
  #
55629
- # source://rubocop//lib/rubocop/lsp/server.rb#65
55842
+ # source://rubocop//lib/rubocop/lsp/server.rb#67
55630
55843
  def stop(&block); end
55631
55844
 
55632
55845
  # @api private
55633
55846
  #
55634
- # source://rubocop//lib/rubocop/lsp/server.rb#47
55847
+ # source://rubocop//lib/rubocop/lsp/server.rb#49
55635
55848
  def write(response); end
55636
55849
  end
55637
55850
 
@@ -55659,33 +55872,61 @@ RuboCop::LSP::Severity::SEVERITIES = T.let(T.unsafe(nil), Hash)
55659
55872
  #
55660
55873
  # @api private
55661
55874
  #
55662
- # source://rubocop//lib/rubocop/lockfile.rb#7
55875
+ # source://rubocop//lib/rubocop/lockfile.rb#15
55663
55876
  class RuboCop::Lockfile
55664
- # Gems that the bundle depends on
55877
+ # @api private
55878
+ # @param lockfile_path [String, Pathname, nil]
55879
+ # @return [Lockfile] a new instance of Lockfile
55880
+ #
55881
+ # source://rubocop//lib/rubocop/lockfile.rb#17
55882
+ def initialize(lockfile_path = T.unsafe(nil)); end
55883
+
55884
+ # Gems that the bundle directly depends on.
55665
55885
  #
55666
55886
  # @api private
55887
+ # @return [Array<Bundler::Dependency>, nil]
55667
55888
  #
55668
- # source://rubocop//lib/rubocop/lockfile.rb#9
55889
+ # source://rubocop//lib/rubocop/lockfile.rb#29
55669
55890
  def dependencies; end
55670
55891
 
55671
- # All activated gems, including transitive dependencies
55892
+ # Returns the locked versions of gems from this lockfile.
55672
55893
  #
55673
55894
  # @api private
55895
+ # @param include_transitive_dependencies: [Boolean] When false, only direct dependencies
55896
+ # are returned, i.e. those listed explicitly in the `Gemfile`.
55897
+ #
55898
+ # source://rubocop//lib/rubocop/lockfile.rb#49
55899
+ def gem_versions(include_transitive_dependencies: T.unsafe(nil)); end
55900
+
55901
+ # All activated gems, including transitive dependencies.
55674
55902
  #
55675
- # source://rubocop//lib/rubocop/lockfile.rb#16
55903
+ # @api private
55904
+ # @return [Array<Bundler::Dependency>, nil]
55905
+ #
55906
+ # source://rubocop//lib/rubocop/lockfile.rb#37
55676
55907
  def gems; end
55677
55908
 
55909
+ # Whether this lockfile includes the named gem, directly or indirectly.
55910
+ #
55678
55911
  # @api private
55912
+ # @param name [String]
55679
55913
  # @return [Boolean]
55680
55914
  #
55681
- # source://rubocop//lib/rubocop/lockfile.rb#24
55915
+ # source://rubocop//lib/rubocop/lockfile.rb#65
55682
55916
  def includes_gem?(name); end
55683
55917
 
55684
55918
  private
55685
55919
 
55686
55920
  # @api private
55921
+ # @return [Boolean]
55922
+ #
55923
+ # source://rubocop//lib/rubocop/lockfile.rb#85
55924
+ def bundler_lock_parser_defined?; end
55925
+
55926
+ # @api private
55927
+ # @return [Bundler::LockfileParser, nil]
55687
55928
  #
55688
- # source://rubocop//lib/rubocop/lockfile.rb#30
55929
+ # source://rubocop//lib/rubocop/lockfile.rb#72
55689
55930
  def parser; end
55690
55931
  end
55691
55932
 
@@ -56709,145 +56950,145 @@ RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array)
56709
56950
  class RuboCop::Runner
56710
56951
  # @return [Runner] a new instance of Runner
56711
56952
  #
56712
- # source://rubocop//lib/rubocop/runner.rb#59
56953
+ # source://rubocop//lib/rubocop/runner.rb#63
56713
56954
  def initialize(options, config_store); end
56714
56955
 
56715
56956
  # Sets the attribute aborting
56716
56957
  #
56717
56958
  # @param value the value to set the attribute aborting to.
56718
56959
  #
56719
- # source://rubocop//lib/rubocop/runner.rb#57
56960
+ # source://rubocop//lib/rubocop/runner.rb#61
56720
56961
  def aborting=(_arg0); end
56721
56962
 
56722
56963
  # @return [Boolean]
56723
56964
  #
56724
- # source://rubocop//lib/rubocop/runner.rb#83
56965
+ # source://rubocop//lib/rubocop/runner.rb#87
56725
56966
  def aborting?; end
56726
56967
 
56727
56968
  # Returns the value of attribute errors.
56728
56969
  #
56729
- # source://rubocop//lib/rubocop/runner.rb#56
56970
+ # source://rubocop//lib/rubocop/runner.rb#60
56730
56971
  def errors; end
56731
56972
 
56732
- # source://rubocop//lib/rubocop/runner.rb#67
56973
+ # source://rubocop//lib/rubocop/runner.rb#71
56733
56974
  def run(paths); end
56734
56975
 
56735
56976
  # Returns the value of attribute warnings.
56736
56977
  #
56737
- # source://rubocop//lib/rubocop/runner.rb#56
56978
+ # source://rubocop//lib/rubocop/runner.rb#60
56738
56979
  def warnings; end
56739
56980
 
56740
56981
  private
56741
56982
 
56742
- # source://rubocop//lib/rubocop/runner.rb#196
56983
+ # source://rubocop//lib/rubocop/runner.rb#200
56743
56984
  def add_redundant_disables(file, offenses, source); end
56744
56985
 
56745
- # source://rubocop//lib/rubocop/runner.rb#170
56986
+ # source://rubocop//lib/rubocop/runner.rb#174
56746
56987
  def cached_result(file, team); end
56747
56988
 
56748
56989
  # @return [Boolean]
56749
56990
  #
56750
- # source://rubocop//lib/rubocop/runner.rb#250
56991
+ # source://rubocop//lib/rubocop/runner.rb#254
56751
56992
  def cached_run?; end
56752
56993
 
56753
56994
  # Check whether a run created source identical to a previous run, which
56754
56995
  # means that we definitely have an infinite loop.
56755
56996
  #
56756
- # source://rubocop//lib/rubocop/runner.rb#328
56997
+ # source://rubocop//lib/rubocop/runner.rb#332
56757
56998
  def check_for_infinite_loop(processed_source, offenses_by_iteration); end
56758
56999
 
56759
57000
  # @return [Boolean]
56760
57001
  #
56761
- # source://rubocop//lib/rubocop/runner.rb#222
57002
+ # source://rubocop//lib/rubocop/runner.rb#226
56762
57003
  def check_for_redundant_disables?(source); end
56763
57004
 
56764
57005
  # @return [Boolean]
56765
57006
  #
56766
- # source://rubocop//lib/rubocop/runner.rb#423
57007
+ # source://rubocop//lib/rubocop/runner.rb#427
56767
57008
  def considered_failure?(offense); end
56768
57009
 
56769
- # source://rubocop//lib/rubocop/runner.rb#456
57010
+ # source://rubocop//lib/rubocop/runner.rb#460
56770
57011
  def default_config(cop_name); end
56771
57012
 
56772
- # source://rubocop//lib/rubocop/runner.rb#272
57013
+ # source://rubocop//lib/rubocop/runner.rb#276
56773
57014
  def do_inspection_loop(file); end
56774
57015
 
56775
- # source://rubocop//lib/rubocop/runner.rb#133
57016
+ # source://rubocop//lib/rubocop/runner.rb#137
56776
57017
  def each_inspected_file(files); end
56777
57018
 
56778
57019
  # @return [Boolean]
56779
57020
  #
56780
- # source://rubocop//lib/rubocop/runner.rb#236
57021
+ # source://rubocop//lib/rubocop/runner.rb#240
56781
57022
  def except_redundant_cop_disable_directive?; end
56782
57023
 
56783
- # source://rubocop//lib/rubocop/runner.rb#357
57024
+ # source://rubocop//lib/rubocop/runner.rb#361
56784
57025
  def extract_ruby_sources(processed_source); end
56785
57026
 
56786
- # source://rubocop//lib/rubocop/runner.rb#245
57027
+ # source://rubocop//lib/rubocop/runner.rb#249
56787
57028
  def file_finished(file, offenses); end
56788
57029
 
56789
- # source://rubocop//lib/rubocop/runner.rb#174
57030
+ # source://rubocop//lib/rubocop/runner.rb#178
56790
57031
  def file_offense_cache(file); end
56791
57032
 
56792
- # source://rubocop//lib/rubocop/runner.rb#162
57033
+ # source://rubocop//lib/rubocop/runner.rb#166
56793
57034
  def file_offenses(file); end
56794
57035
 
56795
- # source://rubocop//lib/rubocop/runner.rb#240
57036
+ # source://rubocop//lib/rubocop/runner.rb#244
56796
57037
  def file_started(file); end
56797
57038
 
56798
- # source://rubocop//lib/rubocop/runner.rb#403
57039
+ # source://rubocop//lib/rubocop/runner.rb#407
56799
57040
  def filter_cop_classes(cop_classes, config); end
56800
57041
 
56801
- # source://rubocop//lib/rubocop/runner.rb#104
57042
+ # source://rubocop//lib/rubocop/runner.rb#108
56802
57043
  def find_target_files(paths); end
56803
57044
 
56804
- # source://rubocop//lib/rubocop/runner.rb#414
57045
+ # source://rubocop//lib/rubocop/runner.rb#418
56805
57046
  def formatter_set; end
56806
57047
 
56807
- # source://rubocop//lib/rubocop/runner.rb#471
57048
+ # source://rubocop//lib/rubocop/runner.rb#475
56808
57049
  def get_processed_source(file); end
56809
57050
 
56810
- # source://rubocop//lib/rubocop/runner.rb#342
57051
+ # source://rubocop//lib/rubocop/runner.rb#346
56811
57052
  def inspect_file(processed_source, team = T.unsafe(nil)); end
56812
57053
 
56813
- # source://rubocop//lib/rubocop/runner.rb#115
57054
+ # source://rubocop//lib/rubocop/runner.rb#119
56814
57055
  def inspect_files(files); end
56815
57056
 
56816
- # source://rubocop//lib/rubocop/runner.rb#303
57057
+ # source://rubocop//lib/rubocop/runner.rb#307
56817
57058
  def iterate_until_no_changes(source, offenses_by_iteration); end
56818
57059
 
56819
- # source://rubocop//lib/rubocop/runner.rb#148
57060
+ # source://rubocop//lib/rubocop/runner.rb#152
56820
57061
  def list_files(paths); end
56821
57062
 
56822
57063
  # @return [Boolean]
56823
57064
  #
56824
- # source://rubocop//lib/rubocop/runner.rb#452
57065
+ # source://rubocop//lib/rubocop/runner.rb#456
56825
57066
  def mark_as_safe_by_config?(config); end
56826
57067
 
56827
- # source://rubocop//lib/rubocop/runner.rb#460
57068
+ # source://rubocop//lib/rubocop/runner.rb#464
56828
57069
  def minimum_severity_to_fail; end
56829
57070
 
56830
- # source://rubocop//lib/rubocop/runner.rb#364
57071
+ # source://rubocop//lib/rubocop/runner.rb#368
56831
57072
  def mobilize_team(processed_source); end
56832
57073
 
56833
- # source://rubocop//lib/rubocop/runner.rb#369
57074
+ # source://rubocop//lib/rubocop/runner.rb#373
56834
57075
  def mobilized_cop_classes(config); end
56835
57076
 
56836
- # source://rubocop//lib/rubocop/runner.rb#432
57077
+ # source://rubocop//lib/rubocop/runner.rb#436
56837
57078
  def offenses_to_report(offenses); end
56838
57079
 
56839
- # source://rubocop//lib/rubocop/runner.rb#152
57080
+ # source://rubocop//lib/rubocop/runner.rb#156
56840
57081
  def process_file(file); end
56841
57082
 
56842
- # source://rubocop//lib/rubocop/runner.rb#393
57083
+ # source://rubocop//lib/rubocop/runner.rb#397
56843
57084
  def qualify_option_cop_names; end
56844
57085
 
56845
57086
  # @yield [cop]
56846
57087
  #
56847
- # source://rubocop//lib/rubocop/runner.rb#228
57088
+ # source://rubocop//lib/rubocop/runner.rb#232
56848
57089
  def redundant_cop_disable_directive(file); end
56849
57090
 
56850
- # source://rubocop//lib/rubocop/runner.rb#262
57091
+ # source://rubocop//lib/rubocop/runner.rb#266
56851
57092
  def save_in_cache(cache, offenses); end
56852
57093
 
56853
57094
  # A Cop::Team instance is stateful and may change when inspecting.
@@ -56855,41 +57096,41 @@ class RuboCop::Runner
56855
57096
  # otherwise dormant team that can be used for config- and option-
56856
57097
  # level caching in ResultCache.
56857
57098
  #
56858
- # source://rubocop//lib/rubocop/runner.rb#499
57099
+ # source://rubocop//lib/rubocop/runner.rb#503
56859
57100
  def standby_team(config); end
56860
57101
 
56861
57102
  # @return [Boolean]
56862
57103
  #
56863
- # source://rubocop//lib/rubocop/runner.rb#410
57104
+ # source://rubocop//lib/rubocop/runner.rb#414
56864
57105
  def style_guide_cops_only?(config); end
56865
57106
 
56866
57107
  # @return [Boolean]
56867
57108
  #
56868
- # source://rubocop//lib/rubocop/runner.rb#444
57109
+ # source://rubocop//lib/rubocop/runner.rb#448
56869
57110
  def supports_safe_autocorrect?(offense); end
56870
57111
 
56871
57112
  # @yield [team]
56872
57113
  #
56873
- # source://rubocop//lib/rubocop/runner.rb#211
57114
+ # source://rubocop//lib/rubocop/runner.rb#215
56874
57115
  def team_for_redundant_disables(file, offenses, source); end
56875
57116
 
56876
57117
  # Warms up the RuboCop cache by forking a suitable number of RuboCop
56877
57118
  # instances that each inspects its allotted group of files.
56878
57119
  #
56879
- # source://rubocop//lib/rubocop/runner.rb#91
57120
+ # source://rubocop//lib/rubocop/runner.rb#95
56880
57121
  def warm_cache(target_files); end
56881
57122
 
56882
57123
  class << self
56883
57124
  # @return [Array<#call>]
56884
57125
  #
56885
- # source://rubocop//lib/rubocop/runner.rb#29
57126
+ # source://rubocop//lib/rubocop/runner.rb#33
56886
57127
  def ruby_extractors; end
56887
57128
 
56888
57129
  private
56889
57130
 
56890
57131
  # @return [#call]
56891
57132
  #
56892
- # source://rubocop//lib/rubocop/runner.rb#36
57133
+ # source://rubocop//lib/rubocop/runner.rb#40
56893
57134
  def default_ruby_extractor; end
56894
57135
  end
56895
57136
  end
@@ -56912,12 +57153,12 @@ end
56912
57153
 
56913
57154
  # @api private
56914
57155
  #
56915
- # source://rubocop//lib/rubocop/runner.rb#49
57156
+ # source://rubocop//lib/rubocop/runner.rb#53
56916
57157
  RuboCop::Runner::MAX_ITERATIONS = T.let(T.unsafe(nil), Integer)
56917
57158
 
56918
57159
  # @api private
56919
57160
  #
56920
- # source://rubocop//lib/rubocop/runner.rb#52
57161
+ # source://rubocop//lib/rubocop/runner.rb#56
56921
57162
  RuboCop::Runner::REDUNDANT_COP_DISABLE_DIRECTIVE_RULES = T.let(T.unsafe(nil), Array)
56922
57163
 
56923
57164
  # Take a string with embedded escapes, and convert the escapes as the Ruby