sorbet-schema 0.4.2 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.standard.yml +2 -1
  3. data/CHANGELOG.md +23 -0
  4. data/Gemfile +1 -0
  5. data/Gemfile.lock +50 -49
  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/coercion/struct_coercer.rb +35 -1
  11. data/lib/typed/serializer.rb +1 -1
  12. data/sorbet/rbi/gems/ansi@1.5.0.rbi +1 -0
  13. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
  14. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +9 -0
  15. data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +23 -25
  16. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
  17. data/sorbet/rbi/gems/io-console@0.7.2.rbi +1 -0
  18. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +77 -68
  19. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -0
  20. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
  21. data/sorbet/rbi/gems/minitest-focus@1.4.0.rbi +14 -13
  22. data/sorbet/rbi/gems/{minitest-reporters@1.6.1.rbi → minitest-reporters@1.7.1.rbi} +48 -40
  23. data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.24.0.rbi} +174 -147
  24. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  25. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +27 -20
  26. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.3.0.rbi} +233 -186
  27. data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.30.0.rbi} +20933 -12761
  28. data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
  29. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.0.rbi} +38 -33
  30. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  31. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  32. data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.13.rbi} +226 -154
  33. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
  34. data/sorbet/rbi/gems/{reline@0.4.3.rbi → reline@0.5.9.rbi} +1 -0
  35. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.3.0.rbi} +134 -114
  36. data/sorbet/rbi/gems/{rubocop-ast@1.31.2.rbi → rubocop-ast@1.31.3.rbi} +4 -6
  37. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.21.1.rbi} +1 -0
  38. data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +1 -0
  39. data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.64.1.rbi} +1149 -592
  40. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  41. data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +83 -82
  42. data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +1 -0
  43. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
  44. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
  45. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.4.0.rbi} +1 -0
  46. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
  47. data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.39.0.rbi} +160 -90
  48. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +1 -0
  49. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  50. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.14.4.rbi} +190 -142
  51. data/sorbet/rbi/gems/thor@1.3.1.rbi +1 -0
  52. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +1 -0
  53. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +2 -1
  54. data/sorbet/rbi/gems/yard@0.9.36.rbi +1 -0
  55. data/sorbet/rbi/gems/{zeitwerk@2.6.13.rbi → zeitwerk@2.6.16.rbi} +139 -91
  56. metadata +29 -28
  57. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  58. 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.39.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#346
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#334
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#327
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#156
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#272
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#189
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#201
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#343
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#329
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#314
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#252
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#256
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#349
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#246
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#238
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#285
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#234
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#353
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#183
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#238
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#305
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#170
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#164
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#176
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#290
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#264
3050
3076
  def parser_engine; end
3051
3077
 
3052
3078
  # Returns the value of attribute processed_source.
@@ -3058,99 +3084,106 @@ 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#296
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#276
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#268
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#260
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#471
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#365
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#435
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#361
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#394
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#409
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#379
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#371
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#383
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#375
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#499
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#495
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#449
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#485
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#477
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#467
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#491
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#512
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#456
3146
3172
  def range_from_node_or_range(node_or_range); end
3147
3173
 
3148
- # source://rubocop//lib/rubocop/cop/base.rb#384
3174
+ # Actually private methods
3175
+ #
3176
+ # source://rubocop//lib/rubocop/cop/base.rb#404
3149
3177
  def reset_investigation; end
3150
3178
 
3179
+ # @return [Boolean]
3180
+ #
3181
+ # source://rubocop//lib/rubocop/cop/base.rb#520
3182
+ def target_satisfies_all_gem_version_requirements?; end
3183
+
3151
3184
  # @return [Symbol] offense status
3152
3185
  #
3153
- # source://rubocop//lib/rubocop/cop/base.rb#404
3186
+ # source://rubocop//lib/rubocop/cop/base.rb#424
3154
3187
  def use_corrector(range, corrector); end
3155
3188
 
3156
3189
  class << self
@@ -3165,46 +3198,54 @@ class RuboCop::Cop::Base
3165
3198
 
3166
3199
  # Naming
3167
3200
  #
3168
- # source://rubocop//lib/rubocop/cop/base.rb#89
3201
+ # source://rubocop//lib/rubocop/cop/base.rb#93
3169
3202
  def badge; end
3170
3203
 
3171
3204
  # @api private
3172
3205
  #
3173
- # source://rubocop//lib/rubocop/cop/base.rb#289
3206
+ # source://rubocop//lib/rubocop/cop/base.rb#319
3174
3207
  def callbacks_needed; end
3175
3208
 
3176
- # source://rubocop//lib/rubocop/cop/base.rb#93
3209
+ # source://rubocop//lib/rubocop/cop/base.rb#97
3177
3210
  def cop_name; end
3178
3211
 
3179
- # source://rubocop//lib/rubocop/cop/base.rb#97
3212
+ # source://rubocop//lib/rubocop/cop/base.rb#101
3180
3213
  def department; end
3181
3214
 
3182
- # Cops (other than builtin) are encouraged to implement this
3215
+ # Returns an url to view this cops documentation online.
3216
+ # Requires 'DocumentationBaseURL' to be set for your department.
3217
+ # Will follow the convention of RuboCops own documentation structure,
3218
+ # overwrite this method to accommodate your custom layout.
3183
3219
  #
3184
3220
  # @api public
3185
3221
  # @return [String, nil]
3186
3222
  #
3187
- # source://rubocop//lib/rubocop/cop/base.rb#67
3188
- def documentation_url; end
3223
+ # source://rubocop//lib/rubocop/cop/base.rb#70
3224
+ def documentation_url(config = T.unsafe(nil)); end
3189
3225
 
3190
3226
  # Call for abstract Cop classes
3191
3227
  #
3192
- # source://rubocop//lib/rubocop/cop/base.rb#77
3228
+ # source://rubocop//lib/rubocop/cop/base.rb#81
3193
3229
  def exclude_from_registry; end
3194
3230
 
3231
+ # Returns the value of attribute gem_requirements.
3232
+ #
3233
+ # source://rubocop//lib/rubocop/cop/base.rb#138
3234
+ def gem_requirements; end
3235
+
3195
3236
  # @private
3196
3237
  #
3197
- # source://rubocop//lib/rubocop/cop/base.rb#71
3238
+ # source://rubocop//lib/rubocop/cop/base.rb#74
3198
3239
  def inherited(subclass); end
3199
3240
 
3200
3241
  # Override and return the Force class(es) you need to join
3201
3242
  #
3202
- # source://rubocop//lib/rubocop/cop/base.rb#114
3243
+ # source://rubocop//lib/rubocop/cop/base.rb#118
3203
3244
  def joining_forces; end
3204
3245
 
3205
3246
  # @return [Boolean]
3206
3247
  #
3207
- # source://rubocop//lib/rubocop/cop/base.rb#101
3248
+ # source://rubocop//lib/rubocop/cop/base.rb#105
3208
3249
  def lint?; end
3209
3250
 
3210
3251
  # Returns true if the cop name or the cop namespace matches any of the
@@ -3212,15 +3253,30 @@ class RuboCop::Cop::Base
3212
3253
  #
3213
3254
  # @return [Boolean]
3214
3255
  #
3215
- # source://rubocop//lib/rubocop/cop/base.rb#107
3256
+ # source://rubocop//lib/rubocop/cop/base.rb#111
3216
3257
  def match?(given_names); end
3217
3258
 
3259
+ # Register a version requirement for the given gem name.
3260
+ # This cop will be skipped unless the target satisfies *all* requirements.
3261
+ #
3262
+ # @api public
3263
+ # @param gem_name [String]
3264
+ # @param version_requirements [Array<String>] The version requirements,
3265
+ # using the same syntax as a Gemfile, e.g. ">= 1.2.3"
3266
+ #
3267
+ # If omitted, any version of the gem will be accepted.
3268
+ #
3269
+ # https://guides.rubygems.org/patterns/#declaring-dependencies
3270
+ #
3271
+ # source://rubocop//lib/rubocop/cop/base.rb#151
3272
+ def requires_gem(gem_name, *version_requirements); end
3273
+
3218
3274
  # Returns if class supports autocorrect.
3219
3275
  # It is recommended to extend AutoCorrector instead of overriding
3220
3276
  #
3221
3277
  # @return [Boolean]
3222
3278
  #
3223
- # source://rubocop//lib/rubocop/cop/base.rb#83
3279
+ # source://rubocop//lib/rubocop/cop/base.rb#87
3224
3280
  def support_autocorrect?; end
3225
3281
 
3226
3282
  # Override if your cop should be called repeatedly for multiple investigations
@@ -3233,22 +3289,17 @@ class RuboCop::Cop::Base
3233
3289
  #
3234
3290
  # @return [Boolean]
3235
3291
  #
3236
- # source://rubocop//lib/rubocop/cop/base.rb#125
3292
+ # source://rubocop//lib/rubocop/cop/base.rb#129
3237
3293
  def support_multiple_source?; end
3238
3294
 
3239
3295
  private
3240
3296
 
3241
- # @return [Boolean]
3242
- #
3243
- # source://rubocop//lib/rubocop/cop/base.rb#375
3244
- def builtin?; end
3245
-
3246
- # source://rubocop//lib/rubocop/cop/base.rb#357
3297
+ # source://rubocop//lib/rubocop/cop/base.rb#387
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#391
3252
3303
  RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array)
3253
3304
 
3254
3305
  # Reports of an investigation.
@@ -3787,35 +3838,35 @@ class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base
3787
3838
 
3788
3839
  # @return [Boolean]
3789
3840
  #
3790
- # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#113
3841
+ # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#111
3791
3842
  def forbidden_offense?(node); end
3792
3843
 
3793
3844
  # @return [Boolean]
3794
3845
  #
3795
- # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#119
3846
+ # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#117
3796
3847
  def forbidden_style?; end
3797
3848
 
3798
3849
  # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#93
3799
- def message(range); end
3850
+ def message(_range); end
3800
3851
 
3801
3852
  # @return [Boolean]
3802
3853
  #
3803
- # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#103
3854
+ # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#101
3804
3855
  def offense?(node); end
3805
3856
 
3806
3857
  # @return [Boolean]
3807
3858
  #
3808
- # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#107
3859
+ # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#105
3809
3860
  def required_offense?(node); end
3810
3861
 
3811
3862
  # @return [Boolean]
3812
3863
  #
3813
- # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#123
3864
+ # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#121
3814
3865
  def required_style?; end
3815
3866
 
3816
3867
  # @return [Boolean]
3817
3868
  #
3818
- # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#127
3869
+ # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#125
3819
3870
  def version_specification?(expression); end
3820
3871
  end
3821
3872
 
@@ -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.3.0/lib/parser/source/tree_rewriter.rb#252
5046
5100
  def rewrite; end
5047
5101
 
5048
5102
  # Swaps sources at the given ranges.
@@ -5113,7 +5167,12 @@ module RuboCop::Cop::Documentation
5113
5167
 
5114
5168
  # @api private
5115
5169
  #
5116
- # source://rubocop//lib/rubocop/cop/documentation.rb#34
5170
+ # source://rubocop//lib/rubocop/cop/documentation.rb#40
5171
+ def builtin?(cop_class); end
5172
+
5173
+ # @api private
5174
+ #
5175
+ # source://rubocop//lib/rubocop/cop/documentation.rb#35
5117
5176
  def default_base_url; end
5118
5177
 
5119
5178
  # @api private
@@ -5132,9 +5191,15 @@ module RuboCop::Cop::Documentation
5132
5191
  # source://rubocop//lib/rubocop/cop/documentation.rb#24
5133
5192
  def base_url_for(cop_class, config); end
5134
5193
 
5194
+ # @api private
5195
+ # @return [Boolean]
5196
+ #
5197
+ # source://rubocop//lib/rubocop/cop/documentation.rb#40
5198
+ def builtin?(cop_class); end
5199
+
5135
5200
  # @api private
5136
5201
  #
5137
- # source://rubocop//lib/rubocop/cop/documentation.rb#34
5202
+ # source://rubocop//lib/rubocop/cop/documentation.rb#35
5138
5203
  def default_base_url; end
5139
5204
 
5140
5205
  # @api private
@@ -5474,37 +5539,53 @@ RuboCop::Cop::ForToEachCorrector::CORRECTION = T.let(T.unsafe(nil), String)
5474
5539
  class RuboCop::Cop::Force
5475
5540
  # @return [Force] a new instance of Force
5476
5541
  #
5477
- # source://rubocop//lib/rubocop/cop/force.rb#22
5542
+ # source://rubocop//lib/rubocop/cop/force.rb#32
5478
5543
  def initialize(cops); end
5479
5544
 
5480
5545
  # Returns the value of attribute cops.
5481
5546
  #
5482
- # source://rubocop//lib/rubocop/cop/force.rb#7
5547
+ # source://rubocop//lib/rubocop/cop/force.rb#17
5483
5548
  def cops; end
5484
5549
 
5485
- # source://rubocop//lib/rubocop/cop/force.rb#38
5550
+ # source://rubocop//lib/rubocop/cop/force.rb#50
5486
5551
  def investigate(_processed_source); end
5487
5552
 
5488
- # source://rubocop//lib/rubocop/cop/force.rb#26
5553
+ # source://rubocop//lib/rubocop/cop/force.rb#36
5489
5554
  def name; end
5490
5555
 
5491
- # source://rubocop//lib/rubocop/cop/force.rb#30
5556
+ # source://rubocop//lib/rubocop/cop/force.rb#40
5492
5557
  def run_hook(method_name, *args); end
5493
5558
 
5494
5559
  class << self
5495
- # source://rubocop//lib/rubocop/cop/force.rb#9
5560
+ # source://rubocop//lib/rubocop/cop/force.rb#19
5496
5561
  def all; end
5497
5562
 
5498
- # source://rubocop//lib/rubocop/cop/force.rb#18
5563
+ # source://rubocop//lib/rubocop/cop/force.rb#28
5499
5564
  def force_name; end
5500
5565
 
5501
5566
  # @private
5502
5567
  #
5503
- # source://rubocop//lib/rubocop/cop/force.rb#13
5568
+ # source://rubocop//lib/rubocop/cop/force.rb#23
5504
5569
  def inherited(subclass); end
5505
5570
  end
5506
5571
  end
5507
5572
 
5573
+ # @api private
5574
+ #
5575
+ # source://rubocop//lib/rubocop/cop/force.rb#8
5576
+ class RuboCop::Cop::Force::HookError < ::StandardError
5577
+ # @api private
5578
+ # @return [HookError] a new instance of HookError
5579
+ #
5580
+ # source://rubocop//lib/rubocop/cop/force.rb#11
5581
+ def initialize(joining_cop); end
5582
+
5583
+ # @api private
5584
+ #
5585
+ # source://rubocop//lib/rubocop/cop/force.rb#9
5586
+ def joining_cop; end
5587
+ end
5588
+
5508
5589
  # Common functionality for dealing with frozen string literals.
5509
5590
  #
5510
5591
  # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#6
@@ -5635,7 +5716,7 @@ class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base
5635
5716
 
5636
5717
  # @return [Boolean]
5637
5718
  #
5638
- # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#120
5719
+ # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#118
5639
5720
  def add_dependency_method?(method_name); end
5640
5721
 
5641
5722
  # @return [Boolean]
@@ -5648,40 +5729,40 @@ class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base
5648
5729
 
5649
5730
  # @return [Boolean]
5650
5731
  #
5651
- # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#134
5732
+ # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#132
5652
5733
  def forbidden_offense?(node); end
5653
5734
 
5654
5735
  # @return [Boolean]
5655
5736
  #
5656
- # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#140
5737
+ # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#138
5657
5738
  def forbidden_style?; end
5658
5739
 
5659
5740
  # @return [Boolean]
5660
5741
  #
5661
- # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#114
5742
+ # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#112
5662
5743
  def match_block_variable_name?(receiver_name); end
5663
5744
 
5664
5745
  # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#104
5665
- def message(range); end
5746
+ def message(_range); end
5666
5747
 
5667
5748
  # @return [Boolean]
5668
5749
  #
5669
- # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#124
5750
+ # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#122
5670
5751
  def offense?(node); end
5671
5752
 
5672
5753
  # @return [Boolean]
5673
5754
  #
5674
- # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#128
5755
+ # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#126
5675
5756
  def required_offense?(node); end
5676
5757
 
5677
5758
  # @return [Boolean]
5678
5759
  #
5679
- # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#144
5760
+ # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#142
5680
5761
  def required_style?; end
5681
5762
 
5682
5763
  # @return [Boolean]
5683
5764
  #
5684
- # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#148
5765
+ # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#146
5685
5766
  def version_specification?(expression); end
5686
5767
  end
5687
5768
 
@@ -6567,40 +6648,45 @@ module RuboCop::Cop::HashShorthandSyntax
6567
6648
 
6568
6649
  # @return [Boolean]
6569
6650
  #
6570
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#125
6651
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#126
6571
6652
  def brackets?(method_dispatch_node); end
6572
6653
 
6573
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#155
6654
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#156
6574
6655
  def breakdown_value_types_of_hash(hash_node); end
6575
6656
 
6576
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#102
6657
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#103
6577
6658
  def def_node_that_require_parentheses(node); end
6578
6659
 
6579
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#179
6660
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#185
6580
6661
  def each_omittable_value_pair(hash_value_type_breakdown, &block); end
6581
6662
 
6582
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#175
6663
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#181
6583
6664
  def each_omitted_value_pair(hash_value_type_breakdown, &block); end
6584
6665
 
6585
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#80
6666
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#81
6586
6667
  def enforced_shorthand_syntax; end
6587
6668
 
6588
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#117
6669
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#118
6589
6670
  def find_ancestor_method_dispatch_node(node); end
6590
6671
 
6591
6672
  # @return [Boolean]
6592
6673
  #
6593
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#167
6674
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#168
6594
6675
  def hash_with_mixed_shorthand_syntax?(hash_value_type_breakdown); end
6595
6676
 
6596
6677
  # @return [Boolean]
6597
6678
  #
6598
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#171
6679
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#172
6599
6680
  def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end
6600
6681
 
6601
6682
  # @return [Boolean]
6602
6683
  #
6603
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#74
6684
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176
6685
+ def ignore_explicit_omissible_hash_shorthand_syntax?(hash_value_type_breakdown); end
6686
+
6687
+ # @return [Boolean]
6688
+ #
6689
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#75
6604
6690
  def ignore_hash_shorthand_syntax?(pair_node); end
6605
6691
 
6606
6692
  # @return [Boolean]
@@ -6610,18 +6696,18 @@ module RuboCop::Cop::HashShorthandSyntax
6610
6696
 
6611
6697
  # @return [Boolean]
6612
6698
  #
6613
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#140
6699
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#141
6614
6700
  def last_expression?(node); end
6615
6701
 
6616
6702
  # @return [Boolean]
6617
6703
  #
6618
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#148
6704
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#149
6619
6705
  def method_dispatch_as_argument?(method_dispatch_node); end
6620
6706
 
6621
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#183
6707
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#189
6622
6708
  def mixed_shorthand_syntax_check(hash_value_type_breakdown); end
6623
6709
 
6624
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#199
6710
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#205
6625
6711
  def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end
6626
6712
 
6627
6713
  # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49
@@ -6629,22 +6715,22 @@ module RuboCop::Cop::HashShorthandSyntax
6629
6715
 
6630
6716
  # @return [Boolean]
6631
6717
  #
6632
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#84
6718
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#85
6633
6719
  def require_hash_value?(hash_key_source, node); end
6634
6720
 
6635
6721
  # @return [Boolean]
6636
6722
  #
6637
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#93
6723
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#94
6638
6724
  def require_hash_value_for_around_hash_literal?(node); end
6639
6725
 
6640
6726
  # @return [Boolean]
6641
6727
  #
6642
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#129
6728
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#130
6643
6729
  def use_element_of_hash_literal_as_receiver?(ancestor, parent); end
6644
6730
 
6645
6731
  # @return [Boolean]
6646
6732
  #
6647
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#134
6733
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#135
6648
6734
  def use_modifier_form_without_parenthesized_method_call?(ancestor); end
6649
6735
  end
6650
6736
 
@@ -6657,12 +6743,12 @@ RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_MSG_PREFIX = T.let(T.unsafe(nil),
6657
6743
  # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11
6658
6744
  RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_OMIT_VALUE_MSG = T.let(T.unsafe(nil), String)
6659
6745
 
6660
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#209
6746
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#216
6661
6747
  class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct
6662
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#218
6748
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#225
6663
6749
  def first_argument; end
6664
6750
 
6665
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#222
6751
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#229
6666
6752
  def last_argument; end
6667
6753
 
6668
6754
  # Returns the value of attribute node
@@ -6676,7 +6762,7 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct
6676
6762
  # @return [Object] the newly set value
6677
6763
  def node=(_); end
6678
6764
 
6679
- # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#210
6765
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#217
6680
6766
  def selector; end
6681
6767
 
6682
6768
  class << self
@@ -8721,35 +8807,35 @@ class RuboCop::Cop::Layout::EmptyComment < ::RuboCop::Cop::Base
8721
8807
 
8722
8808
  # @return [Boolean]
8723
8809
  #
8724
- # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#131
8810
+ # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#133
8725
8811
  def allow_border_comment?; end
8726
8812
 
8727
8813
  # @return [Boolean]
8728
8814
  #
8729
- # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#135
8815
+ # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#137
8730
8816
  def allow_margin_comment?; end
8731
8817
 
8732
8818
  # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#97
8733
8819
  def autocorrect(corrector, node); end
8734
8820
 
8735
- # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#127
8821
+ # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#129
8736
8822
  def comment_text(comment); end
8737
8823
 
8738
8824
  # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#108
8739
8825
  def concat_consecutive_comments(comments); end
8740
8826
 
8741
- # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#139
8827
+ # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#141
8742
8828
  def current_token(comment); end
8743
8829
 
8744
8830
  # @return [Boolean]
8745
8831
  #
8746
- # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#117
8832
+ # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#119
8747
8833
  def empty_comment_only?(comment_text); end
8748
8834
 
8749
8835
  # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#85
8750
8836
  def investigate(comments); end
8751
8837
 
8752
- # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#143
8838
+ # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#145
8753
8839
  def previous_token(node); end
8754
8840
  end
8755
8841
 
@@ -10661,43 +10747,43 @@ class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base
10661
10747
  # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#94
10662
10748
  def on_array(node); end
10663
10749
 
10664
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#98
10750
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#100
10665
10751
  def on_csend(node); end
10666
10752
 
10667
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#98
10753
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#100
10668
10754
  def on_send(node); end
10669
10755
 
10670
10756
  private
10671
10757
 
10672
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#189
10758
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#191
10673
10759
  def array_alignment_config; end
10674
10760
 
10675
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#109
10761
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#111
10676
10762
  def autocorrect(corrector, node); end
10677
10763
 
10678
10764
  # Returns the description of what the correct indentation is based on.
10679
10765
  #
10680
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#147
10766
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#149
10681
10767
  def base_description(indent_base_type); end
10682
10768
 
10683
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#113
10769
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#115
10684
10770
  def brace_alignment_style; end
10685
10771
 
10686
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#117
10772
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#119
10687
10773
  def check(array_node, left_parenthesis); end
10688
10774
 
10689
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#131
10775
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#133
10690
10776
  def check_right_bracket(right_bracket, first_elem, left_bracket, left_parenthesis); end
10691
10777
 
10692
10778
  # @return [Boolean]
10693
10779
  #
10694
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#183
10780
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#185
10695
10781
  def enforce_first_argument_with_fixed_indentation?; end
10696
10782
 
10697
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#160
10783
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#162
10698
10784
  def message(base_description); end
10699
10785
 
10700
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#168
10786
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#170
10701
10787
  def message_for_right_bracket(indent_base_type); end
10702
10788
  end
10703
10789
 
@@ -16200,23 +16286,20 @@ class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Bas
16200
16286
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
16201
16287
  extend ::RuboCop::Cop::AutoCorrector
16202
16288
 
16203
- # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#31
16289
+ # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#30
16204
16290
  def on_interpolation(begin_node); end
16205
16291
 
16206
16292
  private
16207
16293
 
16208
- # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#47
16294
+ # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#46
16209
16295
  def autocorrect(corrector, begin_node); end
16210
16296
 
16211
- # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#57
16297
+ # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#56
16212
16298
  def delimiters(begin_node); end
16213
16299
  end
16214
16300
 
16215
16301
  # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#28
16216
- RuboCop::Cop::Layout::SpaceInsideStringInterpolation::NO_SPACE_MSG = T.let(T.unsafe(nil), String)
16217
-
16218
- # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#29
16219
- RuboCop::Cop::Layout::SpaceInsideStringInterpolation::SPACE_MSG = T.let(T.unsafe(nil), String)
16302
+ RuboCop::Cop::Layout::SpaceInsideStringInterpolation::MSG = T.let(T.unsafe(nil), String)
16220
16303
 
16221
16304
  # Looks for trailing blank lines and a final newline in the
16222
16305
  # source code.
@@ -16926,7 +17009,7 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
16926
17009
  include ::RuboCop::Cop::SafeAssignment
16927
17010
  extend ::RuboCop::Cop::AutoCorrector
16928
17011
 
16929
- # source://standard/1.35.1/lib/standard/rubocop/ext.rb#4
17012
+ # source://standard/1.39.0/lib/standard/rubocop/ext.rb#4
16930
17013
  def message(_); end
16931
17014
 
16932
17015
  # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55
@@ -17370,6 +17453,11 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String)
17370
17453
  # MyDebugger.debug_this
17371
17454
  # ----
17372
17455
  #
17456
+ # Some gems also ship files that will start a debugging session when required,
17457
+ # for example `require 'debug/start'` from `ruby/debug`. These requires can
17458
+ # be configured through `DebuggerRequires`. It has the same structure as
17459
+ # `DebuggerMethods`, which you can read about above.
17460
+ #
17373
17461
  # @example
17374
17462
  #
17375
17463
  # # bad (ok during development)
@@ -17402,43 +17490,56 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String)
17402
17490
  # def some_method
17403
17491
  # my_debugger
17404
17492
  # end
17493
+ # @example DebuggerRequires: [my_debugger/start]
17494
+ #
17495
+ # # bad (ok during development)
17496
+ #
17497
+ # require 'my_debugger/start'
17405
17498
  #
17406
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#67
17499
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#78
17407
17500
  class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base
17408
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#71
17501
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#82
17409
17502
  def on_send(node); end
17410
17503
 
17411
17504
  private
17412
17505
 
17413
17506
  # @return [Boolean]
17414
17507
  #
17415
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#117
17508
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#142
17416
17509
  def assumed_argument?(node); end
17417
17510
 
17418
17511
  # @return [Boolean]
17419
17512
  #
17420
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#96
17513
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#121
17421
17514
  def assumed_usage_context?(node); end
17422
17515
 
17423
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#106
17516
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#131
17424
17517
  def chained_method_name(send_node); end
17425
17518
 
17426
17519
  # @return [Boolean]
17427
17520
  #
17428
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#90
17521
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#108
17429
17522
  def debugger_method?(send_node); end
17430
17523
 
17431
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#83
17524
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#94
17432
17525
  def debugger_methods; end
17433
17526
 
17434
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#79
17527
+ # @return [Boolean]
17528
+ #
17529
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#114
17530
+ def debugger_require?(send_node); end
17531
+
17532
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#101
17533
+ def debugger_requires; end
17534
+
17535
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#90
17435
17536
  def message(node); end
17436
17537
  end
17437
17538
 
17438
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#69
17539
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#80
17439
17540
  RuboCop::Cop::Lint::Debugger::BLOCK_TYPES = T.let(T.unsafe(nil), Array)
17440
17541
 
17441
- # source://rubocop//lib/rubocop/cop/lint/debugger.rb#68
17542
+ # source://rubocop//lib/rubocop/cop/lint/debugger.rb#79
17442
17543
  RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String)
17443
17544
 
17444
17545
  # Checks for uses of the deprecated class method usages.
@@ -19071,36 +19172,45 @@ class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Base
19071
19172
  extend ::RuboCop::Cop::AutoCorrector
19072
19173
  extend ::RuboCop::Cop::TargetRubyVersion
19073
19174
 
19074
- # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#83
19175
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#81
19075
19176
  def erb_new_with_non_keyword_arguments(param0 = T.unsafe(nil)); end
19076
19177
 
19077
- # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#88
19178
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#86
19078
19179
  def on_send(node); end
19079
19180
 
19080
19181
  private
19081
19182
 
19082
- # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#153
19183
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#160
19083
19184
  def arguments_range(node); end
19084
19185
 
19085
- # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#108
19186
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#115
19086
19187
  def autocorrect(corrector, node); end
19087
19188
 
19088
- # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#123
19189
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#130
19089
19190
  def build_kwargs(node); end
19090
19191
 
19091
19192
  # @return [Boolean]
19092
19193
  #
19093
- # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#119
19194
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#126
19094
19195
  def correct_arguments?(arguments); end
19095
19196
 
19096
- # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#140
19197
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#104
19198
+ def message(positional_argument_index, arg_value); end
19199
+
19200
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#147
19097
19201
  def override_by_legacy_args(kwargs, node); end
19098
19202
  end
19099
19203
 
19204
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#74
19205
+ RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_EOUTVAR = T.let(T.unsafe(nil), String)
19206
+
19100
19207
  # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#68
19101
- RuboCop::Cop::Lint::ErbNewArguments::MESSAGES = T.let(T.unsafe(nil), Array)
19208
+ RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_SAFE_LEVEL = T.let(T.unsafe(nil), String)
19102
19209
 
19103
- # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#80
19210
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#71
19211
+ RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_TRIM_MODE = T.let(T.unsafe(nil), String)
19212
+
19213
+ # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#78
19104
19214
  RuboCop::Cop::Lint::ErbNewArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
19105
19215
 
19106
19216
  # Looks for uses of flip-flop operator
@@ -20453,7 +20563,7 @@ class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base
20453
20563
  include ::RuboCop::Cop::RangeHelp
20454
20564
  extend ::RuboCop::Cop::AutoCorrector
20455
20565
 
20456
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#56
20566
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#58
20457
20567
  def each_unsafe_regexp_range(node); end
20458
20568
 
20459
20569
  # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37
@@ -20467,31 +20577,31 @@ class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base
20467
20577
 
20468
20578
  private
20469
20579
 
20470
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#72
20580
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#74
20471
20581
  def build_source_range(range_start, range_end); end
20472
20582
 
20473
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#76
20583
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#78
20474
20584
  def range_for(char); end
20475
20585
 
20476
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#82
20586
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#84
20477
20587
  def range_pairs(expr); end
20478
20588
 
20479
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#102
20480
- def rewrite_regexp_range(source); end
20589
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#104
20590
+ def regexp_range(source); end
20481
20591
 
20482
20592
  # @return [Boolean]
20483
20593
  #
20484
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#92
20594
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#94
20485
20595
  def skip_expression?(expr); end
20486
20596
 
20487
20597
  # @return [Boolean]
20488
20598
  #
20489
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#96
20599
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#98
20490
20600
  def skip_range?(range_start, range_end); end
20491
20601
 
20492
20602
  # @return [Boolean]
20493
20603
  #
20494
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#86
20604
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#88
20495
20605
  def unsafe_range?(range_start, range_end); end
20496
20606
  end
20497
20607
 
@@ -22468,21 +22578,21 @@ class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base
22468
22578
  include ::RuboCop::Cop::RangeHelp
22469
22579
  extend ::RuboCop::Cop::AutoCorrector
22470
22580
 
22471
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36
22581
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37
22472
22582
  def on_block(node); end
22473
22583
 
22474
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36
22584
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37
22475
22585
  def on_numblock(node); end
22476
22586
 
22477
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#57
22587
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#60
22478
22588
  def redundant_with_index?(param0 = T.unsafe(nil)); end
22479
22589
 
22480
22590
  private
22481
22591
 
22482
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#67
22592
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#70
22483
22593
  def message(node); end
22484
22594
 
22485
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#75
22595
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#78
22486
22596
  def with_index_range(send); end
22487
22597
  end
22488
22598
 
@@ -24501,7 +24611,7 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base
24501
24611
 
24502
24612
  # @return [Boolean]
24503
24613
  #
24504
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#194
24614
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#200
24505
24615
  def conditional_continue_keyword?(break_statement); end
24506
24616
 
24507
24617
  # @return [Boolean]
@@ -24511,7 +24621,7 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base
24511
24621
 
24512
24622
  # @return [Boolean]
24513
24623
  #
24514
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#184
24624
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#190
24515
24625
  def preceded_by_continue_statement?(break_statement); end
24516
24626
 
24517
24627
  # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#130
@@ -25874,6 +25984,11 @@ module RuboCop::Cop::MethodComplexity
25874
25984
  #
25875
25985
  # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#61
25876
25986
  def complexity(body); end
25987
+
25988
+ # @api private
25989
+ #
25990
+ # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#73
25991
+ def location(node); end
25877
25992
  end
25878
25993
 
25879
25994
  # Common code for cops that deal with preferred methods.
@@ -27492,43 +27607,66 @@ class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base
27492
27607
  extend ::RuboCop::Cop::AutoCorrector
27493
27608
  extend ::RuboCop::Cop::TargetRubyVersion
27494
27609
 
27495
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#55
27610
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54
27496
27611
  def on_def(node); end
27497
27612
 
27498
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#55
27613
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54
27499
27614
  def on_defs(node); end
27500
27615
 
27501
27616
  private
27502
27617
 
27503
27618
  # @return [Boolean]
27504
27619
  #
27505
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#95
27620
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#114
27506
27621
  def anonymous_block_argument?(node); end
27507
27622
 
27508
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#127
27623
+ # @return [Boolean]
27624
+ #
27625
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#87
27626
+ def block_argument_name_matched?(block_pass_node, last_argument); end
27627
+
27628
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#146
27509
27629
  def block_forwarding_name; end
27510
27630
 
27511
27631
  # @return [Boolean]
27512
27632
  #
27513
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#81
27633
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#77
27514
27634
  def expected_block_forwarding_style?(node, last_argument); end
27515
27635
 
27516
27636
  # @return [Boolean]
27517
27637
  #
27518
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#99
27638
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#118
27519
27639
  def explicit_block_argument?(node); end
27520
27640
 
27521
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#103
27641
+ # Prevents the following syntax error:
27642
+ #
27643
+ # # foo.rb
27644
+ # def foo(&)
27645
+ # block_method do
27646
+ # bar(&)
27647
+ # end
27648
+ # end
27649
+ #
27650
+ # $ ruby -vc foo.rb
27651
+ # ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-darwin22]
27652
+ # foo.rb: foo.rb:4: anonymous block parameter is also used within block (SyntaxError)
27653
+ #
27654
+ # @return [Boolean]
27655
+ #
27656
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#106
27657
+ def invalidates_syntax?(block_pass_node); end
27658
+
27659
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#122
27522
27660
  def register_offense(block_argument, node); end
27523
27661
 
27524
27662
  # @return [Boolean]
27525
27663
  #
27526
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#119
27664
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#138
27527
27665
  def use_block_argument_as_local_variable?(node, last_argument); end
27528
27666
 
27529
27667
  # @return [Boolean]
27530
27668
  #
27531
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#91
27669
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#110
27532
27670
  def use_kwarg_in_method_definition?(node); end
27533
27671
 
27534
27672
  class << self
@@ -27754,8 +27892,6 @@ class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Base
27754
27892
  # source://rubocop//lib/rubocop/cop/naming/file_name.rb#165
27755
27893
  def find_definition(node); end
27756
27894
 
27757
- # @yield [source_range(processed_source.buffer, 1, 0), msg]
27758
- #
27759
27895
  # source://rubocop//lib/rubocop/cop/naming/file_name.rb#65
27760
27896
  def for_bad_filename(file_path); end
27761
27897
 
@@ -28007,13 +28143,13 @@ class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
28007
28143
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#126
28008
28144
  def check_token?(type); end
28009
28145
 
28010
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#244
28146
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#243
28011
28147
  def create_message(word, message = T.unsafe(nil)); end
28012
28148
 
28013
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#218
28149
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#217
28014
28150
  def create_multiple_word_message_for_file(words); end
28015
28151
 
28016
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#214
28152
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#213
28017
28153
  def create_single_word_message_for_file(word); end
28018
28154
 
28019
28155
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#189
@@ -28022,10 +28158,10 @@ class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
28022
28158
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#160
28023
28159
  def extract_regexp(term, term_definition); end
28024
28160
 
28025
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#252
28161
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#251
28026
28162
  def find_flagged_term(word); end
28027
28163
 
28028
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#266
28164
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#265
28029
28165
  def format_suggestions(suggestions); end
28030
28166
 
28031
28167
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#197
@@ -28034,10 +28170,10 @@ class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
28034
28170
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#100
28035
28171
  def investigate_tokens; end
28036
28172
 
28037
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#232
28173
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#231
28038
28174
  def mask_input(str); end
28039
28175
 
28040
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#281
28176
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#280
28041
28177
  def offense_range(token, word); end
28042
28178
 
28043
28179
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#130
@@ -28046,13 +28182,13 @@ class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
28046
28182
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#144
28047
28183
  def preprocess_flagged_terms; end
28048
28184
 
28049
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#259
28185
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#258
28050
28186
  def preprocess_suggestions(suggestions); end
28051
28187
 
28052
28188
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#179
28053
28189
  def process_allowed_regex(allowed); end
28054
28190
 
28055
- # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#222
28191
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#221
28056
28192
  def scan_for_words(input); end
28057
28193
 
28058
28194
  # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#174
@@ -30517,6 +30653,17 @@ module RuboCop::Cop::Style; end
30517
30653
  # EnforcedStyle config covers only method definitions.
30518
30654
  # Applications of visibility methods to symbols can be controlled
30519
30655
  # using AllowModifiersOnSymbols config.
30656
+ # Also, the visibility of `attr*` methods can be controlled using
30657
+ # AllowModifiersOnAttrs config.
30658
+ #
30659
+ # In Ruby 3.0, `attr*` methods now return an array of defined method names
30660
+ # as symbols. So we can write the modifier and `attr*` in inline style.
30661
+ # AllowModifiersOnAttrs config allows `attr*` methods to be written in
30662
+ # inline style without modifying applications that have been maintained
30663
+ # for a long time in group style. Furthermore, developers who are not very
30664
+ # familiar with Ruby may know that the modifier applies to `def`, but they
30665
+ # may not know that it also applies to `attr*` methods. It would be easier
30666
+ # to understand if we could write `attr*` methods in inline style.
30520
30667
  #
30521
30668
  # @example EnforcedStyle: group (default)
30522
30669
  # # bad
@@ -30568,94 +30715,128 @@ module RuboCop::Cop::Style; end
30568
30715
  # private :bar, :baz
30569
30716
  #
30570
30717
  # end
30718
+ # @example AllowModifiersOnAttrs: true (default)
30719
+ # # good
30720
+ # class Foo
30721
+ #
30722
+ # public attr_reader :bar
30723
+ # protected attr_writer :baz
30724
+ # private attr_accessor :qux
30725
+ # private attr :quux
30726
+ #
30727
+ # def public_method; end
30728
+ #
30729
+ # private
30730
+ #
30731
+ # def private_method; end
30732
+ #
30733
+ # end
30734
+ # @example AllowModifiersOnAttrs: false
30735
+ # # bad
30736
+ # class Foo
30737
+ #
30738
+ # public attr_reader :bar
30739
+ # protected attr_writer :baz
30740
+ # private attr_accessor :qux
30741
+ # private attr :quux
30742
+ #
30743
+ # end
30571
30744
  #
30572
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#70
30745
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#109
30573
30746
  class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base
30574
30747
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
30575
30748
  include ::RuboCop::Cop::RangeHelp
30576
30749
  extend ::RuboCop::Cop::AutoCorrector
30577
30750
 
30578
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#91
30751
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#135
30752
+ def access_modifier_with_attr?(param0 = T.unsafe(nil)); end
30753
+
30754
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#130
30579
30755
  def access_modifier_with_symbol?(param0 = T.unsafe(nil)); end
30580
30756
 
30581
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#95
30757
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#140
30582
30758
  def on_send(node); end
30583
30759
 
30584
30760
  private
30585
30761
 
30586
30762
  # @return [Boolean]
30587
30763
  #
30588
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#145
30764
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#195
30589
30765
  def access_modifier_is_inlined?(node); end
30590
30766
 
30591
30767
  # @return [Boolean]
30592
30768
  #
30593
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#149
30769
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#199
30594
30770
  def access_modifier_is_not_inlined?(node); end
30595
30771
 
30596
30772
  # @return [Boolean]
30597
30773
  #
30598
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#127
30774
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#177
30775
+ def allow_modifiers_on_attrs?(node); end
30776
+
30777
+ # @return [Boolean]
30778
+ #
30779
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#173
30599
30780
  def allow_modifiers_on_symbols?(node); end
30600
30781
 
30601
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#112
30782
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#158
30602
30783
  def autocorrect(corrector, node); end
30603
30784
 
30604
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#219
30785
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#269
30605
30786
  def def_source(node, def_node); end
30606
30787
 
30607
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#180
30788
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#230
30608
30789
  def find_argument_less_modifier_node(node); end
30609
30790
 
30610
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#169
30791
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#219
30611
30792
  def find_corresponding_def_node(node); end
30612
30793
 
30613
30794
  # @return [Boolean]
30614
30795
  #
30615
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#137
30796
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#187
30616
30797
  def group_style?; end
30617
30798
 
30618
30799
  # @return [Boolean]
30619
30800
  #
30620
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#141
30801
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#191
30621
30802
  def inline_style?; end
30622
30803
 
30623
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#211
30804
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#261
30624
30805
  def insert_inline_modifier(corrector, node, modifier_name); end
30625
30806
 
30626
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#159
30807
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#209
30627
30808
  def message(range); end
30628
30809
 
30629
30810
  # @return [Boolean]
30630
30811
  #
30631
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#131
30812
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#181
30632
30813
  def offense?(node); end
30633
30814
 
30634
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#215
30815
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#265
30635
30816
  def remove_node(corrector, node); end
30636
30817
 
30637
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#194
30818
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#244
30638
30819
  def replace_def(corrector, node, def_node); end
30639
30820
 
30640
30821
  # @return [Boolean]
30641
30822
  #
30642
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#153
30823
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#203
30643
30824
  def right_siblings_same_inline_method?(node); end
30644
30825
 
30645
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#188
30826
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#238
30646
30827
  def select_grouped_def_nodes(node); end
30647
30828
  end
30648
30829
 
30649
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#88
30830
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#127
30650
30831
  RuboCop::Cop::Style::AccessModifierDeclarations::ALLOWED_NODE_TYPES = T.let(T.unsafe(nil), Array)
30651
30832
 
30652
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#76
30833
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#115
30653
30834
  RuboCop::Cop::Style::AccessModifierDeclarations::GROUP_STYLE_MESSAGE = T.let(T.unsafe(nil), String)
30654
30835
 
30655
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#81
30836
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#120
30656
30837
  RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.unsafe(nil), String)
30657
30838
 
30658
- # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#86
30839
+ # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#125
30659
30840
  RuboCop::Cop::Style::AccessModifierDeclarations::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
30660
30841
 
30661
30842
  # Checks for grouping of accessors in `class` and `module` bodies.
@@ -30799,7 +30980,7 @@ class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Base
30799
30980
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
30800
30981
  extend ::RuboCop::Cop::AutoCorrector
30801
30982
 
30802
- # source://rubocop//lib/rubocop/cop/style/alias.rb#51
30983
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#52
30803
30984
  def on_alias(node); end
30804
30985
 
30805
30986
  # source://rubocop//lib/rubocop/cop/style/alias.rb#41
@@ -30807,47 +30988,47 @@ class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Base
30807
30988
 
30808
30989
  private
30809
30990
 
30810
- # source://rubocop//lib/rubocop/cop/style/alias.rb#85
30991
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#86
30811
30992
  def add_offense_for_args(node, &block); end
30812
30993
 
30813
30994
  # @return [Boolean]
30814
30995
  #
30815
- # source://rubocop//lib/rubocop/cop/style/alias.rb#75
30996
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#76
30816
30997
  def alias_keyword_possible?(node); end
30817
30998
 
30818
30999
  # @return [Boolean]
30819
31000
  #
30820
- # source://rubocop//lib/rubocop/cop/style/alias.rb#79
31001
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#80
30821
31002
  def alias_method_possible?(node); end
30822
31003
 
30823
- # source://rubocop//lib/rubocop/cop/style/alias.rb#65
31004
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#66
30824
31005
  def autocorrect(corrector, node); end
30825
31006
 
30826
31007
  # @return [Boolean]
30827
31008
  #
30828
- # source://rubocop//lib/rubocop/cop/style/alias.rb#124
31009
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#125
30829
31010
  def bareword?(sym_node); end
30830
31011
 
30831
- # source://rubocop//lib/rubocop/cop/style/alias.rb#128
31012
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#129
30832
31013
  def correct_alias_method_to_alias(corrector, send_node); end
30833
31014
 
30834
- # source://rubocop//lib/rubocop/cop/style/alias.rb#135
31015
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#136
30835
31016
  def correct_alias_to_alias_method(corrector, node); end
30836
31017
 
30837
- # source://rubocop//lib/rubocop/cop/style/alias.rb#142
31018
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#143
30838
31019
  def correct_alias_with_symbol_args(corrector, node); end
30839
31020
 
30840
- # source://rubocop//lib/rubocop/cop/style/alias.rb#147
31021
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#148
30841
31022
  def identifier(node); end
30842
31023
 
30843
- # source://rubocop//lib/rubocop/cop/style/alias.rb#113
31024
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#114
30844
31025
  def lexical_scope_type(node); end
30845
31026
 
30846
31027
  # In this expression, will `self` be the same as the innermost enclosing
30847
31028
  # class or module block (:lexical)? Or will it be something else
30848
31029
  # (:dynamic)? If we're in an instance_eval block, return that.
30849
31030
  #
30850
- # source://rubocop//lib/rubocop/cop/style/alias.rb#96
31031
+ # source://rubocop//lib/rubocop/cop/style/alias.rb#97
30851
31032
  def scope_type(node); end
30852
31033
  end
30853
31034
 
@@ -30992,6 +31173,8 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
30992
31173
  #
30993
31174
  # Names not on this list are likely to be meaningful and are allowed by default.
30994
31175
  #
31176
+ # This cop handles not only method forwarding but also forwarding to `super`.
31177
+ #
30995
31178
  # @example RedundantBlockArgumentNames: ['blk', 'block', 'proc'] (default)
30996
31179
  # # bad - But it is good with `EnforcedStyle: explicit` set for `Naming/BlockForwarding`.
30997
31180
  # def foo(&block)
@@ -31079,222 +31262,222 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
31079
31262
  # bar(...)
31080
31263
  # end
31081
31264
  #
31082
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#125
31265
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#127
31083
31266
  class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
31084
31267
  include ::RuboCop::Cop::RangeHelp
31085
31268
  extend ::RuboCop::Cop::AutoCorrector
31086
31269
  extend ::RuboCop::Cop::TargetRubyVersion
31087
31270
 
31088
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#144
31271
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#146
31089
31272
  def on_def(node); end
31090
31273
 
31091
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#144
31274
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#146
31092
31275
  def on_defs(node); end
31093
31276
 
31094
31277
  private
31095
31278
 
31096
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#185
31279
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#187
31097
31280
  def add_forward_all_offenses(node, send_classifications, forwardable_args); end
31098
31281
 
31099
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#350
31282
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#353
31100
31283
  def add_parens_if_missing(node, corrector); end
31101
31284
 
31102
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#212
31285
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#214
31103
31286
  def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end
31104
31287
 
31105
31288
  # @return [Boolean]
31106
31289
  #
31107
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#342
31290
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#345
31108
31291
  def allow_only_rest_arguments?; end
31109
31292
 
31110
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#334
31293
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#337
31111
31294
  def arguments_range(node, first_node); end
31112
31295
 
31113
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#263
31296
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#265
31114
31297
  def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end
31115
31298
 
31116
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#248
31299
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#250
31117
31300
  def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end
31118
31301
 
31119
31302
  # @return [Boolean]
31120
31303
  #
31121
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#494
31304
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#497
31122
31305
  def explicit_block_name?; end
31123
31306
 
31124
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#168
31307
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#170
31125
31308
  def extract_forwardable_args(args); end
31126
31309
 
31127
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#238
31310
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#240
31128
31311
  def non_splat_or_block_pass_lvar_references(body); end
31129
31312
 
31130
31313
  # @return [Boolean]
31131
31314
  #
31132
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#180
31315
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#182
31133
31316
  def only_forwards_all?(send_classifications); end
31134
31317
 
31135
31318
  # @return [Boolean]
31136
31319
  #
31137
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#292
31320
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#294
31138
31321
  def outside_block?(node); end
31139
31322
 
31140
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#172
31323
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#174
31141
31324
  def redundant_forwardable_named_args(restarg, kwrestarg, blockarg); end
31142
31325
 
31143
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#282
31326
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#284
31144
31327
  def redundant_named_arg(arg, config_name, keyword); end
31145
31328
 
31146
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#324
31329
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#327
31147
31330
  def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end
31148
31331
 
31149
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#298
31332
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#300
31150
31333
  def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end
31151
31334
 
31152
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#314
31335
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#316
31153
31336
  def register_forward_block_arg_offense(add_parens, def_arguments_or_send, block_arg); end
31154
31337
 
31155
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#306
31338
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#308
31156
31339
  def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end
31157
31340
 
31158
31341
  # @return [Boolean]
31159
31342
  #
31160
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#346
31343
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#349
31161
31344
  def use_anonymous_forwarding?; end
31162
31345
 
31163
31346
  class << self
31164
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#140
31347
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#142
31165
31348
  def autocorrect_incompatible_with; end
31166
31349
  end
31167
31350
  end
31168
31351
 
31169
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#133
31352
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#135
31170
31353
  RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array)
31171
31354
 
31172
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#136
31355
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#138
31173
31356
  RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String)
31174
31357
 
31175
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#138
31358
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#140
31176
31359
  RuboCop::Cop::Style::ArgumentsForwarding::BLOCK_MSG = T.let(T.unsafe(nil), String)
31177
31360
 
31178
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#132
31361
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#134
31179
31362
  RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array)
31180
31363
 
31181
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#135
31364
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#137
31182
31365
  RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String)
31183
31366
 
31184
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#137
31367
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#139
31185
31368
  RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String)
31186
31369
 
31187
31370
  # Classifies send nodes for possible rest/kwrest/all (including block) forwarding.
31188
31371
  #
31189
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#357
31372
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#360
31190
31373
  class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier
31191
31374
  extend ::RuboCop::AST::NodePattern::Macros
31192
31375
 
31193
31376
  # @return [SendNodeClassifier] a new instance of SendNodeClassifier
31194
31377
  #
31195
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#369
31378
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#372
31196
31379
  def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end
31197
31380
 
31198
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#397
31381
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#400
31199
31382
  def classification; end
31200
31383
 
31201
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#364
31384
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367
31202
31385
  def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end
31203
31386
 
31204
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#391
31387
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#394
31205
31388
  def forwarded_block_arg; end
31206
31389
 
31207
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367
31390
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#370
31208
31391
  def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end
31209
31392
 
31210
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#385
31393
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#388
31211
31394
  def forwarded_kwrest_arg; end
31212
31395
 
31213
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#379
31396
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#382
31214
31397
  def forwarded_rest_arg; end
31215
31398
 
31216
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#361
31399
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#364
31217
31400
  def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end
31218
31401
 
31219
31402
  private
31220
31403
 
31221
31404
  # @return [Boolean]
31222
31405
  #
31223
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#465
31406
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#468
31224
31407
  def additional_kwargs?; end
31225
31408
 
31226
31409
  # @return [Boolean]
31227
31410
  #
31228
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#461
31411
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#464
31229
31412
  def additional_kwargs_or_forwarded_kwargs?; end
31230
31413
 
31231
31414
  # @return [Boolean]
31232
31415
  #
31233
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#475
31416
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#478
31234
31417
  def allow_offense_for_no_block?; end
31235
31418
 
31236
31419
  # @return [Boolean]
31237
31420
  #
31238
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#446
31421
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#449
31239
31422
  def any_arg_referenced?; end
31240
31423
 
31241
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#430
31424
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#433
31242
31425
  def arguments; end
31243
31426
 
31244
31427
  # @return [Boolean]
31245
31428
  #
31246
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#409
31429
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#412
31247
31430
  def can_forward_all?; end
31248
31431
 
31249
31432
  # @return [Boolean]
31250
31433
  #
31251
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#469
31434
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#472
31252
31435
  def forward_additional_kwargs?; end
31253
31436
 
31254
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#426
31437
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#429
31255
31438
  def forwarded_rest_and_kwrest_args; end
31256
31439
 
31257
31440
  # @return [Boolean]
31258
31441
  #
31259
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#488
31442
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#491
31260
31443
  def missing_rest_arg_or_kwrest_arg?; end
31261
31444
 
31262
31445
  # @return [Boolean]
31263
31446
  #
31264
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#479
31447
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#482
31265
31448
  def no_additional_args?; end
31266
31449
 
31267
31450
  # @return [Boolean]
31268
31451
  #
31269
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#454
31452
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#457
31270
31453
  def no_post_splat_args?; end
31271
31454
 
31272
31455
  # @return [Boolean]
31273
31456
  #
31274
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#422
31457
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#425
31275
31458
  def offensive_block_forwarding?; end
31276
31459
 
31277
31460
  # @return [Boolean]
31278
31461
  #
31279
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#442
31462
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#445
31280
31463
  def referenced_block_arg?; end
31281
31464
 
31282
31465
  # @return [Boolean]
31283
31466
  #
31284
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#438
31467
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#441
31285
31468
  def referenced_kwrest_arg?; end
31286
31469
 
31287
31470
  # @return [Boolean]
31288
31471
  #
31289
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#434
31472
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#437
31290
31473
  def referenced_rest_arg?; end
31291
31474
 
31292
31475
  # @return [Boolean]
31293
31476
  #
31294
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#418
31477
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#421
31295
31478
  def ruby_32_missing_rest_or_kwest?; end
31296
31479
 
31297
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#450
31480
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#453
31298
31481
  def target_ruby_version; end
31299
31482
  end
31300
31483
 
@@ -32892,9 +33075,7 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
32892
33075
  # @example
32893
33076
  # # bad
32894
33077
  # array.reject(&:nil?)
32895
- # array.delete_if(&:nil?)
32896
33078
  # array.reject { |e| e.nil? }
32897
- # array.delete_if { |e| e.nil? }
32898
33079
  # array.select { |e| !e.nil? }
32899
33080
  # array.grep_v(nil)
32900
33081
  # array.grep_v(NilClass)
@@ -32904,7 +33085,9 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
32904
33085
  #
32905
33086
  # # bad
32906
33087
  # hash.reject!(&:nil?)
33088
+ # array.delete_if(&:nil?)
32907
33089
  # hash.reject! { |k, v| v.nil? }
33090
+ # array.delete_if { |e| e.nil? }
32908
33091
  # hash.select! { |k, v| !v.nil? }
32909
33092
  #
32910
33093
  # # good
@@ -34062,36 +34245,36 @@ class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base
34062
34245
 
34063
34246
  private
34064
34247
 
34065
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#47
34248
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#45
34249
+ def autocorrect(corrector); end
34250
+
34251
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#56
34066
34252
  def autocorrect_notice; end
34067
34253
 
34068
34254
  # @return [Boolean]
34069
34255
  #
34070
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#78
34256
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#86
34071
34257
  def encoding_token?(processed_source, token_index); end
34072
34258
 
34073
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#64
34259
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#72
34074
34260
  def insert_notice_before(processed_source); end
34075
34261
 
34076
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#43
34262
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#52
34077
34263
  def notice; end
34078
34264
 
34079
34265
  # @return [Boolean]
34080
34266
  #
34081
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#85
34267
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#93
34082
34268
  def notice_found?(processed_source); end
34083
34269
 
34084
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#51
34085
- def offense_range; end
34086
-
34087
34270
  # @return [Boolean]
34088
34271
  #
34089
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#71
34272
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#79
34090
34273
  def shebang_token?(processed_source, token_index); end
34091
34274
 
34092
34275
  # @raise [Warning]
34093
34276
  #
34094
- # source://rubocop//lib/rubocop/cop/style/copyright.rb#55
34277
+ # source://rubocop//lib/rubocop/cop/style/copyright.rb#60
34095
34278
  def verify_autocorrect_notice!; end
34096
34279
  end
34097
34280
 
@@ -34754,34 +34937,52 @@ RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String)
34754
34937
  # def do_something
34755
34938
  # end
34756
34939
  # end
34940
+ # @example AllowedMethods: ['method_missing', 'respond_to_missing?']
34941
+ #
34942
+ # # good
34943
+ # class Foo
34944
+ # def method_missing(name, *args)
34945
+ # end
34946
+ #
34947
+ # def respond_to_missing?(symbol, include_private)
34948
+ # end
34949
+ # end
34757
34950
  #
34758
- # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#98
34951
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109
34759
34952
  class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base
34760
34953
  include ::RuboCop::Cop::DocumentationComment
34761
34954
  include ::RuboCop::Cop::VisibilityHelp
34762
34955
  include ::RuboCop::Cop::DefNode
34763
34956
 
34764
- # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#105
34957
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#116
34765
34958
  def modifier_node?(param0 = T.unsafe(nil)); end
34766
34959
 
34767
- # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109
34960
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120
34768
34961
  def on_def(node); end
34769
34962
 
34770
- # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109
34963
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120
34771
34964
  def on_defs(node); end
34772
34965
 
34773
34966
  private
34774
34967
 
34775
- # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#119
34968
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#146
34969
+ def allowed_methods; end
34970
+
34971
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#130
34776
34972
  def check(node); end
34777
34973
 
34778
34974
  # @return [Boolean]
34779
34975
  #
34780
- # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#126
34976
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#142
34977
+ def method_allowed?(node); end
34978
+
34979
+ # @return [Boolean]
34980
+ #
34981
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#138
34781
34982
  def require_for_non_public_methods?; end
34782
34983
  end
34783
34984
 
34784
- # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#102
34985
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#113
34785
34986
  RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String)
34786
34987
 
34787
34988
  # Detects double disable comments on one line. This is mostly to catch
@@ -35814,19 +36015,19 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base
35814
36015
 
35815
36016
  private
35816
36017
 
35817
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#184
36018
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#186
35818
36019
  def add_offense_for_different_line(node, line_node, line_diff); end
35819
36020
 
35820
36021
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#131
35821
36022
  def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end
35822
36023
 
35823
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#199
36024
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#201
35824
36025
  def add_offense_for_missing_line(node, code); end
35825
36026
 
35826
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#206
36027
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#208
35827
36028
  def add_offense_for_missing_location(node, code); end
35828
36029
 
35829
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#178
36030
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#180
35830
36031
  def add_offense_for_same_line(node, line_node); end
35831
36032
 
35832
36033
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#143
@@ -35838,16 +36039,16 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base
35838
36039
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#95
35839
36040
  def check_location(node, code); end
35840
36041
 
35841
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#191
36042
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#193
35842
36043
  def expected_line(sign, line_diff); end
35843
36044
 
35844
36045
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#122
35845
36046
  def file_and_line(node); end
35846
36047
 
35847
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#166
36048
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#168
35848
36049
  def line_difference(line_node, code); end
35849
36050
 
35850
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#218
36051
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#220
35851
36052
  def missing_line(node, code); end
35852
36053
 
35853
36054
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#109
@@ -35863,7 +36064,7 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base
35863
36064
  # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#118
35864
36065
  def special_line_keyword?(node); end
35865
36066
 
35866
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#170
36067
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#172
35867
36068
  def string_first_line(str_node); end
35868
36069
 
35869
36070
  # @return [Boolean]
@@ -35958,10 +36159,10 @@ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base
35958
36159
 
35959
36160
  # @return [Boolean]
35960
36161
  #
35961
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#56
36162
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#57
35962
36163
  def exact_match_pattern?(parsed_regexp); end
35963
36164
 
35964
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#63
36165
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#64
35965
36166
  def new_method(node); end
35966
36167
  end
35967
36168
 
@@ -36723,25 +36924,25 @@ RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String)
36723
36924
  #
36724
36925
  # @example EnforcedStyle: format (default)
36725
36926
  # # bad
36726
- # puts sprintf('%10s', 'hoge')
36727
- # puts '%10s' % 'hoge'
36927
+ # puts sprintf('%10s', 'foo')
36928
+ # puts '%10s' % 'foo'
36728
36929
  #
36729
36930
  # # good
36730
- # puts format('%10s', 'hoge')
36931
+ # puts format('%10s', 'foo')
36731
36932
  # @example EnforcedStyle: sprintf
36732
36933
  # # bad
36733
- # puts format('%10s', 'hoge')
36734
- # puts '%10s' % 'hoge'
36934
+ # puts format('%10s', 'foo')
36935
+ # puts '%10s' % 'foo'
36735
36936
  #
36736
36937
  # # good
36737
- # puts sprintf('%10s', 'hoge')
36938
+ # puts sprintf('%10s', 'foo')
36738
36939
  # @example EnforcedStyle: percent
36739
36940
  # # bad
36740
- # puts format('%10s', 'hoge')
36741
- # puts sprintf('%10s', 'hoge')
36941
+ # puts format('%10s', 'foo')
36942
+ # puts sprintf('%10s', 'foo')
36742
36943
  #
36743
36944
  # # good
36744
- # puts '%10s' % 'hoge'
36945
+ # puts '%10s' % 'foo'
36745
36946
  #
36746
36947
  # source://rubocop//lib/rubocop/cop/style/format_string.rb#50
36747
36948
  class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Base
@@ -37807,10 +38008,12 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String)
37807
38008
  # * never - forces use of explicit hash literal value
37808
38009
  # * either - accepts both shorthand and explicit use of hash literal value
37809
38010
  # * consistent - forces use of the 3.1 syntax only if all values can be omitted in the hash
38011
+ # * either_consistent - accepts both shorthand and explicit use of hash literal value,
38012
+ # but they must be consistent
37810
38013
  #
37811
- # @example EnforcedShorthandSyntax: consistent
38014
+ # @example EnforcedShorthandSyntax: either_consistent
37812
38015
  #
37813
- # # bad - `foo` and `bar` values can be omitted
38016
+ # # good - `foo` and `bar` values can be omitted, but they are consistent, so it's accepted
37814
38017
  # {foo: foo, bar: bar}
37815
38018
  #
37816
38019
  # # bad - `bar` value can be omitted
@@ -37871,6 +38074,22 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String)
37871
38074
  #
37872
38075
  # # good
37873
38076
  # {foo:, bar:}
38077
+ # @example EnforcedShorthandSyntax: consistent
38078
+ #
38079
+ # # bad - `foo` and `bar` values can be omitted
38080
+ # {foo: foo, bar: bar}
38081
+ #
38082
+ # # bad - `bar` value can be omitted
38083
+ # {foo:, bar: bar}
38084
+ #
38085
+ # # bad - mixed syntaxes
38086
+ # {foo:, bar: baz}
38087
+ #
38088
+ # # good
38089
+ # {foo:, bar:}
38090
+ #
38091
+ # # good - can't omit `baz`
38092
+ # {foo: foo, bar: baz}
37874
38093
  # @example EnforcedStyle: ruby19 (default)
37875
38094
  # # bad
37876
38095
  # {:a => 2}
@@ -37881,84 +38100,84 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String)
37881
38100
  # {:c => 2, 'd' => 2} # acceptable since 'd' isn't a symbol
37882
38101
  # {d: 1, 'e' => 2} # technically not forbidden
37883
38102
  #
37884
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#113
38103
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#131
37885
38104
  class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base
37886
38105
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
37887
38106
  include ::RuboCop::Cop::HashShorthandSyntax
37888
38107
  include ::RuboCop::Cop::RangeHelp
37889
38108
  extend ::RuboCop::Cop::AutoCorrector
37890
38109
 
37891
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#167
38110
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#185
37892
38111
  def alternative_style; end
37893
38112
 
37894
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#145
38113
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#163
37895
38114
  def hash_rockets_check(pairs); end
37896
38115
 
37897
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#159
38116
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#177
37898
38117
  def no_mixed_keys_check(pairs); end
37899
38118
 
37900
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#123
38119
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#141
37901
38120
  def on_hash(node); end
37902
38121
 
37903
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#141
38122
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#159
37904
38123
  def ruby19_check(pairs); end
37905
38124
 
37906
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#149
38125
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#167
37907
38126
  def ruby19_no_mixed_keys_check(pairs); end
37908
38127
 
37909
38128
  private
37910
38129
 
37911
38130
  # @return [Boolean]
37912
38131
  #
37913
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#199
38132
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#217
37914
38133
  def acceptable_19_syntax_symbol?(sym_name); end
37915
38134
 
37916
38135
  # @return [Boolean]
37917
38136
  #
37918
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#256
38137
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#274
37919
38138
  def argument_without_space?(node); end
37920
38139
 
37921
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#178
38140
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#196
37922
38141
  def autocorrect(corrector, node); end
37923
38142
 
37924
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#260
38143
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#278
37925
38144
  def autocorrect_hash_rockets(corrector, pair_node); end
37926
38145
 
37927
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#269
38146
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#287
37928
38147
  def autocorrect_no_mixed_keys(corrector, pair_node); end
37929
38148
 
37930
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#235
38149
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#253
37931
38150
  def autocorrect_ruby19(corrector, pair_node); end
37932
38151
 
37933
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#220
38152
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#238
37934
38153
  def check(pairs, delim, msg); end
37935
38154
 
37936
38155
  # @return [Boolean]
37937
38156
  #
37938
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#277
38157
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#295
37939
38158
  def force_hash_rockets?(pairs); end
37940
38159
 
37941
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#248
38160
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#266
37942
38161
  def range_for_autocorrect_ruby19(pair_node); end
37943
38162
 
37944
38163
  # @return [Boolean]
37945
38164
  #
37946
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#188
38165
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#206
37947
38166
  def sym_indices?(pairs); end
37948
38167
 
37949
38168
  # @return [Boolean]
37950
38169
  #
37951
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#192
38170
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#210
37952
38171
  def word_symbol_pair?(pair); end
37953
38172
  end
37954
38173
 
37955
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#119
38174
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#137
37956
38175
  RuboCop::Cop::Style::HashSyntax::MSG_19 = T.let(T.unsafe(nil), String)
37957
38176
 
37958
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#121
38177
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#139
37959
38178
  RuboCop::Cop::Style::HashSyntax::MSG_HASH_ROCKETS = T.let(T.unsafe(nil), String)
37960
38179
 
37961
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#120
38180
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#138
37962
38181
  RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String)
37963
38182
 
37964
38183
  # Looks for uses of `\_.each_with_object({}) {...}`,
@@ -38603,7 +38822,7 @@ class RuboCop::Cop::Style::IfWithBooleanLiteralBranches < ::RuboCop::Cop::Base
38603
38822
 
38604
38823
  # @return [Boolean]
38605
38824
  #
38606
- # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#134
38825
+ # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#136
38607
38826
  def assume_boolean_value?(condition); end
38608
38827
 
38609
38828
  # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#114
@@ -38619,20 +38838,20 @@ class RuboCop::Cop::Style::IfWithBooleanLiteralBranches < ::RuboCop::Cop::Base
38619
38838
 
38620
38839
  # @return [Boolean]
38621
38840
  #
38622
- # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#151
38841
+ # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#153
38623
38842
  def opposite_condition?(node); end
38624
38843
 
38625
- # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#141
38844
+ # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#143
38626
38845
  def replacement_condition(node, condition); end
38627
38846
 
38628
38847
  # @return [Boolean]
38629
38848
  #
38630
- # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#156
38849
+ # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#158
38631
38850
  def require_parentheses?(condition); end
38632
38851
 
38633
38852
  # @return [Boolean]
38634
38853
  #
38635
- # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#120
38854
+ # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#122
38636
38855
  def return_boolean_value?(condition); end
38637
38856
  end
38638
38857
 
@@ -39687,6 +39906,109 @@ end
39687
39906
  # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#43
39688
39907
  RuboCop::Cop::Style::MapCompactWithConditionalBlock::MSG = T.let(T.unsafe(nil), String)
39689
39908
 
39909
+ # Checks for usages of `each` with `<<`, `push`, or `append` which
39910
+ # can be replaced by `map`.
39911
+ #
39912
+ # If `PreferredMethods` is configured for `map` in `Style/CollectionMethods`,
39913
+ # this cop uses the specified method for replacement.
39914
+ #
39915
+ # NOTE: The return value of `Enumerable#each` is `self`, whereas the
39916
+ # return value of `Enumerable#map` is an `Array`. They are not autocorrected
39917
+ # when a return value could be used because these types differ.
39918
+ #
39919
+ # NOTE: It only detects when the mapping destination is a local variable
39920
+ # initialized as an empty array and referred to only by the pushing operation.
39921
+ # This is because, if not, it's challenging to statically guarantee that the
39922
+ # mapping destination variable remains an empty array:
39923
+ #
39924
+ # [source,ruby]
39925
+ # ----
39926
+ # ret = []
39927
+ # src.each { |e| ret << e * 2 } # `<<` method may mutate `ret`
39928
+ #
39929
+ # dest = []
39930
+ # src.each { |e| dest << transform(e, dest) } # `transform` method may mutate `dest`
39931
+ # ----
39932
+ #
39933
+ # @example
39934
+ # # bad
39935
+ # dest = []
39936
+ # src.each { |e| dest << e * 2 }
39937
+ # dest
39938
+ #
39939
+ # # good
39940
+ # dest = src.map { |e| e * 2 }
39941
+ #
39942
+ # # good - contains another operation
39943
+ # dest = []
39944
+ # src.each { |e| dest << e * 2; puts e }
39945
+ # dest
39946
+ #
39947
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#50
39948
+ class RuboCop::Cop::Style::MapIntoArray < ::RuboCop::Cop::Base
39949
+ include ::RuboCop::Cop::RangeHelp
39950
+ extend ::RuboCop::Cop::AutoCorrector
39951
+
39952
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#75
39953
+ def after_leaving_scope(scope, _variable_table); end
39954
+
39955
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#57
39956
+ def each_block_with_push?(param0 = T.unsafe(nil)); end
39957
+
39958
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#66
39959
+ def empty_array_asgn?(param0 = T.unsafe(nil)); end
39960
+
39961
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#69
39962
+ def lvar_ref?(param0 = T.unsafe(nil), param1); end
39963
+
39964
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#79
39965
+ def on_block(node); end
39966
+
39967
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#79
39968
+ def on_numblock(node); end
39969
+
39970
+ private
39971
+
39972
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#155
39973
+ def correct_push_node(corrector, push_node); end
39974
+
39975
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#163
39976
+ def correct_return_value_handling(corrector, block, dest_var); end
39977
+
39978
+ # @return [Boolean]
39979
+ #
39980
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#108
39981
+ def dest_used_only_for_mapping?(block, dest_var, asgn); end
39982
+
39983
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#102
39984
+ def find_closest_assignment(block, dest_var); end
39985
+
39986
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#94
39987
+ def find_dest_var(block); end
39988
+
39989
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#127
39990
+ def new_method_name; end
39991
+
39992
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#116
39993
+ def register_offense(block, dest_var, asgn); end
39994
+
39995
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#148
39996
+ def remove_assignment(corrector, asgn); end
39997
+
39998
+ # @return [Boolean]
39999
+ #
40000
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#133
40001
+ def return_value_used?(node); end
40002
+
40003
+ class << self
40004
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#71
40005
+ def joining_forces; end
40006
+ end
40007
+ end
40008
+
40009
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#54
40010
+ RuboCop::Cop::Style::MapIntoArray::MSG = T.let(T.unsafe(nil), String)
40011
+
39690
40012
  # Looks for uses of `map.to_h` or `collect.to_h` that could be
39691
40013
  # written with just `to_h` in Ruby >= 2.6.
39692
40014
  #
@@ -42940,16 +43262,16 @@ class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base
42940
43262
  include ::RuboCop::Cop::AllowedPattern
42941
43263
  extend ::RuboCop::Cop::AutoCorrector
42942
43264
 
42943
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#166
43265
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#174
42944
43266
  def comparison(param0 = T.unsafe(nil)); end
42945
43267
 
42946
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#171
43268
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#179
42947
43269
  def inverted_comparison(param0 = T.unsafe(nil)); end
42948
43270
 
42949
43271
  # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#90
42950
43272
  def on_send(node); end
42951
43273
 
42952
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#161
43274
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#169
42953
43275
  def predicate(param0 = T.unsafe(nil)); end
42954
43276
 
42955
43277
  private
@@ -42962,23 +43284,28 @@ class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base
42962
43284
  # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#111
42963
43285
  def check(node); end
42964
43286
 
42965
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#152
43287
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#154
42966
43288
  def invert; end
42967
43289
 
42968
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#132
43290
+ # @return [Boolean]
43291
+ #
43292
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#162
43293
+ def negated?(node); end
43294
+
43295
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#134
42969
43296
  def parenthesized_source(node); end
42970
43297
 
42971
43298
  # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#124
42972
- def replacement(numeric, operation); end
43299
+ def replacement(node, numeric, operation); end
42973
43300
 
42974
43301
  # @return [Boolean]
42975
43302
  #
42976
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#144
43303
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#146
42977
43304
  def replacement_supported?(operator); end
42978
43305
 
42979
43306
  # @return [Boolean]
42980
43307
  #
42981
- # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#140
43308
+ # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#142
42982
43309
  def require_parentheses?(node); end
42983
43310
  end
42984
43311
 
@@ -44297,10 +44624,20 @@ class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base
44297
44624
 
44298
44625
  private
44299
44626
 
44300
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#94
44627
+ # @return [Boolean]
44628
+ #
44629
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#108
44630
+ def argument_matched?(target_argument, redundant_argument); end
44631
+
44632
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#100
44301
44633
  def argument_range(node); end
44302
44634
 
44303
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#87
44635
+ # @return [Boolean]
44636
+ #
44637
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#120
44638
+ def exclude_cntrl_character?(target_argument, redundant_argument); end
44639
+
44640
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#93
44304
44641
  def redundant_arg_for_method(method_name); end
44305
44642
 
44306
44643
  # @return [Boolean]
@@ -44909,16 +45246,19 @@ class RuboCop::Cop::Style::RedundantCurrentDirectoryInPath < ::RuboCop::Cop::Bas
44909
45246
  include ::RuboCop::Cop::RangeHelp
44910
45247
  extend ::RuboCop::Cop::AutoCorrector
44911
45248
 
44912
- # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#23
45249
+ # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#24
44913
45250
  def on_send(node); end
44914
45251
  end
44915
45252
 
44916
- # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#21
45253
+ # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#22
44917
45254
  RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::CURRENT_DIRECTORY_PATH = T.let(T.unsafe(nil), String)
44918
45255
 
44919
45256
  # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#20
44920
45257
  RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::MSG = T.let(T.unsafe(nil), String)
44921
45258
 
45259
+ # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#21
45260
+ RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
45261
+
44922
45262
  # Checks for redundant uses of double splat hash braces.
44923
45263
  #
44924
45264
  # @example
@@ -45674,52 +46014,47 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45674
46014
  include ::RuboCop::Cop::MatchRange
45675
46015
  extend ::RuboCop::Cop::AutoCorrector
45676
46016
 
45677
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#78
46017
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#79
45678
46018
  def on_new_investigation; end
45679
46019
 
45680
46020
  private
45681
46021
 
45682
46022
  # @return [Boolean]
45683
46023
  #
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
46024
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#183
45690
46025
  def argument_is_method?(node); end
45691
46026
 
45692
46027
  # @return [Boolean]
45693
46028
  #
45694
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#146
46029
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#147
45695
46030
  def argument_newline?(node); end
45696
46031
 
45697
46032
  # @return [Boolean]
45698
46033
  #
45699
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#101
46034
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#102
45700
46035
  def ends_with_backslash_without_comment?(source_line); end
45701
46036
 
45702
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#162
46037
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#163
45703
46038
  def find_node_for_line(line); end
45704
46039
 
45705
46040
  # @return [Boolean]
45706
46041
  #
45707
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#133
46042
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#132
45708
46043
  def inside_string_literal?(range, token); end
45709
46044
 
45710
46045
  # @return [Boolean]
45711
46046
  #
45712
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#109
46047
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#110
45713
46048
  def inside_string_literal_or_method_with_argument?(range); end
45714
46049
 
45715
46050
  # @return [Boolean]
45716
46051
  #
45717
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#117
46052
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#118
45718
46053
  def leading_dot_method_chain_with_blank_line?(range); end
45719
46054
 
45720
46055
  # @return [Boolean]
45721
46056
  #
45722
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#193
46057
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#190
45723
46058
  def method_call_with_arguments?(node); end
45724
46059
 
45725
46060
  # A method call without parentheses such as the following cannot remove `\`:
@@ -45729,38 +46064,41 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
45729
46064
  #
45730
46065
  # @return [Boolean]
45731
46066
  #
45732
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#141
46067
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#140
45733
46068
  def method_with_argument?(current_token, next_token); end
45734
46069
 
45735
46070
  # @return [Boolean]
45736
46071
  #
45737
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#123
46072
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#124
45738
46073
  def redundant_line_continuation?(range); end
45739
46074
 
45740
46075
  # @return [Boolean]
45741
46076
  #
45742
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#93
46077
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#94
45743
46078
  def require_line_continuation?(range); end
45744
46079
 
45745
46080
  # @return [Boolean]
45746
46081
  #
45747
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#172
46082
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#169
45748
46083
  def same_line?(node, line); end
45749
46084
 
45750
46085
  # @return [Boolean]
45751
46086
  #
45752
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#197
46087
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#194
45753
46088
  def start_with_arithmetic_operator?(source_line); end
45754
46089
 
45755
46090
  # @return [Boolean]
45756
46091
  #
45757
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#105
46092
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#106
45758
46093
  def string_concatenation?(source_line); end
45759
46094
  end
45760
46095
 
45761
46096
  # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#72
45762
46097
  RuboCop::Cop::Style::RedundantLineContinuation::ALLOWED_STRING_TOKENS = T.let(T.unsafe(nil), Array)
45763
46098
 
46099
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#77
46100
+ RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TAKING_FLOW_TOKEN_TYPES = T.let(T.unsafe(nil), Array)
46101
+
45764
46102
  # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#73
45765
46103
  RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TYPES = T.let(T.unsafe(nil), Array)
45766
46104
 
@@ -48080,12 +48418,12 @@ RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String)
48080
48418
  #
48081
48419
  # @example
48082
48420
  # # bad
48083
- # Foo.send(:bar)
48084
- # quuz.send(:fred)
48421
+ # Foo.send(bar)
48422
+ # quuz.send(fred)
48085
48423
  #
48086
48424
  # # good
48087
- # Foo.__send__(:bar)
48088
- # quuz.public_send(:fred)
48425
+ # Foo.__send__(bar)
48426
+ # quuz.public_send(fred)
48089
48427
  #
48090
48428
  # source://rubocop//lib/rubocop/cop/style/send.rb#16
48091
48429
  class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Base
@@ -48102,6 +48440,69 @@ RuboCop::Cop::Style::Send::MSG = T.let(T.unsafe(nil), String)
48102
48440
  # source://rubocop//lib/rubocop/cop/style/send.rb#18
48103
48441
  RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
48104
48442
 
48443
+ # Detects the use of the `public_send` method with a literal method name argument.
48444
+ # Since the `send` method can be used to call private methods, by default,
48445
+ # only the `public_send` method is detected.
48446
+ #
48447
+ # @example
48448
+ # # bad
48449
+ # obj.public_send(:method_name)
48450
+ # obj.public_send('method_name')
48451
+ #
48452
+ # # good
48453
+ # obj.method_name
48454
+ # @example AllowSend: true (default)
48455
+ # # good
48456
+ # obj.send(:method_name)
48457
+ # obj.send('method_name')
48458
+ # obj.__send__(:method_name)
48459
+ # obj.__send__('method_name')
48460
+ # @example AllowSend: false
48461
+ # # bad
48462
+ # obj.send(:method_name)
48463
+ # obj.send('method_name')
48464
+ # obj.__send__(:method_name)
48465
+ # obj.__send__('method_name')
48466
+ #
48467
+ # # good
48468
+ # obj.method_name
48469
+ #
48470
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#40
48471
+ class RuboCop::Cop::Style::SendWithLiteralMethodName < ::RuboCop::Cop::Base
48472
+ extend ::RuboCop::Cop::AutoCorrector
48473
+
48474
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#54
48475
+ def on_send(node); end
48476
+
48477
+ private
48478
+
48479
+ # @return [Boolean]
48480
+ #
48481
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#76
48482
+ def allow_send?; end
48483
+
48484
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#80
48485
+ def offense_range(node); end
48486
+
48487
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#84
48488
+ def removal_argument_range(first_argument, second_argument); end
48489
+ end
48490
+
48491
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#46
48492
+ RuboCop::Cop::Style::SendWithLiteralMethodName::METHOD_NAME_PATTERN = T.let(T.unsafe(nil), Regexp)
48493
+
48494
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#43
48495
+ RuboCop::Cop::Style::SendWithLiteralMethodName::MSG = T.let(T.unsafe(nil), String)
48496
+
48497
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#47
48498
+ RuboCop::Cop::Style::SendWithLiteralMethodName::RESERVED_WORDS = T.let(T.unsafe(nil), Array)
48499
+
48500
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#44
48501
+ RuboCop::Cop::Style::SendWithLiteralMethodName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
48502
+
48503
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#45
48504
+ RuboCop::Cop::Style::SendWithLiteralMethodName::STATIC_METHOD_NAME_NODE_TYPES = T.let(T.unsafe(nil), Array)
48505
+
48105
48506
  # Checks for uses of `fail` and `raise`.
48106
48507
  #
48107
48508
  # @example EnforcedStyle: only_raise (default)
@@ -48711,13 +49112,30 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String)
48711
49112
  # will add a require statement to the top of the file if
48712
49113
  # enabled by RequireEnglish config.
48713
49114
  #
48714
- # Like `use_perl_names` but allows builtin global vars.
48715
- #
49115
+ # @example EnforcedStyle: use_english_names (default)
48716
49116
  # # good
49117
+ # require 'English' # or this could be in another file.
49118
+ #
48717
49119
  # puts $LOAD_PATH
48718
49120
  # puts $LOADED_FEATURES
48719
49121
  # puts $PROGRAM_NAME
48720
- # puts ARGV
49122
+ # puts $ERROR_INFO
49123
+ # puts $ERROR_POSITION
49124
+ # puts $FIELD_SEPARATOR # or $FS
49125
+ # puts $OUTPUT_FIELD_SEPARATOR # or $OFS
49126
+ # puts $INPUT_RECORD_SEPARATOR # or $RS
49127
+ # puts $OUTPUT_RECORD_SEPARATOR # or $ORS
49128
+ # puts $INPUT_LINE_NUMBER # or $NR
49129
+ # puts $LAST_READ_LINE
49130
+ # puts $DEFAULT_OUTPUT
49131
+ # puts $DEFAULT_INPUT
49132
+ # puts $PROCESS_ID # or $PID
49133
+ # puts $CHILD_STATUS
49134
+ # puts $LAST_MATCH_INFO
49135
+ # puts $IGNORECASE
49136
+ # puts $ARGV # or ARGV
49137
+ # @example EnforcedStyle: use_perl_names
49138
+ # # good
48721
49139
  # puts $:
48722
49140
  # puts $"
48723
49141
  # puts $0
@@ -48736,31 +49154,14 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String)
48736
49154
  # puts $~
48737
49155
  # puts $=
48738
49156
  # puts $*
49157
+ # @example EnforcedStyle: use_builtin_english_names
48739
49158
  #
48740
- # @example EnforcedStyle: use_english_names (default)
48741
49159
  # # good
48742
- # require 'English' # or this could be in another file.
48743
- #
49160
+ # # Like `use_perl_names` but allows builtin global vars.
48744
49161
  # puts $LOAD_PATH
48745
49162
  # puts $LOADED_FEATURES
48746
49163
  # 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
49164
+ # puts ARGV
48764
49165
  # puts $:
48765
49166
  # puts $"
48766
49167
  # puts $0
@@ -48779,90 +49180,89 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String)
48779
49180
  # puts $~
48780
49181
  # puts $=
48781
49182
  # puts $*
48782
- # @example EnforcedStyle: use_builtin_english_names
48783
49183
  #
48784
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#87
49184
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#86
48785
49185
  class RuboCop::Cop::Style::SpecialGlobalVars < ::RuboCop::Cop::Base
48786
49186
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
48787
49187
  include ::RuboCop::Cop::RangeHelp
48788
49188
  include ::RuboCop::Cop::RequireLibrary
48789
49189
  extend ::RuboCop::Cop::AutoCorrector
48790
49190
 
48791
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#176
49191
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#175
48792
49192
  def autocorrect(corrector, node, global_var); end
48793
49193
 
48794
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#168
49194
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#167
48795
49195
  def message(global_var); end
48796
49196
 
48797
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#152
49197
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#151
48798
49198
  def on_gvar(node); end
48799
49199
 
48800
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#147
49200
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#146
48801
49201
  def on_new_investigation; end
48802
49202
 
48803
49203
  private
48804
49204
 
48805
49205
  # @return [Boolean]
48806
49206
  #
48807
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#247
49207
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#246
48808
49208
  def add_require_english?; end
48809
49209
 
48810
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#241
49210
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#240
48811
49211
  def english_name_replacement(preferred_name, node); end
48812
49212
 
48813
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#190
49213
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#189
48814
49214
  def format_english_message(global_var); end
48815
49215
 
48816
49216
  # For now, we assume that lists are 2 items or less. Easy grammar!
48817
49217
  #
48818
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#212
49218
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#211
48819
49219
  def format_list(items); end
48820
49220
 
48821
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#198
49221
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#197
48822
49222
  def format_message(english, regular, global); end
48823
49223
 
48824
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#235
49224
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#234
48825
49225
  def matching_styles(global); end
48826
49226
 
48827
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#227
49227
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#226
48828
49228
  def preferred_names(global); end
48829
49229
 
48830
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#216
49230
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#215
48831
49231
  def replacement(node, global_var); end
48832
49232
 
48833
49233
  # @return [Boolean]
48834
49234
  #
48835
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#251
49235
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#250
48836
49236
  def should_require_english?(global_var); end
48837
49237
  end
48838
49238
 
48839
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#128
49239
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#127
48840
49240
  RuboCop::Cop::Style::SpecialGlobalVars::BUILTIN_VARS = T.let(T.unsafe(nil), Hash)
48841
49241
 
48842
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#100
49242
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#99
48843
49243
  RuboCop::Cop::Style::SpecialGlobalVars::ENGLISH_VARS = T.let(T.unsafe(nil), Hash)
48844
49244
 
48845
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#145
49245
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#144
48846
49246
  RuboCop::Cop::Style::SpecialGlobalVars::LIBRARY_NAME = T.let(T.unsafe(nil), String)
48847
49247
 
48848
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#93
49248
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#92
48849
49249
  RuboCop::Cop::Style::SpecialGlobalVars::MSG_BOTH = T.let(T.unsafe(nil), String)
48850
49250
 
48851
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#96
49251
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#95
48852
49252
  RuboCop::Cop::Style::SpecialGlobalVars::MSG_ENGLISH = T.let(T.unsafe(nil), String)
48853
49253
 
48854
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#98
49254
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#97
48855
49255
  RuboCop::Cop::Style::SpecialGlobalVars::MSG_REGULAR = T.let(T.unsafe(nil), String)
48856
49256
 
48857
49257
  # Anything *not* in this set is provided by the English library.
48858
49258
  #
48859
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#122
49259
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#121
48860
49260
  RuboCop::Cop::Style::SpecialGlobalVars::NON_ENGLISH_VARS = T.let(T.unsafe(nil), Set)
48861
49261
 
48862
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#124
49262
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#123
48863
49263
  RuboCop::Cop::Style::SpecialGlobalVars::PERL_VARS = T.let(T.unsafe(nil), Hash)
48864
49264
 
48865
- # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#139
49265
+ # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#138
48866
49266
  RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Hash)
48867
49267
 
48868
49268
  # Check for parentheses around stabby lambda arguments.
@@ -49464,6 +49864,106 @@ end
49464
49864
  # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#30
49465
49865
  RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String)
49466
49866
 
49867
+ # Checks for redundant argument forwarding when calling super
49868
+ # with arguments identical to the method definition.
49869
+ #
49870
+ # @example
49871
+ # # bad
49872
+ # def method(*args, **kwargs)
49873
+ # super(*args, **kwargs)
49874
+ # end
49875
+ #
49876
+ # # good - implicitly passing all arguments
49877
+ # def method(*args, **kwargs)
49878
+ # super
49879
+ # end
49880
+ #
49881
+ # # good - forwarding a subset of the arguments
49882
+ # def method(*args, **kwargs)
49883
+ # super(*args)
49884
+ # end
49885
+ #
49886
+ # # good - forwarding no arguments
49887
+ # def method(*args, **kwargs)
49888
+ # super()
49889
+ # end
49890
+ #
49891
+ # # good - assigning to the block variable before calling super
49892
+ # def method(&block)
49893
+ # # Assigning to the block variable would pass the old value to super,
49894
+ # # under this circumstance the block must be referenced explicitly.
49895
+ # block ||= proc { 'fallback behavior' }
49896
+ # super(&block)
49897
+ # end
49898
+ #
49899
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#37
49900
+ class RuboCop::Cop::Style::SuperArguments < ::RuboCop::Cop::Base
49901
+ extend ::RuboCop::Cop::AutoCorrector
49902
+
49903
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#45
49904
+ def on_super(super_node); end
49905
+
49906
+ private
49907
+
49908
+ # @return [Boolean]
49909
+ #
49910
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#62
49911
+ def arguments_identical?(def_node, def_args, super_args); end
49912
+
49913
+ # @return [Boolean]
49914
+ #
49915
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#117
49916
+ def block_arg_same?(def_node, def_arg, super_arg); end
49917
+
49918
+ # Reassigning the block argument will still pass along the original block to super
49919
+ # https://bugs.ruby-lang.org/issues/20505
49920
+ #
49921
+ # @return [Boolean]
49922
+ #
49923
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#128
49924
+ def block_reassigned?(def_node, block_arg_name); end
49925
+
49926
+ # @return [Boolean]
49927
+ #
49928
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#138
49929
+ def define_method?(node); end
49930
+
49931
+ # @return [Boolean]
49932
+ #
49933
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#134
49934
+ def forward_arg_same?(def_arg, super_arg); end
49935
+
49936
+ # @return [Boolean]
49937
+ #
49938
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#97
49939
+ def keyword_arg_same?(def_arg, super_arg); end
49940
+
49941
+ # @return [Boolean]
49942
+ #
49943
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#107
49944
+ def keyword_rest_arg_same?(def_arg, super_arg); end
49945
+
49946
+ # @return [Boolean]
49947
+ #
49948
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#80
49949
+ def positional_arg_same?(def_arg, super_arg); end
49950
+
49951
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#87
49952
+ def positional_rest_arg_same(def_arg, super_arg); end
49953
+
49954
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#144
49955
+ def preprocess_super_args(super_args); end
49956
+ end
49957
+
49958
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#41
49959
+ RuboCop::Cop::Style::SuperArguments::ASSIGN_TYPES = T.let(T.unsafe(nil), Array)
49960
+
49961
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#40
49962
+ RuboCop::Cop::Style::SuperArguments::DEF_TYPES = T.let(T.unsafe(nil), Array)
49963
+
49964
+ # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#43
49965
+ RuboCop::Cop::Style::SuperArguments::MSG = T.let(T.unsafe(nil), String)
49966
+
49467
49967
  # Enforces the presence of parentheses in `super` containing arguments.
49468
49968
  #
49469
49969
  # `super` is a keyword and is provided as a distinct cop from those designed for method call.
@@ -49687,9 +50187,11 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
49687
50187
  # `define_method?` methods are allowed by default.
49688
50188
  # These are customizable with `AllowedMethods` option.
49689
50189
  #
49690
- # @example AllowedPatterns: ['map'] (default)
50190
+ # @example AllCops:ActiveSupportExtensionsEnabled: true
49691
50191
  # # good
49692
- # something.map { |s| s.upcase }
50192
+ # ->(x) { x.foo }
50193
+ # proc { |x| x.foo }
50194
+ # Proc.new { |x| x.foo }
49693
50195
  # @example AllowMethodsWithArguments: false (default)
49694
50196
  # # bad
49695
50197
  # something.do_something(foo) { |o| o.bar }
@@ -49719,6 +50221,19 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
49719
50221
  # @example AllowedPatterns: [] (default)
49720
50222
  # # bad
49721
50223
  # something.map { |s| s.upcase }
50224
+ # @example AllowedPatterns: ['map'] (default)
50225
+ # # good
50226
+ # something.map { |s| s.upcase }
50227
+ # @example AllCops:ActiveSupportExtensionsEnabled: false (default)
50228
+ # # bad
50229
+ # ->(x) { x.foo }
50230
+ # proc { |x| x.foo }
50231
+ # Proc.new { |x| x.foo }
50232
+ #
50233
+ # # good
50234
+ # lambda(&:foo)
50235
+ # proc(&:foo)
50236
+ # Proc.new(&:foo)
49722
50237
  # @example
49723
50238
  # # bad
49724
50239
  # something.map { |s| s.upcase }
@@ -49727,7 +50242,7 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
49727
50242
  # # good
49728
50243
  # something.map(&:upcase)
49729
50244
  #
49730
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#123
50245
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#140
49731
50246
  class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base
49732
50247
  include ::RuboCop::Cop::CommentsHelp
49733
50248
  include ::RuboCop::Cop::RangeHelp
@@ -49737,81 +50252,87 @@ class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base
49737
50252
 
49738
50253
  # @return [Boolean]
49739
50254
  #
49740
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#172
50255
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#189
49741
50256
  def destructuring_block_argument?(argument_node); end
49742
50257
 
49743
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152
50258
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#170
49744
50259
  def on_block(node); end
49745
50260
 
49746
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152
50261
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#170
49747
50262
  def on_numblock(node); end
49748
50263
 
49749
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#134
50264
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152
49750
50265
  def proc_node?(param0 = T.unsafe(nil)); end
49751
50266
 
49752
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#140
50267
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#158
49753
50268
  def symbol_proc?(param0 = T.unsafe(nil)); end
49754
50269
 
49755
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#137
50270
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#155
49756
50271
  def symbol_proc_receiver?(param0 = T.unsafe(nil)); end
49757
50272
 
49758
50273
  private
49759
50274
 
49760
50275
  # @return [Boolean]
49761
50276
  #
49762
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#240
50277
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#267
49763
50278
  def allow_comments?; end
49764
50279
 
49765
50280
  # @return [Boolean]
49766
50281
  #
49767
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#236
50282
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#263
49768
50283
  def allow_if_method_has_argument?(send_node); end
49769
50284
 
49770
50285
  # @return [Boolean]
49771
50286
  #
49772
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#187
50287
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#204
49773
50288
  def allowed_method_name?(name); end
49774
50289
 
49775
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200
50290
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#217
49776
50291
  def autocorrect(corrector, node); end
49777
50292
 
49778
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#212
50293
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#240
50294
+ def autocorrect_lambda_block(corrector, node); end
50295
+
50296
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#231
49779
50297
  def autocorrect_with_args(corrector, node, args, method_name); end
49780
50298
 
49781
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#208
50299
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#225
49782
50300
  def autocorrect_without_args(corrector, node); end
49783
50301
 
49784
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#226
50302
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#253
49785
50303
  def begin_pos_for_replacement(node); end
49786
50304
 
49787
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#221
50305
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#248
49788
50306
  def block_range_with_space(node); end
49789
50307
 
49790
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#191
50308
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#208
49791
50309
  def register_offense(node, method_name, block_method_name); end
49792
50310
 
49793
50311
  # @return [Boolean]
49794
50312
  #
49795
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#183
50313
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200
49796
50314
  def unsafe_array_usage?(node); end
49797
50315
 
49798
50316
  # See: https://github.com/rubocop/rubocop/issues/10864
49799
50317
  #
49800
50318
  # @return [Boolean]
49801
50319
  #
49802
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#179
50320
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#196
49803
50321
  def unsafe_hash_usage?(node); end
49804
50322
 
49805
50323
  class << self
49806
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147
50324
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#165
49807
50325
  def autocorrect_incompatible_with; end
49808
50326
  end
49809
50327
  end
49810
50328
 
49811
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#130
50329
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#149
50330
+ RuboCop::Cop::Style::SymbolProc::LAMBDA_OR_PROC = T.let(T.unsafe(nil), Array)
50331
+
50332
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147
49812
50333
  RuboCop::Cop::Style::SymbolProc::MSG = T.let(T.unsafe(nil), String)
49813
50334
 
49814
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#131
50335
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#148
49815
50336
  RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array)
49816
50337
 
49817
50338
  # Corrector to correct conditional assignment in ternary conditions.
@@ -51794,22 +52315,22 @@ class RuboCop::Cop::Team
51794
52315
  # source://rubocop//lib/rubocop/cop/team.rb#121
51795
52316
  def autocorrect(processed_source, report, original:, offset:); end
51796
52317
 
51797
- # source://rubocop//lib/rubocop/cop/team.rb#182
52318
+ # source://rubocop//lib/rubocop/cop/team.rb#185
51798
52319
  def autocorrect_report(report, offset:, original:); end
51799
52320
 
51800
52321
  # source://rubocop//lib/rubocop/cop/team.rb#140
51801
52322
  def be_ready; end
51802
52323
 
51803
- # source://rubocop//lib/rubocop/cop/team.rb#188
52324
+ # source://rubocop//lib/rubocop/cop/team.rb#191
51804
52325
  def collate_corrections(report, offset:, original:); end
51805
52326
 
51806
- # source://rubocop//lib/rubocop/cop/team.rb#204
52327
+ # source://rubocop//lib/rubocop/cop/team.rb#207
51807
52328
  def each_corrector(report); end
51808
52329
 
51809
- # source://rubocop//lib/rubocop/cop/team.rb#254
52330
+ # source://rubocop//lib/rubocop/cop/team.rb#259
51810
52331
  def handle_error(error, location, cop); end
51811
52332
 
51812
- # source://rubocop//lib/rubocop/cop/team.rb#246
52333
+ # source://rubocop//lib/rubocop/cop/team.rb#251
51813
52334
  def handle_warning(error, location); end
51814
52335
 
51815
52336
  # @return [Commissioner::InvestigationReport]
@@ -51817,7 +52338,7 @@ class RuboCop::Cop::Team
51817
52338
  # source://rubocop//lib/rubocop/cop/team.rb#154
51818
52339
  def investigate_partial(cops, processed_source, offset:, original:); end
51819
52340
 
51820
- # source://rubocop//lib/rubocop/cop/team.rb#231
52341
+ # source://rubocop//lib/rubocop/cop/team.rb#234
51821
52342
  def process_errors(file, errors); end
51822
52343
 
51823
52344
  # source://rubocop//lib/rubocop/cop/team.rb#148
@@ -51838,10 +52359,10 @@ class RuboCop::Cop::Team
51838
52359
  # source://rubocop//lib/rubocop/cop/team.rb#170
51839
52360
  def support_target_ruby_version?(cop); end
51840
52361
 
51841
- # source://rubocop//lib/rubocop/cop/team.rb#219
52362
+ # source://rubocop//lib/rubocop/cop/team.rb#222
51842
52363
  def suppress_clobbering; end
51843
52364
 
51844
- # source://rubocop//lib/rubocop/cop/team.rb#225
52365
+ # source://rubocop//lib/rubocop/cop/team.rb#228
51845
52366
  def validate_config; end
51846
52367
 
51847
52368
  class << self
@@ -54358,10 +54879,10 @@ class RuboCop::Formatter::ClangStyleFormatter < ::RuboCop::Formatter::SimpleText
54358
54879
 
54359
54880
  private
54360
54881
 
54361
- # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#51
54882
+ # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#47
54362
54883
  def report_highlighted_area(highlighted_area); end
54363
54884
 
54364
- # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#41
54885
+ # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#37
54365
54886
  def report_line(location); end
54366
54887
 
54367
54888
  # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#17
@@ -54369,7 +54890,7 @@ class RuboCop::Formatter::ClangStyleFormatter < ::RuboCop::Formatter::SimpleText
54369
54890
 
54370
54891
  # @return [Boolean]
54371
54892
  #
54372
- # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#37
54893
+ # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#33
54373
54894
  def valid_line?(offense); end
54374
54895
  end
54375
54896
 
@@ -54444,16 +54965,16 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
54444
54965
  # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#73
54445
54966
  def command; end
54446
54967
 
54447
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#161
54968
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#165
54448
54969
  def cop_config_params(default_cfg, cfg); end
54449
54970
 
54450
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#181
54971
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185
54451
54972
  def default_config(cop_name); end
54452
54973
 
54453
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#225
54974
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#229
54454
54975
  def excludes(offending_files, cop_name, parent); end
54455
54976
 
54456
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#196
54977
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#200
54457
54978
  def filtered_config(cfg); end
54458
54979
 
54459
54980
  # Returns true if the given arr include the given elm or if any of the
@@ -54461,38 +54982,38 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
54461
54982
  #
54462
54983
  # @return [Boolean]
54463
54984
  #
54464
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#273
54985
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#277
54465
54986
  def include_or_match?(arr, elm); end
54466
54987
 
54467
54988
  # @return [Boolean]
54468
54989
  #
54469
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#246
54990
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#250
54470
54991
  def merge_mode_for_exclude?(cfg); end
54471
54992
 
54472
54993
  # @return [Boolean]
54473
54994
  #
54474
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#267
54995
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#271
54475
54996
  def no_exclude_limit?; end
54476
54997
 
54477
54998
  # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#102
54478
54999
  def output_cop(cop_name, offense_count); end
54479
55000
 
54480
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#133
55001
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#137
54481
55002
  def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end
54482
55003
 
54483
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185
55004
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#189
54484
55005
  def output_cop_config(output_buffer, cfg, cop_name); end
54485
55006
 
54486
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#168
55007
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#172
54487
55008
  def output_cop_param_comments(output_buffer, params, default_cfg); end
54488
55009
 
54489
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#215
55010
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#219
54490
55011
  def output_exclude_list(output_buffer, offending_files, cop_name); end
54491
55012
 
54492
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#250
55013
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#254
54493
55014
  def output_exclude_path(output_buffer, exclude_path, parent); end
54494
55015
 
54495
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#204
55016
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#208
54496
55017
  def output_offending_files(output_buffer, cfg, cop_name); end
54497
55018
 
54498
55019
  # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#96
@@ -54500,12 +55021,17 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
54500
55021
 
54501
55022
  # @return [Boolean]
54502
55023
  #
54503
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#263
55024
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#267
54504
55025
  def safe_autocorrect?(config); end
54505
55026
 
54506
55027
  # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#116
54507
55028
  def set_max(cfg, cop_name); end
54508
55029
 
55030
+ # @return [Boolean]
55031
+ #
55032
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#125
55033
+ def should_set_max?(cop_name); end
55034
+
54509
55035
  # @return [Boolean]
54510
55036
  #
54511
55037
  # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#65
@@ -54518,12 +55044,12 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
54518
55044
 
54519
55045
  # @return [Boolean]
54520
55046
  #
54521
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#153
55047
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#157
54522
55048
  def supports_safe_autocorrect?(cop_class, default_cfg); end
54523
55049
 
54524
55050
  # @return [Boolean]
54525
55051
  #
54526
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#157
55052
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#161
54527
55053
  def supports_unsafe_autocorrect?(cop_class, default_cfg); end
54528
55054
 
54529
55055
  # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#92
@@ -54596,43 +55122,46 @@ end
54596
55122
  class RuboCop::Formatter::FormatterSet < ::Array
54597
55123
  # @return [FormatterSet] a new instance of FormatterSet
54598
55124
  #
54599
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#39
55125
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#40
54600
55126
  def initialize(options = T.unsafe(nil)); end
54601
55127
 
54602
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#55
55128
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#56
54603
55129
  def add_formatter(formatter_type, output_path = T.unsafe(nil)); end
54604
55130
 
54605
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#67
55131
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#68
54606
55132
  def close_output_files; end
54607
55133
 
54608
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#50
55134
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#51
54609
55135
  def file_finished(file, offenses); end
54610
55136
 
54611
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#44
55137
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#45
54612
55138
  def file_started(file, options); end
54613
55139
 
54614
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#34
55140
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#35
54615
55141
  def finished(*args); end
54616
55142
 
54617
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#34
55143
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#35
54618
55144
  def started(*args); end
54619
55145
 
54620
55146
  private
54621
55147
 
54622
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#86
55148
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#87
54623
55149
  def builtin_formatter_class(specified_key); end
54624
55150
 
54625
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#99
55151
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#105
54626
55152
  def custom_formatter_class(specified_class_name); end
54627
55153
 
54628
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#75
55154
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#76
54629
55155
  def formatter_class(formatter_type); end
54630
55156
  end
54631
55157
 
54632
55158
  # source://rubocop//lib/rubocop/formatter/formatter_set.rb#11
54633
55159
  RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTERS_FOR_KEYS = T.let(T.unsafe(nil), Hash)
54634
55160
 
54635
- # source://rubocop//lib/rubocop/formatter/formatter_set.rb#31
55161
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#30
55162
+ RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTER_NAMES = T.let(T.unsafe(nil), Array)
55163
+
55164
+ # source://rubocop//lib/rubocop/formatter/formatter_set.rb#32
54636
55165
  RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array)
54637
55166
 
54638
55167
  # This formatter displays a progress bar and shows details of offenses as
@@ -55312,10 +55841,10 @@ class RuboCop::Formatter::TapFormatter < ::RuboCop::Formatter::ClangStyleFormatt
55312
55841
 
55313
55842
  private
55314
55843
 
55315
- # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#66
55844
+ # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#62
55316
55845
  def annotate_message(msg); end
55317
55846
 
55318
- # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#70
55847
+ # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#66
55319
55848
  def message(offense); end
55320
55849
 
55321
55850
  # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#39
@@ -55393,7 +55922,7 @@ module RuboCop::LSP
55393
55922
  # @return [void]
55394
55923
  #
55395
55924
  # source://rubocop//lib/rubocop/lsp.rb#25
55396
- def disable; end
55925
+ def disable(&block); end
55397
55926
 
55398
55927
  # Enable LSP.
55399
55928
  #
@@ -55415,7 +55944,7 @@ module RuboCop::LSP
55415
55944
  # @return [void]
55416
55945
  #
55417
55946
  # source://rubocop//lib/rubocop/lsp.rb#25
55418
- def disable; end
55947
+ def disable(&block); end
55419
55948
 
55420
55949
  # Enable LSP.
55421
55950
  #
@@ -55467,52 +55996,52 @@ class RuboCop::LSP::Routes
55467
55996
  # source://rubocop//lib/rubocop/lsp/routes.rb#38
55468
55997
  def handle_initialize(request); end
55469
55998
 
55470
- # source://rubocop//lib/rubocop/lsp/routes.rb#61
55999
+ # source://rubocop//lib/rubocop/lsp/routes.rb#57
55471
56000
  def handle_initialized(_request); end
55472
56001
 
55473
56002
  # @api private
55474
56003
  #
55475
- # source://rubocop//lib/rubocop/lsp/routes.rb#170
56004
+ # source://rubocop//lib/rubocop/lsp/routes.rb#167
55476
56005
  def handle_method_missing(request); end
55477
56006
 
55478
- # source://rubocop//lib/rubocop/lsp/routes.rb#67
56007
+ # source://rubocop//lib/rubocop/lsp/routes.rb#64
55479
56008
  def handle_shutdown(request); end
55480
56009
 
55481
56010
  # @api private
55482
56011
  #
55483
- # source://rubocop//lib/rubocop/lsp/routes.rb#159
56012
+ # source://rubocop//lib/rubocop/lsp/routes.rb#156
55484
56013
  def handle_unsupported_method(request, method = T.unsafe(nil)); end
55485
56014
 
55486
56015
  private
55487
56016
 
55488
56017
  # @api private
55489
56018
  #
55490
- # source://rubocop//lib/rubocop/lsp/routes.rb#208
56019
+ # source://rubocop//lib/rubocop/lsp/routes.rb#205
55491
56020
  def diagnostic(file_uri, text); end
55492
56021
 
55493
56022
  # @api private
55494
56023
  #
55495
- # source://rubocop//lib/rubocop/lsp/routes.rb#178
56024
+ # source://rubocop//lib/rubocop/lsp/routes.rb#175
55496
56025
  def extract_initialization_options_from(request); end
55497
56026
 
55498
56027
  # @api private
55499
56028
  #
55500
- # source://rubocop//lib/rubocop/lsp/routes.rb#188
56029
+ # source://rubocop//lib/rubocop/lsp/routes.rb#185
55501
56030
  def format_file(file_uri, command: T.unsafe(nil)); end
55502
56031
 
55503
56032
  # @api private
55504
56033
  #
55505
- # source://rubocop//lib/rubocop/lsp/routes.rb#222
56034
+ # source://rubocop//lib/rubocop/lsp/routes.rb#219
55506
56035
  def remove_file_protocol_from(uri); end
55507
56036
 
55508
56037
  # @api private
55509
56038
  #
55510
- # source://rubocop//lib/rubocop/lsp/routes.rb#226
56039
+ # source://rubocop//lib/rubocop/lsp/routes.rb#223
55511
56040
  def to_diagnostic(offense); end
55512
56041
 
55513
56042
  # @api private
55514
56043
  #
55515
- # source://rubocop//lib/rubocop/lsp/routes.rb#238
56044
+ # source://rubocop//lib/rubocop/lsp/routes.rb#235
55516
56045
  def to_range(location); end
55517
56046
 
55518
56047
  class << self
@@ -55606,32 +56135,32 @@ class RuboCop::LSP::Server
55606
56135
 
55607
56136
  # @api private
55608
56137
  #
55609
- # source://rubocop//lib/rubocop/lsp/server.rb#59
56138
+ # source://rubocop//lib/rubocop/lsp/server.rb#61
55610
56139
  def configure(options); end
55611
56140
 
55612
56141
  # @api private
55613
56142
  #
55614
- # source://rubocop//lib/rubocop/lsp/server.rb#51
56143
+ # source://rubocop//lib/rubocop/lsp/server.rb#53
55615
56144
  def format(path, text, command:); end
55616
56145
 
55617
56146
  # @api private
55618
56147
  #
55619
- # source://rubocop//lib/rubocop/lsp/server.rb#55
56148
+ # source://rubocop//lib/rubocop/lsp/server.rb#57
55620
56149
  def offenses(path, text); end
55621
56150
 
55622
56151
  # @api private
55623
56152
  #
55624
- # source://rubocop//lib/rubocop/lsp/server.rb#32
56153
+ # source://rubocop//lib/rubocop/lsp/server.rb#34
55625
56154
  def start; end
55626
56155
 
55627
56156
  # @api private
55628
56157
  #
55629
- # source://rubocop//lib/rubocop/lsp/server.rb#65
56158
+ # source://rubocop//lib/rubocop/lsp/server.rb#67
55630
56159
  def stop(&block); end
55631
56160
 
55632
56161
  # @api private
55633
56162
  #
55634
- # source://rubocop//lib/rubocop/lsp/server.rb#47
56163
+ # source://rubocop//lib/rubocop/lsp/server.rb#49
55635
56164
  def write(response); end
55636
56165
  end
55637
56166
 
@@ -55659,33 +56188,61 @@ RuboCop::LSP::Severity::SEVERITIES = T.let(T.unsafe(nil), Hash)
55659
56188
  #
55660
56189
  # @api private
55661
56190
  #
55662
- # source://rubocop//lib/rubocop/lockfile.rb#7
56191
+ # source://rubocop//lib/rubocop/lockfile.rb#15
55663
56192
  class RuboCop::Lockfile
55664
- # Gems that the bundle depends on
56193
+ # @api private
56194
+ # @param lockfile_path [String, Pathname, nil]
56195
+ # @return [Lockfile] a new instance of Lockfile
56196
+ #
56197
+ # source://rubocop//lib/rubocop/lockfile.rb#17
56198
+ def initialize(lockfile_path = T.unsafe(nil)); end
56199
+
56200
+ # Gems that the bundle directly depends on.
55665
56201
  #
55666
56202
  # @api private
56203
+ # @return [Array<Bundler::Dependency>, nil]
55667
56204
  #
55668
- # source://rubocop//lib/rubocop/lockfile.rb#9
56205
+ # source://rubocop//lib/rubocop/lockfile.rb#29
55669
56206
  def dependencies; end
55670
56207
 
55671
- # All activated gems, including transitive dependencies
56208
+ # Returns the locked versions of gems from this lockfile.
56209
+ #
56210
+ # @api private
56211
+ # @param include_transitive_dependencies: [Boolean] When false, only direct dependencies
56212
+ # are returned, i.e. those listed explicitly in the `Gemfile`.
56213
+ #
56214
+ # source://rubocop//lib/rubocop/lockfile.rb#49
56215
+ def gem_versions(include_transitive_dependencies: T.unsafe(nil)); end
56216
+
56217
+ # All activated gems, including transitive dependencies.
55672
56218
  #
55673
56219
  # @api private
56220
+ # @return [Array<Bundler::Dependency>, nil]
55674
56221
  #
55675
- # source://rubocop//lib/rubocop/lockfile.rb#16
56222
+ # source://rubocop//lib/rubocop/lockfile.rb#37
55676
56223
  def gems; end
55677
56224
 
56225
+ # Whether this lockfile includes the named gem, directly or indirectly.
56226
+ #
55678
56227
  # @api private
56228
+ # @param name [String]
55679
56229
  # @return [Boolean]
55680
56230
  #
55681
- # source://rubocop//lib/rubocop/lockfile.rb#24
56231
+ # source://rubocop//lib/rubocop/lockfile.rb#65
55682
56232
  def includes_gem?(name); end
55683
56233
 
55684
56234
  private
55685
56235
 
55686
56236
  # @api private
56237
+ # @return [Boolean]
55687
56238
  #
55688
- # source://rubocop//lib/rubocop/lockfile.rb#30
56239
+ # source://rubocop//lib/rubocop/lockfile.rb#85
56240
+ def bundler_lock_parser_defined?; end
56241
+
56242
+ # @api private
56243
+ # @return [Bundler::LockfileParser, nil]
56244
+ #
56245
+ # source://rubocop//lib/rubocop/lockfile.rb#72
55689
56246
  def parser; end
55690
56247
  end
55691
56248
 
@@ -56709,145 +57266,145 @@ RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array)
56709
57266
  class RuboCop::Runner
56710
57267
  # @return [Runner] a new instance of Runner
56711
57268
  #
56712
- # source://rubocop//lib/rubocop/runner.rb#59
57269
+ # source://rubocop//lib/rubocop/runner.rb#63
56713
57270
  def initialize(options, config_store); end
56714
57271
 
56715
57272
  # Sets the attribute aborting
56716
57273
  #
56717
57274
  # @param value the value to set the attribute aborting to.
56718
57275
  #
56719
- # source://rubocop//lib/rubocop/runner.rb#57
57276
+ # source://rubocop//lib/rubocop/runner.rb#61
56720
57277
  def aborting=(_arg0); end
56721
57278
 
56722
57279
  # @return [Boolean]
56723
57280
  #
56724
- # source://rubocop//lib/rubocop/runner.rb#83
57281
+ # source://rubocop//lib/rubocop/runner.rb#87
56725
57282
  def aborting?; end
56726
57283
 
56727
57284
  # Returns the value of attribute errors.
56728
57285
  #
56729
- # source://rubocop//lib/rubocop/runner.rb#56
57286
+ # source://rubocop//lib/rubocop/runner.rb#60
56730
57287
  def errors; end
56731
57288
 
56732
- # source://rubocop//lib/rubocop/runner.rb#67
57289
+ # source://rubocop//lib/rubocop/runner.rb#71
56733
57290
  def run(paths); end
56734
57291
 
56735
57292
  # Returns the value of attribute warnings.
56736
57293
  #
56737
- # source://rubocop//lib/rubocop/runner.rb#56
57294
+ # source://rubocop//lib/rubocop/runner.rb#60
56738
57295
  def warnings; end
56739
57296
 
56740
57297
  private
56741
57298
 
56742
- # source://rubocop//lib/rubocop/runner.rb#196
57299
+ # source://rubocop//lib/rubocop/runner.rb#200
56743
57300
  def add_redundant_disables(file, offenses, source); end
56744
57301
 
56745
- # source://rubocop//lib/rubocop/runner.rb#170
57302
+ # source://rubocop//lib/rubocop/runner.rb#174
56746
57303
  def cached_result(file, team); end
56747
57304
 
56748
57305
  # @return [Boolean]
56749
57306
  #
56750
- # source://rubocop//lib/rubocop/runner.rb#250
57307
+ # source://rubocop//lib/rubocop/runner.rb#254
56751
57308
  def cached_run?; end
56752
57309
 
56753
57310
  # Check whether a run created source identical to a previous run, which
56754
57311
  # means that we definitely have an infinite loop.
56755
57312
  #
56756
- # source://rubocop//lib/rubocop/runner.rb#328
57313
+ # source://rubocop//lib/rubocop/runner.rb#332
56757
57314
  def check_for_infinite_loop(processed_source, offenses_by_iteration); end
56758
57315
 
56759
57316
  # @return [Boolean]
56760
57317
  #
56761
- # source://rubocop//lib/rubocop/runner.rb#222
57318
+ # source://rubocop//lib/rubocop/runner.rb#226
56762
57319
  def check_for_redundant_disables?(source); end
56763
57320
 
56764
57321
  # @return [Boolean]
56765
57322
  #
56766
- # source://rubocop//lib/rubocop/runner.rb#423
57323
+ # source://rubocop//lib/rubocop/runner.rb#427
56767
57324
  def considered_failure?(offense); end
56768
57325
 
56769
- # source://rubocop//lib/rubocop/runner.rb#456
57326
+ # source://rubocop//lib/rubocop/runner.rb#460
56770
57327
  def default_config(cop_name); end
56771
57328
 
56772
- # source://rubocop//lib/rubocop/runner.rb#272
57329
+ # source://rubocop//lib/rubocop/runner.rb#276
56773
57330
  def do_inspection_loop(file); end
56774
57331
 
56775
- # source://rubocop//lib/rubocop/runner.rb#133
57332
+ # source://rubocop//lib/rubocop/runner.rb#137
56776
57333
  def each_inspected_file(files); end
56777
57334
 
56778
57335
  # @return [Boolean]
56779
57336
  #
56780
- # source://rubocop//lib/rubocop/runner.rb#236
57337
+ # source://rubocop//lib/rubocop/runner.rb#240
56781
57338
  def except_redundant_cop_disable_directive?; end
56782
57339
 
56783
- # source://rubocop//lib/rubocop/runner.rb#357
57340
+ # source://rubocop//lib/rubocop/runner.rb#361
56784
57341
  def extract_ruby_sources(processed_source); end
56785
57342
 
56786
- # source://rubocop//lib/rubocop/runner.rb#245
57343
+ # source://rubocop//lib/rubocop/runner.rb#249
56787
57344
  def file_finished(file, offenses); end
56788
57345
 
56789
- # source://rubocop//lib/rubocop/runner.rb#174
57346
+ # source://rubocop//lib/rubocop/runner.rb#178
56790
57347
  def file_offense_cache(file); end
56791
57348
 
56792
- # source://rubocop//lib/rubocop/runner.rb#162
57349
+ # source://rubocop//lib/rubocop/runner.rb#166
56793
57350
  def file_offenses(file); end
56794
57351
 
56795
- # source://rubocop//lib/rubocop/runner.rb#240
57352
+ # source://rubocop//lib/rubocop/runner.rb#244
56796
57353
  def file_started(file); end
56797
57354
 
56798
- # source://rubocop//lib/rubocop/runner.rb#403
57355
+ # source://rubocop//lib/rubocop/runner.rb#407
56799
57356
  def filter_cop_classes(cop_classes, config); end
56800
57357
 
56801
- # source://rubocop//lib/rubocop/runner.rb#104
57358
+ # source://rubocop//lib/rubocop/runner.rb#108
56802
57359
  def find_target_files(paths); end
56803
57360
 
56804
- # source://rubocop//lib/rubocop/runner.rb#414
57361
+ # source://rubocop//lib/rubocop/runner.rb#418
56805
57362
  def formatter_set; end
56806
57363
 
56807
- # source://rubocop//lib/rubocop/runner.rb#471
57364
+ # source://rubocop//lib/rubocop/runner.rb#475
56808
57365
  def get_processed_source(file); end
56809
57366
 
56810
- # source://rubocop//lib/rubocop/runner.rb#342
57367
+ # source://rubocop//lib/rubocop/runner.rb#346
56811
57368
  def inspect_file(processed_source, team = T.unsafe(nil)); end
56812
57369
 
56813
- # source://rubocop//lib/rubocop/runner.rb#115
57370
+ # source://rubocop//lib/rubocop/runner.rb#119
56814
57371
  def inspect_files(files); end
56815
57372
 
56816
- # source://rubocop//lib/rubocop/runner.rb#303
57373
+ # source://rubocop//lib/rubocop/runner.rb#307
56817
57374
  def iterate_until_no_changes(source, offenses_by_iteration); end
56818
57375
 
56819
- # source://rubocop//lib/rubocop/runner.rb#148
57376
+ # source://rubocop//lib/rubocop/runner.rb#152
56820
57377
  def list_files(paths); end
56821
57378
 
56822
57379
  # @return [Boolean]
56823
57380
  #
56824
- # source://rubocop//lib/rubocop/runner.rb#452
57381
+ # source://rubocop//lib/rubocop/runner.rb#456
56825
57382
  def mark_as_safe_by_config?(config); end
56826
57383
 
56827
- # source://rubocop//lib/rubocop/runner.rb#460
57384
+ # source://rubocop//lib/rubocop/runner.rb#464
56828
57385
  def minimum_severity_to_fail; end
56829
57386
 
56830
- # source://rubocop//lib/rubocop/runner.rb#364
57387
+ # source://rubocop//lib/rubocop/runner.rb#368
56831
57388
  def mobilize_team(processed_source); end
56832
57389
 
56833
- # source://rubocop//lib/rubocop/runner.rb#369
57390
+ # source://rubocop//lib/rubocop/runner.rb#373
56834
57391
  def mobilized_cop_classes(config); end
56835
57392
 
56836
- # source://rubocop//lib/rubocop/runner.rb#432
57393
+ # source://rubocop//lib/rubocop/runner.rb#436
56837
57394
  def offenses_to_report(offenses); end
56838
57395
 
56839
- # source://rubocop//lib/rubocop/runner.rb#152
57396
+ # source://rubocop//lib/rubocop/runner.rb#156
56840
57397
  def process_file(file); end
56841
57398
 
56842
- # source://rubocop//lib/rubocop/runner.rb#393
57399
+ # source://rubocop//lib/rubocop/runner.rb#397
56843
57400
  def qualify_option_cop_names; end
56844
57401
 
56845
57402
  # @yield [cop]
56846
57403
  #
56847
- # source://rubocop//lib/rubocop/runner.rb#228
57404
+ # source://rubocop//lib/rubocop/runner.rb#232
56848
57405
  def redundant_cop_disable_directive(file); end
56849
57406
 
56850
- # source://rubocop//lib/rubocop/runner.rb#262
57407
+ # source://rubocop//lib/rubocop/runner.rb#266
56851
57408
  def save_in_cache(cache, offenses); end
56852
57409
 
56853
57410
  # A Cop::Team instance is stateful and may change when inspecting.
@@ -56855,41 +57412,41 @@ class RuboCop::Runner
56855
57412
  # otherwise dormant team that can be used for config- and option-
56856
57413
  # level caching in ResultCache.
56857
57414
  #
56858
- # source://rubocop//lib/rubocop/runner.rb#499
57415
+ # source://rubocop//lib/rubocop/runner.rb#503
56859
57416
  def standby_team(config); end
56860
57417
 
56861
57418
  # @return [Boolean]
56862
57419
  #
56863
- # source://rubocop//lib/rubocop/runner.rb#410
57420
+ # source://rubocop//lib/rubocop/runner.rb#414
56864
57421
  def style_guide_cops_only?(config); end
56865
57422
 
56866
57423
  # @return [Boolean]
56867
57424
  #
56868
- # source://rubocop//lib/rubocop/runner.rb#444
57425
+ # source://rubocop//lib/rubocop/runner.rb#448
56869
57426
  def supports_safe_autocorrect?(offense); end
56870
57427
 
56871
57428
  # @yield [team]
56872
57429
  #
56873
- # source://rubocop//lib/rubocop/runner.rb#211
57430
+ # source://rubocop//lib/rubocop/runner.rb#215
56874
57431
  def team_for_redundant_disables(file, offenses, source); end
56875
57432
 
56876
57433
  # Warms up the RuboCop cache by forking a suitable number of RuboCop
56877
57434
  # instances that each inspects its allotted group of files.
56878
57435
  #
56879
- # source://rubocop//lib/rubocop/runner.rb#91
57436
+ # source://rubocop//lib/rubocop/runner.rb#95
56880
57437
  def warm_cache(target_files); end
56881
57438
 
56882
57439
  class << self
56883
57440
  # @return [Array<#call>]
56884
57441
  #
56885
- # source://rubocop//lib/rubocop/runner.rb#29
57442
+ # source://rubocop//lib/rubocop/runner.rb#33
56886
57443
  def ruby_extractors; end
56887
57444
 
56888
57445
  private
56889
57446
 
56890
57447
  # @return [#call]
56891
57448
  #
56892
- # source://rubocop//lib/rubocop/runner.rb#36
57449
+ # source://rubocop//lib/rubocop/runner.rb#40
56893
57450
  def default_ruby_extractor; end
56894
57451
  end
56895
57452
  end
@@ -56912,12 +57469,12 @@ end
56912
57469
 
56913
57470
  # @api private
56914
57471
  #
56915
- # source://rubocop//lib/rubocop/runner.rb#49
57472
+ # source://rubocop//lib/rubocop/runner.rb#53
56916
57473
  RuboCop::Runner::MAX_ITERATIONS = T.let(T.unsafe(nil), Integer)
56917
57474
 
56918
57475
  # @api private
56919
57476
  #
56920
- # source://rubocop//lib/rubocop/runner.rb#52
57477
+ # source://rubocop//lib/rubocop/runner.rb#56
56921
57478
  RuboCop::Runner::REDUNDANT_COP_DISABLE_DIRECTIVE_RULES = T.let(T.unsafe(nil), Array)
56922
57479
 
56923
57480
  # Take a string with embedded escapes, and convert the escapes as the Ruby