sorbet-schema 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/Gemfile.lock +17 -17
- data/lib/sorbet-schema/hash_transformer.rb +27 -2
- data/lib/sorbet-schema/version.rb +1 -1
- data/lib/typed/coercion/boolean_coercer.rb +31 -0
- data/lib/typed/coercion/coercer.rb +3 -3
- data/lib/typed/coercion/coercer_registry.rb +14 -2
- data/lib/typed/coercion/date_coercer.rb +29 -0
- data/lib/typed/coercion/enum_coercer.rb +27 -0
- data/lib/typed/coercion/float_coercer.rb +6 -4
- data/lib/typed/coercion/integer_coercer.rb +6 -4
- data/lib/typed/coercion/string_coercer.rb +6 -4
- data/lib/typed/coercion/struct_coercer.rb +12 -10
- data/lib/typed/coercion/typed_array_coercer.rb +34 -0
- data/lib/typed/coercion.rb +4 -4
- data/lib/typed/deserialize_error.rb +1 -1
- data/lib/typed/field.rb +49 -5
- data/lib/typed/hash_serializer.rb +18 -6
- data/lib/typed/json_serializer.rb +4 -2
- data/lib/typed/schema.rb +10 -0
- data/lib/typed/serialization_error.rb +17 -0
- data/lib/typed/serialize_error.rb +6 -0
- data/lib/typed/serializer.rb +12 -7
- data/lib/typed/validations/field_type_validator.rb +1 -1
- data/lib/typed/validations/type_mismatch_error.rb +1 -1
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.22.3.rbi} +19 -18
- data/sorbet/rbi/gems/{rubocop-ast@1.31.1.rbi → rubocop-ast@1.31.2.rbi} +70 -70
- data/sorbet/rbi/gems/{rubocop@1.61.0.rbi → rubocop@1.62.1.rbi} +276 -233
- data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.35.1.rbi} +56 -56
- metadata +13 -7
- /data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.7.8.rbi} +0 -0
@@ -169,77 +169,83 @@ end
|
|
169
169
|
class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
|
170
170
|
# @api private
|
171
171
|
#
|
172
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
172
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#25
|
173
173
|
def run; end
|
174
174
|
|
175
175
|
private
|
176
176
|
|
177
177
|
# @api private
|
178
178
|
#
|
179
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
179
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#107
|
180
180
|
def add_formatter; end
|
181
181
|
|
182
182
|
# @api private
|
183
183
|
#
|
184
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
184
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#115
|
185
185
|
def add_inheritance_from_auto_generated_file(config_file); end
|
186
186
|
|
187
187
|
# @api private
|
188
188
|
#
|
189
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
189
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#111
|
190
190
|
def execute_runner; end
|
191
191
|
|
192
192
|
# @api private
|
193
193
|
#
|
194
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
194
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#136
|
195
195
|
def existing_configuration(config_file); end
|
196
196
|
|
197
197
|
# @api private
|
198
198
|
#
|
199
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
199
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#65
|
200
200
|
def line_length_cop(config); end
|
201
201
|
|
202
202
|
# @api private
|
203
203
|
# @return [Boolean]
|
204
204
|
#
|
205
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
205
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#53
|
206
206
|
def line_length_enabled?(config); end
|
207
207
|
|
208
208
|
# @api private
|
209
209
|
#
|
210
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
210
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#61
|
211
211
|
def max_line_length(config); end
|
212
212
|
|
213
213
|
# @api private
|
214
214
|
#
|
215
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
215
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#34
|
216
216
|
def maybe_run_line_length_cop; end
|
217
217
|
|
218
218
|
# @api private
|
219
219
|
# @return [Boolean]
|
220
220
|
#
|
221
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
221
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#73
|
222
|
+
def only_exclude?; end
|
223
|
+
|
224
|
+
# @api private
|
225
|
+
# @return [Boolean]
|
226
|
+
#
|
227
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#162
|
222
228
|
def options_config_in_root?; end
|
223
229
|
|
224
230
|
# @api private
|
225
231
|
# @return [Boolean]
|
226
232
|
#
|
227
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
233
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#69
|
228
234
|
def options_has_only_flag?; end
|
229
235
|
|
230
236
|
# @api private
|
231
237
|
#
|
232
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
238
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#153
|
233
239
|
def relative_path_to_todo_from_options_config; end
|
234
240
|
|
235
241
|
# @api private
|
236
242
|
#
|
237
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
243
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#100
|
238
244
|
def reset_config_and_auto_gen_file; end
|
239
245
|
|
240
246
|
# @api private
|
241
247
|
#
|
242
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
248
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#91
|
243
249
|
def run_all_cops(line_length_contents); end
|
244
250
|
|
245
251
|
# Do an initial run with only Layout/LineLength so that cops that
|
@@ -248,23 +254,23 @@ class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
|
|
248
254
|
#
|
249
255
|
# @api private
|
250
256
|
#
|
251
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
257
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#80
|
252
258
|
def run_line_length_cop; end
|
253
259
|
|
254
260
|
# @api private
|
255
261
|
# @return [Boolean]
|
256
262
|
#
|
257
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
263
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#57
|
258
264
|
def same_max_line_length?(config1, config2); end
|
259
265
|
|
260
266
|
# @api private
|
261
267
|
#
|
262
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
268
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#48
|
263
269
|
def skip_line_length_cop(reason); end
|
264
270
|
|
265
271
|
# @api private
|
266
272
|
#
|
267
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
273
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#142
|
268
274
|
def write_config_file(file_name, file_string, rubocop_yml_contents); end
|
269
275
|
end
|
270
276
|
|
@@ -291,7 +297,12 @@ RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(n
|
|
291
297
|
# @api private
|
292
298
|
#
|
293
299
|
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#20
|
294
|
-
RuboCop::CLI::Command::AutoGenerateConfig::
|
300
|
+
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED_ONLY_COPS = T.let(T.unsafe(nil), String)
|
301
|
+
|
302
|
+
# @api private
|
303
|
+
#
|
304
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#22
|
305
|
+
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED_ONLY_EXCLUDE = T.let(T.unsafe(nil), String)
|
295
306
|
|
296
307
|
# @api private
|
297
308
|
#
|
@@ -752,7 +763,7 @@ class RuboCop::CommentConfig
|
|
752
763
|
|
753
764
|
# @return [CommentConfig] a new instance of CommentConfig
|
754
765
|
#
|
755
|
-
# source://standard/1.
|
766
|
+
# source://standard/1.35.1/lib/standard/rubocop/ext.rb#20
|
756
767
|
def initialize(processed_source); end
|
757
768
|
|
758
769
|
# @return [Boolean]
|
@@ -991,7 +1002,7 @@ class RuboCop::Config
|
|
991
1002
|
# source://rubocop//lib/rubocop/config.rb#237
|
992
1003
|
def base_dir_for_path_parameters; end
|
993
1004
|
|
994
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1005
|
+
# source://rubocop//lib/rubocop/config.rb#266
|
995
1006
|
def bundler_lock_file_path; end
|
996
1007
|
|
997
1008
|
# source://rubocop//lib/rubocop/config.rb#51
|
@@ -1067,7 +1078,7 @@ class RuboCop::Config
|
|
1067
1078
|
# source://rubocop//lib/rubocop/config.rb#153
|
1068
1079
|
def for_department(department_name); end
|
1069
1080
|
|
1070
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1081
|
+
# source://rubocop//lib/rubocop/config.rb#289
|
1071
1082
|
def inspect; end
|
1072
1083
|
|
1073
1084
|
# True if this is a config file that is shipped with RuboCop
|
@@ -1100,6 +1111,9 @@ class RuboCop::Config
|
|
1100
1111
|
# source://forwardable/1.3.3/forwardable.rb#231
|
1101
1112
|
def merge(*args, **_arg1, &block); end
|
1102
1113
|
|
1114
|
+
# source://rubocop//lib/rubocop/config.rb#247
|
1115
|
+
def parser_engine; end
|
1116
|
+
|
1103
1117
|
# source://rubocop//lib/rubocop/config.rb#228
|
1104
1118
|
def path_relative_to_config(path); end
|
1105
1119
|
|
@@ -1109,7 +1123,7 @@ class RuboCop::Config
|
|
1109
1123
|
# source://rubocop//lib/rubocop/config.rb#220
|
1110
1124
|
def patterns_to_include; end
|
1111
1125
|
|
1112
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1126
|
+
# source://rubocop//lib/rubocop/config.rb#277
|
1113
1127
|
def pending_cops; end
|
1114
1128
|
|
1115
1129
|
# Returns true if there's a chance that an Include pattern matches hidden
|
@@ -1126,10 +1140,10 @@ class RuboCop::Config
|
|
1126
1140
|
# source://rubocop//lib/rubocop/config.rb#71
|
1127
1141
|
def signature; end
|
1128
1142
|
|
1129
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1143
|
+
# source://rubocop//lib/rubocop/config.rb#262
|
1130
1144
|
def smart_loaded_path; end
|
1131
1145
|
|
1132
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1146
|
+
# source://rubocop//lib/rubocop/config.rb#251
|
1133
1147
|
def target_rails_version; end
|
1134
1148
|
|
1135
1149
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -1155,18 +1169,18 @@ class RuboCop::Config
|
|
1155
1169
|
|
1156
1170
|
private
|
1157
1171
|
|
1158
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1172
|
+
# source://rubocop//lib/rubocop/config.rb#324
|
1159
1173
|
def department_of(qualified_cop_name); end
|
1160
1174
|
|
1161
1175
|
# @return [Boolean]
|
1162
1176
|
#
|
1163
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1177
|
+
# source://rubocop//lib/rubocop/config.rb#312
|
1164
1178
|
def enable_cop?(qualified_cop_name, cop_options); end
|
1165
1179
|
|
1166
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1180
|
+
# source://rubocop//lib/rubocop/config.rb#299
|
1167
1181
|
def read_rails_version_from_bundler_lock_file; end
|
1168
1182
|
|
1169
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1183
|
+
# source://rubocop//lib/rubocop/config.rb#295
|
1170
1184
|
def target_rails_version_from_bundler_lock_file; end
|
1171
1185
|
|
1172
1186
|
class << self
|
@@ -2907,7 +2921,7 @@ class RuboCop::Cop::Base
|
|
2907
2921
|
|
2908
2922
|
# @return [Boolean]
|
2909
2923
|
#
|
2910
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2924
|
+
# source://rubocop//lib/rubocop/cop/base.rb#243
|
2911
2925
|
def active_support_extensions_enabled?; end
|
2912
2926
|
|
2913
2927
|
# Adds an offense that has no particular location.
|
@@ -2927,19 +2941,19 @@ class RuboCop::Cop::Base
|
|
2927
2941
|
# @api private
|
2928
2942
|
# @return [Boolean]
|
2929
2943
|
#
|
2930
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2944
|
+
# source://rubocop//lib/rubocop/cop/base.rb#313
|
2931
2945
|
def always_autocorrect?; end
|
2932
2946
|
|
2933
2947
|
# Called before any investigation
|
2934
2948
|
#
|
2935
2949
|
# @api private
|
2936
2950
|
#
|
2937
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2951
|
+
# source://rubocop//lib/rubocop/cop/base.rb#299
|
2938
2952
|
def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end
|
2939
2953
|
|
2940
2954
|
# @api private
|
2941
2955
|
#
|
2942
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2956
|
+
# source://rubocop//lib/rubocop/cop/base.rb#284
|
2943
2957
|
def callbacks_needed; end
|
2944
2958
|
|
2945
2959
|
# Returns the value of attribute config.
|
@@ -2956,7 +2970,7 @@ class RuboCop::Cop::Base
|
|
2956
2970
|
# @api private
|
2957
2971
|
# @return [Boolean]
|
2958
2972
|
#
|
2959
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2973
|
+
# source://rubocop//lib/rubocop/cop/base.rb#319
|
2960
2974
|
def contextual_autocorrect?; end
|
2961
2975
|
|
2962
2976
|
# Configuration Helpers
|
@@ -2969,7 +2983,7 @@ class RuboCop::Cop::Base
|
|
2969
2983
|
|
2970
2984
|
# @return [Boolean]
|
2971
2985
|
#
|
2972
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2986
|
+
# source://rubocop//lib/rubocop/cop/base.rb#255
|
2973
2987
|
def excluded_file?(file); end
|
2974
2988
|
|
2975
2989
|
# This method should be overridden when a cop's behavior depends
|
@@ -2991,7 +3005,7 @@ class RuboCop::Cop::Base
|
|
2991
3005
|
# source://rubocop//lib/rubocop/cop/base.rb#205
|
2992
3006
|
def external_dependency_checksum; end
|
2993
3007
|
|
2994
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3008
|
+
# source://rubocop//lib/rubocop/cop/base.rb#323
|
2995
3009
|
def inspect; end
|
2996
3010
|
|
2997
3011
|
# Gets called if no message is specified when calling `add_offense` or
|
@@ -3006,7 +3020,7 @@ class RuboCop::Cop::Base
|
|
3006
3020
|
|
3007
3021
|
# @deprecated Make potential errors with previous API more obvious
|
3008
3022
|
#
|
3009
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3023
|
+
# source://rubocop//lib/rubocop/cop/base.rb#275
|
3010
3024
|
def offenses; end
|
3011
3025
|
|
3012
3026
|
# Called after all on_... have been called
|
@@ -3029,9 +3043,12 @@ class RuboCop::Cop::Base
|
|
3029
3043
|
|
3030
3044
|
# There should be very limited reasons for a Cop to do it's own parsing
|
3031
3045
|
#
|
3032
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3046
|
+
# source://rubocop//lib/rubocop/cop/base.rb#260
|
3033
3047
|
def parse(source, path = T.unsafe(nil)); end
|
3034
3048
|
|
3049
|
+
# source://rubocop//lib/rubocop/cop/base.rb#235
|
3050
|
+
def parser_engine; end
|
3051
|
+
|
3035
3052
|
# Returns the value of attribute processed_source.
|
3036
3053
|
#
|
3037
3054
|
# source://rubocop//lib/rubocop/cop/base.rb#43
|
@@ -3041,15 +3058,15 @@ class RuboCop::Cop::Base
|
|
3041
3058
|
#
|
3042
3059
|
# @api private
|
3043
3060
|
#
|
3044
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3061
|
+
# source://rubocop//lib/rubocop/cop/base.rb#266
|
3045
3062
|
def ready; end
|
3046
3063
|
|
3047
3064
|
# @return [Boolean]
|
3048
3065
|
#
|
3049
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3066
|
+
# source://rubocop//lib/rubocop/cop/base.rb#247
|
3050
3067
|
def relevant_file?(file); end
|
3051
3068
|
|
3052
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3069
|
+
# source://rubocop//lib/rubocop/cop/base.rb#239
|
3053
3070
|
def target_rails_version; end
|
3054
3071
|
|
3055
3072
|
# source://rubocop//lib/rubocop/cop/base.rb#231
|
@@ -3057,83 +3074,83 @@ class RuboCop::Cop::Base
|
|
3057
3074
|
|
3058
3075
|
private
|
3059
3076
|
|
3060
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3077
|
+
# source://rubocop//lib/rubocop/cop/base.rb#451
|
3061
3078
|
def annotate(message); end
|
3062
3079
|
|
3063
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3080
|
+
# source://rubocop//lib/rubocop/cop/base.rb#335
|
3064
3081
|
def apply_correction(corrector); end
|
3065
3082
|
|
3066
3083
|
# @return [Symbol] offense status
|
3067
3084
|
#
|
3068
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3085
|
+
# source://rubocop//lib/rubocop/cop/base.rb#415
|
3069
3086
|
def attempt_correction(range, corrector); end
|
3070
3087
|
|
3071
3088
|
# Reserved for Cop::Cop
|
3072
3089
|
#
|
3073
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3090
|
+
# source://rubocop//lib/rubocop/cop/base.rb#331
|
3074
3091
|
def callback_argument(range); end
|
3075
3092
|
|
3076
3093
|
# Called to complete an investigation
|
3077
3094
|
#
|
3078
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3095
|
+
# source://rubocop//lib/rubocop/cop/base.rb#364
|
3079
3096
|
def complete_investigation; end
|
3080
3097
|
|
3081
3098
|
# @return [Symbol, Corrector] offense status
|
3082
3099
|
#
|
3083
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3100
|
+
# source://rubocop//lib/rubocop/cop/base.rb#389
|
3084
3101
|
def correct(range); end
|
3085
3102
|
|
3086
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3103
|
+
# source://rubocop//lib/rubocop/cop/base.rb#349
|
3087
3104
|
def current_corrector; end
|
3088
3105
|
|
3089
3106
|
# Reserved for Commissioner:
|
3090
3107
|
#
|
3091
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3108
|
+
# source://rubocop//lib/rubocop/cop/base.rb#341
|
3092
3109
|
def current_offense_locations; end
|
3093
3110
|
|
3094
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3111
|
+
# source://rubocop//lib/rubocop/cop/base.rb#353
|
3095
3112
|
def current_offenses; end
|
3096
3113
|
|
3097
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3114
|
+
# source://rubocop//lib/rubocop/cop/base.rb#345
|
3098
3115
|
def currently_disabled_lines; end
|
3099
3116
|
|
3100
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3117
|
+
# source://rubocop//lib/rubocop/cop/base.rb#479
|
3101
3118
|
def custom_severity; end
|
3102
3119
|
|
3103
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3120
|
+
# source://rubocop//lib/rubocop/cop/base.rb#475
|
3104
3121
|
def default_severity; end
|
3105
3122
|
|
3106
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3123
|
+
# source://rubocop//lib/rubocop/cop/base.rb#429
|
3107
3124
|
def disable_uncorrectable(range); end
|
3108
3125
|
|
3109
3126
|
# @return [Boolean]
|
3110
3127
|
#
|
3111
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3128
|
+
# source://rubocop//lib/rubocop/cop/base.rb#465
|
3112
3129
|
def enabled_line?(line_number); end
|
3113
3130
|
|
3114
3131
|
# @return [Boolean]
|
3115
3132
|
#
|
3116
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3133
|
+
# source://rubocop//lib/rubocop/cop/base.rb#457
|
3117
3134
|
def file_name_matches_any?(file, parameter, default_result); end
|
3118
3135
|
|
3119
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3136
|
+
# source://rubocop//lib/rubocop/cop/base.rb#447
|
3120
3137
|
def find_message(range, message); end
|
3121
3138
|
|
3122
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3139
|
+
# source://rubocop//lib/rubocop/cop/base.rb#471
|
3123
3140
|
def find_severity(_range, severity); end
|
3124
3141
|
|
3125
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3142
|
+
# source://rubocop//lib/rubocop/cop/base.rb#492
|
3126
3143
|
def range_for_original(range); end
|
3127
3144
|
|
3128
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3145
|
+
# source://rubocop//lib/rubocop/cop/base.rb#436
|
3129
3146
|
def range_from_node_or_range(node_or_range); end
|
3130
3147
|
|
3131
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3148
|
+
# source://rubocop//lib/rubocop/cop/base.rb#384
|
3132
3149
|
def reset_investigation; end
|
3133
3150
|
|
3134
3151
|
# @return [Symbol] offense status
|
3135
3152
|
#
|
3136
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3153
|
+
# source://rubocop//lib/rubocop/cop/base.rb#404
|
3137
3154
|
def use_corrector(range, corrector); end
|
3138
3155
|
|
3139
3156
|
class << self
|
@@ -3153,7 +3170,7 @@ class RuboCop::Cop::Base
|
|
3153
3170
|
|
3154
3171
|
# @api private
|
3155
3172
|
#
|
3156
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3173
|
+
# source://rubocop//lib/rubocop/cop/base.rb#289
|
3157
3174
|
def callbacks_needed; end
|
3158
3175
|
|
3159
3176
|
# source://rubocop//lib/rubocop/cop/base.rb#93
|
@@ -3223,15 +3240,15 @@ class RuboCop::Cop::Base
|
|
3223
3240
|
|
3224
3241
|
# @return [Boolean]
|
3225
3242
|
#
|
3226
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3243
|
+
# source://rubocop//lib/rubocop/cop/base.rb#375
|
3227
3244
|
def builtin?; end
|
3228
3245
|
|
3229
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3246
|
+
# source://rubocop//lib/rubocop/cop/base.rb#357
|
3230
3247
|
def restrict_on_send; end
|
3231
3248
|
end
|
3232
3249
|
end
|
3233
3250
|
|
3234
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3251
|
+
# source://rubocop//lib/rubocop/cop/base.rb#361
|
3235
3252
|
RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array)
|
3236
3253
|
|
3237
3254
|
# Reports of an investigation.
|
@@ -6117,7 +6134,7 @@ class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base
|
|
6117
6134
|
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#78
|
6118
6135
|
def on_new_investigation; end
|
6119
6136
|
|
6120
|
-
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#
|
6137
|
+
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#84
|
6121
6138
|
def on_send(node); end
|
6122
6139
|
|
6123
6140
|
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#65
|
@@ -6127,13 +6144,13 @@ class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base
|
|
6127
6144
|
|
6128
6145
|
# @return [Boolean]
|
6129
6146
|
#
|
6130
|
-
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#
|
6147
|
+
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#96
|
6131
6148
|
def dynamic_version?(node); end
|
6132
6149
|
|
6133
|
-
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#
|
6150
|
+
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#102
|
6134
6151
|
def extract_ruby_version(required_ruby_version); end
|
6135
6152
|
|
6136
|
-
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#
|
6153
|
+
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#120
|
6137
6154
|
def not_equal_message(required_ruby_version, target_ruby_version); end
|
6138
6155
|
end
|
6139
6156
|
|
@@ -8916,15 +8933,19 @@ class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Base
|
|
8916
8933
|
|
8917
8934
|
private
|
8918
8935
|
|
8936
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#61
|
8937
|
+
def comments_before_code(source); end
|
8938
|
+
|
8919
8939
|
# Find the last magic comment in the source file.
|
8920
8940
|
#
|
8921
|
-
# Take all comments that precede the first line of code
|
8941
|
+
# Take all comments that precede the first line of code (or just take
|
8942
|
+
# them all in the case when there is no code), select the
|
8922
8943
|
# magic comments, and return the last magic comment in the file.
|
8923
8944
|
#
|
8924
8945
|
# @return [Parser::Source::Comment] if magic comments exist before code
|
8925
8946
|
# @return [nil] otherwise
|
8926
8947
|
#
|
8927
|
-
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#
|
8948
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#55
|
8928
8949
|
def last_magic_comment(source); end
|
8929
8950
|
|
8930
8951
|
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#43
|
@@ -14121,17 +14142,17 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
|
|
14121
14142
|
|
14122
14143
|
# @return [Boolean]
|
14123
14144
|
#
|
14124
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14145
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#133
|
14125
14146
|
def comment_within?(node); end
|
14126
14147
|
|
14127
14148
|
# @return [Boolean]
|
14128
14149
|
#
|
14129
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14150
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#103
|
14130
14151
|
def configured_to_not_be_inspected?(node); end
|
14131
14152
|
|
14132
14153
|
# @return [Boolean]
|
14133
14154
|
#
|
14134
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14155
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#127
|
14135
14156
|
def convertible_block?(node); end
|
14136
14157
|
|
14137
14158
|
# @return [Boolean]
|
@@ -14141,10 +14162,10 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
|
|
14141
14162
|
|
14142
14163
|
# @return [Boolean]
|
14143
14164
|
#
|
14144
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14165
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#97
|
14145
14166
|
def index_access_call_chained?(node); end
|
14146
14167
|
|
14147
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14168
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#155
|
14148
14169
|
def max_line_length; end
|
14149
14170
|
|
14150
14171
|
# @return [Boolean]
|
@@ -14154,7 +14175,7 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
|
|
14154
14175
|
|
14155
14176
|
# @return [Boolean]
|
14156
14177
|
#
|
14157
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14178
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#110
|
14158
14179
|
def other_cop_takes_precedence?(node); end
|
14159
14180
|
|
14160
14181
|
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#79
|
@@ -14162,20 +14183,25 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
|
|
14162
14183
|
|
14163
14184
|
# @return [Boolean]
|
14164
14185
|
#
|
14165
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14186
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#93
|
14187
|
+
def require_backslash?(node); end
|
14188
|
+
|
14189
|
+
# @return [Boolean]
|
14190
|
+
#
|
14191
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#116
|
14166
14192
|
def single_line_block_chain_enabled?; end
|
14167
14193
|
|
14168
14194
|
# @return [Boolean]
|
14169
14195
|
#
|
14170
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14196
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#120
|
14171
14197
|
def suitable_as_single_line?(node); end
|
14172
14198
|
|
14173
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14199
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#146
|
14174
14200
|
def to_single_line(source); end
|
14175
14201
|
|
14176
14202
|
# @return [Boolean]
|
14177
14203
|
#
|
14178
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14204
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#141
|
14179
14205
|
def too_long?(node); end
|
14180
14206
|
end
|
14181
14207
|
|
@@ -16900,7 +16926,7 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
|
|
16900
16926
|
include ::RuboCop::Cop::SafeAssignment
|
16901
16927
|
extend ::RuboCop::Cop::AutoCorrector
|
16902
16928
|
|
16903
|
-
# source://standard/1.
|
16929
|
+
# source://standard/1.35.1/lib/standard/rubocop/ext.rb#4
|
16904
16930
|
def message(_); end
|
16905
16931
|
|
16906
16932
|
# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
@@ -22448,15 +22474,15 @@ class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base
|
|
22448
22474
|
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36
|
22449
22475
|
def on_numblock(node); end
|
22450
22476
|
|
22451
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#
|
22477
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#57
|
22452
22478
|
def redundant_with_index?(param0 = T.unsafe(nil)); end
|
22453
22479
|
|
22454
22480
|
private
|
22455
22481
|
|
22456
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#
|
22482
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#67
|
22457
22483
|
def message(node); end
|
22458
22484
|
|
22459
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#
|
22485
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#75
|
22460
22486
|
def with_index_range(send); end
|
22461
22487
|
end
|
22462
22488
|
|
@@ -23811,12 +23837,12 @@ class RuboCop::Cop::Lint::ToEnumArguments < ::RuboCop::Cop::Base
|
|
23811
23837
|
|
23812
23838
|
# @return [Boolean]
|
23813
23839
|
#
|
23814
|
-
# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#
|
23840
|
+
# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#83
|
23815
23841
|
def argument_match?(send_arg, def_arg); end
|
23816
23842
|
|
23817
23843
|
# @return [Boolean]
|
23818
23844
|
#
|
23819
|
-
# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#
|
23845
|
+
# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#68
|
23820
23846
|
def arguments_match?(arguments, def_node); end
|
23821
23847
|
end
|
23822
23848
|
|
@@ -36662,7 +36688,7 @@ class RuboCop::Cop::Style::For < ::RuboCop::Cop::Base
|
|
36662
36688
|
|
36663
36689
|
# @return [Boolean]
|
36664
36690
|
#
|
36665
|
-
# source://rubocop//lib/rubocop/cop/style/for.rb#
|
36691
|
+
# source://rubocop//lib/rubocop/cop/style/for.rb#84
|
36666
36692
|
def suspect_enumerable?(node); end
|
36667
36693
|
end
|
36668
36694
|
|
@@ -41247,33 +41273,33 @@ class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base
|
|
41247
41273
|
|
41248
41274
|
private
|
41249
41275
|
|
41250
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41276
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#69
|
41251
41277
|
def arguments_range(node); end
|
41252
41278
|
|
41253
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41279
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#42
|
41254
41280
|
def autocorrect(corrector, node, begin_of_arguments); end
|
41255
41281
|
|
41256
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41282
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#81
|
41257
41283
|
def closing_line(node); end
|
41258
41284
|
|
41259
41285
|
# @return [Boolean]
|
41260
41286
|
#
|
41261
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41287
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#85
|
41262
41288
|
def correction_exceeds_max_line_length?(node); end
|
41263
41289
|
|
41264
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41290
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#93
|
41265
41291
|
def definition_width(node); end
|
41266
41292
|
|
41267
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41293
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#89
|
41268
41294
|
def indentation_width(node); end
|
41269
41295
|
|
41270
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41296
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#65
|
41271
41297
|
def last_line_source_of_arguments(arguments); end
|
41272
41298
|
|
41273
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41299
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#97
|
41274
41300
|
def max_line_length; end
|
41275
41301
|
|
41276
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41302
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#77
|
41277
41303
|
def opening_line(node); end
|
41278
41304
|
end
|
41279
41305
|
|
@@ -42353,17 +42379,17 @@ class RuboCop::Cop::Style::NilComparison < ::RuboCop::Cop::Base
|
|
42353
42379
|
|
42354
42380
|
private
|
42355
42381
|
|
42356
|
-
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#
|
42382
|
+
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#67
|
42357
42383
|
def message(_node); end
|
42358
42384
|
|
42359
42385
|
# @return [Boolean]
|
42360
42386
|
#
|
42361
|
-
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#
|
42387
|
+
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#79
|
42362
42388
|
def prefer_comparison?; end
|
42363
42389
|
|
42364
42390
|
# @return [Boolean]
|
42365
42391
|
#
|
42366
|
-
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#
|
42392
|
+
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#71
|
42367
42393
|
def style_check?(node, &block); end
|
42368
42394
|
end
|
42369
42395
|
|
@@ -53645,171 +53671,176 @@ RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Set)
|
|
53645
53671
|
class RuboCop::DirectiveComment
|
53646
53672
|
# @return [DirectiveComment] a new instance of DirectiveComment
|
53647
53673
|
#
|
53648
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53674
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#32
|
53649
53675
|
def initialize(comment, cop_registry = T.unsafe(nil)); end
|
53650
53676
|
|
53651
53677
|
# Checks if all cops specified in this directive
|
53652
53678
|
#
|
53653
53679
|
# @return [Boolean]
|
53654
53680
|
#
|
53655
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53681
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#82
|
53656
53682
|
def all_cops?; end
|
53657
53683
|
|
53658
53684
|
# Returns the value of attribute comment.
|
53659
53685
|
#
|
53660
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53686
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#30
|
53661
53687
|
def comment; end
|
53662
53688
|
|
53663
53689
|
# Returns array of specified in this directive cop names
|
53664
53690
|
#
|
53665
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53691
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#87
|
53666
53692
|
def cop_names; end
|
53667
53693
|
|
53668
53694
|
# Returns the value of attribute cop_registry.
|
53669
53695
|
#
|
53670
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53696
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#30
|
53671
53697
|
def cop_registry; end
|
53672
53698
|
|
53673
53699
|
# Returns the value of attribute cops.
|
53674
53700
|
#
|
53675
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53701
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#30
|
53676
53702
|
def cops; end
|
53677
53703
|
|
53678
53704
|
# Returns array of specified in this directive department names
|
53679
53705
|
# when all department disabled
|
53680
53706
|
#
|
53681
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53707
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#93
|
53682
53708
|
def department_names; end
|
53683
53709
|
|
53684
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53710
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#107
|
53685
53711
|
def directive_count; end
|
53686
53712
|
|
53687
53713
|
# Checks if this directive disables cops
|
53688
53714
|
#
|
53689
53715
|
# @return [Boolean]
|
53690
53716
|
#
|
53691
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53717
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#62
|
53692
53718
|
def disabled?; end
|
53693
53719
|
|
53694
53720
|
# Checks if this directive disables all cops
|
53695
53721
|
#
|
53696
53722
|
# @return [Boolean]
|
53697
53723
|
#
|
53698
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53724
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#77
|
53699
53725
|
def disabled_all?; end
|
53700
53726
|
|
53701
53727
|
# Checks if this directive enables cops
|
53702
53728
|
#
|
53703
53729
|
# @return [Boolean]
|
53704
53730
|
#
|
53705
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53731
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#67
|
53706
53732
|
def enabled?; end
|
53707
53733
|
|
53708
53734
|
# Checks if this directive enables all cops
|
53709
53735
|
#
|
53710
53736
|
# @return [Boolean]
|
53711
53737
|
#
|
53712
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53738
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#72
|
53713
53739
|
def enabled_all?; end
|
53714
53740
|
|
53715
53741
|
# Checks if directive departments include cop
|
53716
53742
|
#
|
53717
53743
|
# @return [Boolean]
|
53718
53744
|
#
|
53719
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53745
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#98
|
53720
53746
|
def in_directive_department?(cop); end
|
53721
53747
|
|
53722
53748
|
# Returns line number for directive
|
53723
53749
|
#
|
53724
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53750
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#112
|
53725
53751
|
def line_number; end
|
53726
53752
|
|
53727
53753
|
# Checks if this directive contains all the given cop names
|
53728
53754
|
#
|
53729
53755
|
# @return [Boolean]
|
53730
53756
|
#
|
53731
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53757
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#44
|
53732
53758
|
def match?(cop_names); end
|
53733
53759
|
|
53734
53760
|
# Returns match captures to directive comment pattern
|
53735
53761
|
#
|
53736
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53762
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#57
|
53737
53763
|
def match_captures; end
|
53738
53764
|
|
53739
53765
|
# Returns the value of attribute mode.
|
53740
53766
|
#
|
53741
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53767
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#30
|
53742
53768
|
def mode; end
|
53743
53769
|
|
53744
53770
|
# Checks if cop department has already used in directive comment
|
53745
53771
|
#
|
53746
53772
|
# @return [Boolean]
|
53747
53773
|
#
|
53748
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53774
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#103
|
53749
53775
|
def overridden_by_department?(cop); end
|
53750
53776
|
|
53751
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53777
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#48
|
53752
53778
|
def range; end
|
53753
53779
|
|
53754
53780
|
# Checks if this directive relates to single line
|
53755
53781
|
#
|
53756
53782
|
# @return [Boolean]
|
53757
53783
|
#
|
53758
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53784
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#39
|
53759
53785
|
def single_line?; end
|
53760
53786
|
|
53761
53787
|
private
|
53762
53788
|
|
53763
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53789
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#133
|
53764
53790
|
def all_cop_names; end
|
53765
53791
|
|
53766
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53792
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#137
|
53767
53793
|
def cop_names_for_department(department); end
|
53768
53794
|
|
53769
53795
|
# @return [Boolean]
|
53770
53796
|
#
|
53771
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53797
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#129
|
53772
53798
|
def department?(name); end
|
53773
53799
|
|
53774
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53775
|
-
def
|
53800
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#142
|
53801
|
+
def exclude_lint_department_cops(cops); end
|
53776
53802
|
|
53777
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53803
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#122
|
53778
53804
|
def parsed_cop_names; end
|
53779
53805
|
|
53780
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53806
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#118
|
53781
53807
|
def splitted_cops_string; end
|
53782
53808
|
|
53783
53809
|
class << self
|
53784
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53810
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#26
|
53785
53811
|
def before_comment(line); end
|
53786
53812
|
end
|
53787
53813
|
end
|
53788
53814
|
|
53789
53815
|
# @api private
|
53790
53816
|
#
|
53791
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53817
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#19
|
53792
53818
|
RuboCop::DirectiveComment::COPS_PATTERN = T.let(T.unsafe(nil), String)
|
53793
53819
|
|
53794
53820
|
# @api private
|
53795
53821
|
#
|
53796
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53822
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#17
|
53797
53823
|
RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String)
|
53798
53824
|
|
53799
53825
|
# @api private
|
53800
53826
|
#
|
53801
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53827
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#15
|
53802
53828
|
RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String)
|
53803
53829
|
|
53830
|
+
# @api private
|
53831
|
+
#
|
53832
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#9
|
53833
|
+
RuboCop::DirectiveComment::LINT_DEPARTMENT = T.let(T.unsafe(nil), String)
|
53834
|
+
|
53804
53835
|
# @api private
|
53805
53836
|
#
|
53806
53837
|
# source://rubocop//lib/rubocop/directive_comment.rb#11
|
53807
|
-
RuboCop::DirectiveComment::
|
53838
|
+
RuboCop::DirectiveComment::LINT_REDUNDANT_DIRECTIVE_COP = T.let(T.unsafe(nil), String)
|
53808
53839
|
|
53809
53840
|
# @api private
|
53810
53841
|
#
|
53811
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53812
|
-
RuboCop::DirectiveComment::
|
53842
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#13
|
53843
|
+
RuboCop::DirectiveComment::LINT_SYNTAX_COP = T.let(T.unsafe(nil), String)
|
53813
53844
|
|
53814
53845
|
# An Error exception is different from an Offense with severity 'error'
|
53815
53846
|
# When this exception is raised, it means that RuboCop is unable to perform
|
@@ -56773,7 +56804,7 @@ class RuboCop::Runner
|
|
56773
56804
|
# source://rubocop//lib/rubocop/runner.rb#414
|
56774
56805
|
def formatter_set; end
|
56775
56806
|
|
56776
|
-
# source://rubocop//lib/rubocop/runner.rb#
|
56807
|
+
# source://rubocop//lib/rubocop/runner.rb#471
|
56777
56808
|
def get_processed_source(file); end
|
56778
56809
|
|
56779
56810
|
# source://rubocop//lib/rubocop/runner.rb#342
|
@@ -56824,7 +56855,7 @@ class RuboCop::Runner
|
|
56824
56855
|
# otherwise dormant team that can be used for config- and option-
|
56825
56856
|
# level caching in ResultCache.
|
56826
56857
|
#
|
56827
|
-
# source://rubocop//lib/rubocop/runner.rb#
|
56858
|
+
# source://rubocop//lib/rubocop/runner.rb#499
|
56828
56859
|
def standby_team(config); end
|
56829
56860
|
|
56830
56861
|
# @return [Boolean]
|
@@ -56921,173 +56952,180 @@ RuboCop::StringInterpreter::STRING_ESCAPES = T.let(T.unsafe(nil), Hash)
|
|
56921
56952
|
# source://rubocop//lib/rubocop/string_interpreter.rb#12
|
56922
56953
|
RuboCop::StringInterpreter::STRING_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp)
|
56923
56954
|
|
56924
|
-
# This class finds target files to inspect by scanning the directory tree
|
56925
|
-
# and picking ruby files.
|
56955
|
+
# This class finds target files to inspect by scanning the directory tree and picking ruby files.
|
56926
56956
|
#
|
56927
56957
|
# @api private
|
56928
56958
|
#
|
56929
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56959
|
+
# source://rubocop//lib/rubocop/target_finder.rb#6
|
56930
56960
|
class RuboCop::TargetFinder
|
56931
56961
|
# @api private
|
56932
56962
|
# @return [TargetFinder] a new instance of TargetFinder
|
56933
56963
|
#
|
56934
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56964
|
+
# source://rubocop//lib/rubocop/target_finder.rb#9
|
56935
56965
|
def initialize(config_store, options = T.unsafe(nil)); end
|
56936
56966
|
|
56967
|
+
# Generate a list of target files by expanding globbing patterns (if any). If args is empty,
|
56968
|
+
# recursively find all Ruby source files under the current directory
|
56969
|
+
#
|
56937
56970
|
# @api private
|
56971
|
+
# @return [Array] array of file paths
|
56938
56972
|
#
|
56939
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56940
|
-
def
|
56973
|
+
# source://rubocop//lib/rubocop/target_finder.rb#17
|
56974
|
+
def find(args, mode); end
|
56975
|
+
|
56976
|
+
# Search for files recursively starting at the given base directory using the given flags that
|
56977
|
+
# determine how the match is made. Excluded files will be removed later by the caller, but as an
|
56978
|
+
# optimization find_files removes the top level directories that are excluded in configuration
|
56979
|
+
# in the normal way (dir/**/*).
|
56980
|
+
#
|
56981
|
+
# @api private
|
56982
|
+
#
|
56983
|
+
# source://rubocop//lib/rubocop/target_finder.rb#58
|
56984
|
+
def find_files(base_dir, flags); end
|
56985
|
+
|
56986
|
+
# Finds all Ruby source files under the current or other supplied directory. A Ruby source file
|
56987
|
+
# is defined as a file with the `.rb` extension or a file with no extension that has a ruby
|
56988
|
+
# shebang line as its first line.
|
56989
|
+
# It is possible to specify includes and excludes using the config file, so you can include
|
56990
|
+
# other Ruby files like Rakefiles and gemspecs.
|
56991
|
+
#
|
56992
|
+
# @api private
|
56993
|
+
# @param base_dir Root directory under which to search for
|
56994
|
+
# ruby source files
|
56995
|
+
# @return [Array] Array of filenames
|
56996
|
+
#
|
56997
|
+
# source://rubocop//lib/rubocop/target_finder.rb#41
|
56998
|
+
def target_files_in_dir(base_dir = T.unsafe(nil)); end
|
56999
|
+
|
57000
|
+
private
|
56941
57001
|
|
56942
57002
|
# @api private
|
56943
57003
|
#
|
56944
57004
|
# source://rubocop//lib/rubocop/target_finder.rb#120
|
57005
|
+
def all_cops_include; end
|
57006
|
+
|
57007
|
+
# @api private
|
57008
|
+
#
|
57009
|
+
# source://rubocop//lib/rubocop/target_finder.rb#106
|
56945
57010
|
def combined_exclude_glob_patterns(base_dir); end
|
56946
57011
|
|
56947
57012
|
# @api private
|
56948
57013
|
# @return [Boolean]
|
56949
57014
|
#
|
56950
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57015
|
+
# source://rubocop//lib/rubocop/target_finder.rb#172
|
56951
57016
|
def configured_include?(file); end
|
56952
57017
|
|
56953
57018
|
# @api private
|
56954
57019
|
# @return [Boolean]
|
56955
57020
|
#
|
56956
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57021
|
+
# source://rubocop//lib/rubocop/target_finder.rb#208
|
56957
57022
|
def debug?; end
|
56958
57023
|
|
56959
57024
|
# @api private
|
56960
57025
|
# @return [Boolean]
|
56961
57026
|
#
|
56962
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57027
|
+
# source://rubocop//lib/rubocop/target_finder.rb#212
|
56963
57028
|
def fail_fast?; end
|
56964
57029
|
|
56965
|
-
# Generate a list of target files by expanding globbing patterns
|
56966
|
-
# (if any). If args is empty, recursively find all Ruby source
|
56967
|
-
# files under the current directory
|
56968
|
-
#
|
56969
57030
|
# @api private
|
56970
|
-
# @return [
|
57031
|
+
# @return [Boolean]
|
56971
57032
|
#
|
56972
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56973
|
-
def
|
57033
|
+
# source://rubocop//lib/rubocop/target_finder.rb#200
|
57034
|
+
def force_exclusion?; end
|
56974
57035
|
|
56975
|
-
# Search for files recursively starting at the given base directory using
|
56976
|
-
# the given flags that determine how the match is made. Excluded files will
|
56977
|
-
# be removed later by the caller, but as an optimization find_files removes
|
56978
|
-
# the top level directories that are excluded in configuration in the
|
56979
|
-
# normal way (dir/**/*).
|
56980
|
-
#
|
56981
57036
|
# @api private
|
57037
|
+
# @return [Boolean]
|
56982
57038
|
#
|
56983
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56984
|
-
def
|
57039
|
+
# source://rubocop//lib/rubocop/target_finder.rb#204
|
57040
|
+
def ignore_parent_exclusion?; end
|
56985
57041
|
|
56986
57042
|
# @api private
|
56987
57043
|
# @return [Boolean]
|
56988
57044
|
#
|
56989
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56990
|
-
def
|
57045
|
+
# source://rubocop//lib/rubocop/target_finder.rb#145
|
57046
|
+
def included_file?(file); end
|
56991
57047
|
|
56992
57048
|
# @api private
|
56993
|
-
# @return [Boolean]
|
56994
57049
|
#
|
56995
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56996
|
-
def
|
57050
|
+
# source://rubocop//lib/rubocop/target_finder.rb#191
|
57051
|
+
def order; end
|
56997
57052
|
|
56998
57053
|
# @api private
|
56999
57054
|
#
|
57000
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57055
|
+
# source://rubocop//lib/rubocop/target_finder.rb#124
|
57001
57056
|
def process_explicit_path(path, mode); end
|
57002
57057
|
|
57003
57058
|
# @api private
|
57004
57059
|
# @return [Boolean]
|
57005
57060
|
#
|
57006
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57061
|
+
# source://rubocop//lib/rubocop/target_finder.rb#176
|
57007
57062
|
def ruby_executable?(file); end
|
57008
57063
|
|
57009
57064
|
# @api private
|
57010
57065
|
# @return [Boolean]
|
57011
57066
|
#
|
57012
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57067
|
+
# source://rubocop//lib/rubocop/target_finder.rb#157
|
57013
57068
|
def ruby_extension?(file); end
|
57014
57069
|
|
57015
57070
|
# @api private
|
57016
57071
|
#
|
57017
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57072
|
+
# source://rubocop//lib/rubocop/target_finder.rb#161
|
57018
57073
|
def ruby_extensions; end
|
57019
57074
|
|
57020
57075
|
# @api private
|
57021
57076
|
# @return [Boolean]
|
57022
57077
|
#
|
57023
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57078
|
+
# source://rubocop//lib/rubocop/target_finder.rb#149
|
57024
57079
|
def ruby_file?(file); end
|
57025
57080
|
|
57026
57081
|
# @api private
|
57027
57082
|
# @return [Boolean]
|
57028
57083
|
#
|
57029
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57084
|
+
# source://rubocop//lib/rubocop/target_finder.rb#168
|
57030
57085
|
def ruby_filename?(file); end
|
57031
57086
|
|
57032
57087
|
# @api private
|
57033
57088
|
#
|
57034
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57089
|
+
# source://rubocop//lib/rubocop/target_finder.rb#113
|
57035
57090
|
def ruby_filenames; end
|
57036
57091
|
|
57037
57092
|
# @api private
|
57038
57093
|
#
|
57039
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57094
|
+
# source://rubocop//lib/rubocop/target_finder.rb#187
|
57040
57095
|
def ruby_interpreters(file); end
|
57041
57096
|
|
57042
57097
|
# @api private
|
57043
57098
|
# @return [Boolean]
|
57044
57099
|
#
|
57045
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57100
|
+
# source://rubocop//lib/rubocop/target_finder.rb#153
|
57046
57101
|
def stdin?; end
|
57047
57102
|
|
57048
57103
|
# @api private
|
57049
57104
|
# @return [Boolean]
|
57050
57105
|
#
|
57051
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57106
|
+
# source://rubocop//lib/rubocop/target_finder.rb#98
|
57052
57107
|
def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end
|
57053
57108
|
|
57054
|
-
# Finds all Ruby source files under the current or other supplied
|
57055
|
-
# directory. A Ruby source file is defined as a file with the `.rb`
|
57056
|
-
# extension or a file with no extension that has a ruby shebang line
|
57057
|
-
# as its first line.
|
57058
|
-
# It is possible to specify includes and excludes using the config file,
|
57059
|
-
# so you can include other Ruby files like Rakefiles and gemspecs.
|
57060
|
-
#
|
57061
|
-
# @api private
|
57062
|
-
# @param base_dir Root directory under which to search for
|
57063
|
-
# ruby source files
|
57064
|
-
# @return [Array] Array of filenames
|
57065
|
-
#
|
57066
|
-
# source://rubocop//lib/rubocop/target_finder.rb#56
|
57067
|
-
def target_files_in_dir(base_dir = T.unsafe(nil)); end
|
57068
|
-
|
57069
57109
|
# @api private
|
57070
57110
|
# @return [Boolean]
|
57071
57111
|
#
|
57072
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57112
|
+
# source://rubocop//lib/rubocop/target_finder.rb#73
|
57073
57113
|
def to_inspect?(file, hidden_files, base_dir_config); end
|
57074
57114
|
|
57075
57115
|
# @api private
|
57076
57116
|
#
|
57077
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57117
|
+
# source://rubocop//lib/rubocop/target_finder.rb#82
|
57078
57118
|
def wanted_dir_patterns(base_dir, exclude_pattern, flags); end
|
57079
57119
|
|
57080
|
-
private
|
57081
|
-
|
57082
57120
|
# @api private
|
57083
57121
|
#
|
57084
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57085
|
-
def
|
57122
|
+
# source://rubocop//lib/rubocop/target_finder.rb#134
|
57123
|
+
def without_excluded(files); end
|
57086
57124
|
end
|
57087
57125
|
|
57088
57126
|
# @api private
|
57089
57127
|
#
|
57090
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57128
|
+
# source://rubocop//lib/rubocop/target_finder.rb#7
|
57091
57129
|
RuboCop::TargetFinder::HIDDEN_PATH_SUBSTRING = T.let(T.unsafe(nil), String)
|
57092
57130
|
|
57093
57131
|
# The kind of Ruby that code inspected by RuboCop is written in.
|
@@ -57099,34 +57137,34 @@ class RuboCop::TargetRuby
|
|
57099
57137
|
# @api private
|
57100
57138
|
# @return [TargetRuby] a new instance of TargetRuby
|
57101
57139
|
#
|
57102
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57140
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#254
|
57103
57141
|
def initialize(config); end
|
57104
57142
|
|
57105
57143
|
# @api private
|
57106
57144
|
#
|
57107
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57145
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#270
|
57108
57146
|
def rubocop_version_with_support; end
|
57109
57147
|
|
57110
57148
|
# @api private
|
57111
57149
|
#
|
57112
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57150
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#258
|
57113
57151
|
def source; end
|
57114
57152
|
|
57115
57153
|
# @api private
|
57116
57154
|
# @return [Boolean]
|
57117
57155
|
#
|
57118
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57156
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#266
|
57119
57157
|
def supported?; end
|
57120
57158
|
|
57121
57159
|
# @api private
|
57122
57160
|
#
|
57123
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57161
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#262
|
57124
57162
|
def version; end
|
57125
57163
|
|
57126
57164
|
class << self
|
57127
57165
|
# @api private
|
57128
57166
|
#
|
57129
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57167
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#240
|
57130
57168
|
def supported_versions; end
|
57131
57169
|
end
|
57132
57170
|
end
|
@@ -57135,23 +57173,23 @@ end
|
|
57135
57173
|
#
|
57136
57174
|
# @api private
|
57137
57175
|
#
|
57138
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57176
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#187
|
57139
57177
|
class RuboCop::TargetRuby::BundlerLockFile < ::RuboCop::TargetRuby::Source
|
57140
57178
|
# @api private
|
57141
57179
|
#
|
57142
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57180
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#188
|
57143
57181
|
def name; end
|
57144
57182
|
|
57145
57183
|
private
|
57146
57184
|
|
57147
57185
|
# @api private
|
57148
57186
|
#
|
57149
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57187
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#221
|
57150
57188
|
def bundler_lock_file_path; end
|
57151
57189
|
|
57152
57190
|
# @api private
|
57153
57191
|
#
|
57154
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57192
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#194
|
57155
57193
|
def find_version; end
|
57156
57194
|
end
|
57157
57195
|
|
@@ -57164,18 +57202,18 @@ RuboCop::TargetRuby::DEFAULT_VERSION = T.let(T.unsafe(nil), Float)
|
|
57164
57202
|
#
|
57165
57203
|
# @api private
|
57166
57204
|
#
|
57167
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57205
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#228
|
57168
57206
|
class RuboCop::TargetRuby::Default < ::RuboCop::TargetRuby::Source
|
57169
57207
|
# @api private
|
57170
57208
|
#
|
57171
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57209
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#229
|
57172
57210
|
def name; end
|
57173
57211
|
|
57174
57212
|
private
|
57175
57213
|
|
57176
57214
|
# @api private
|
57177
57215
|
#
|
57178
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57216
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#235
|
57179
57217
|
def find_version; end
|
57180
57218
|
end
|
57181
57219
|
|
@@ -57202,7 +57240,7 @@ class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source
|
|
57202
57240
|
|
57203
57241
|
# @api private
|
57204
57242
|
#
|
57205
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57243
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#121
|
57206
57244
|
def find_default_minimal_known_ruby(right_hand_side); end
|
57207
57245
|
|
57208
57246
|
# @api private
|
@@ -57222,7 +57260,7 @@ class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source
|
|
57222
57260
|
|
57223
57261
|
# @api private
|
57224
57262
|
#
|
57225
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57263
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#117
|
57226
57264
|
def version_from_array(array); end
|
57227
57265
|
|
57228
57266
|
# @api private
|
@@ -57232,7 +57270,7 @@ class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source
|
|
57232
57270
|
|
57233
57271
|
# @api private
|
57234
57272
|
#
|
57235
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57273
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#105
|
57236
57274
|
def version_from_right_hand_side(right_hand_side); end
|
57237
57275
|
end
|
57238
57276
|
|
@@ -57274,49 +57312,49 @@ end
|
|
57274
57312
|
#
|
57275
57313
|
# @api private
|
57276
57314
|
#
|
57277
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57315
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#133
|
57278
57316
|
class RuboCop::TargetRuby::RubyVersionFile < ::RuboCop::TargetRuby::Source
|
57279
57317
|
# @api private
|
57280
57318
|
#
|
57281
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57319
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#137
|
57282
57320
|
def name; end
|
57283
57321
|
|
57284
57322
|
private
|
57285
57323
|
|
57286
57324
|
# @api private
|
57287
57325
|
#
|
57288
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57326
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#143
|
57289
57327
|
def filename; end
|
57290
57328
|
|
57291
57329
|
# @api private
|
57292
57330
|
#
|
57293
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57331
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#151
|
57294
57332
|
def find_version; end
|
57295
57333
|
|
57296
57334
|
# @api private
|
57297
57335
|
#
|
57298
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57336
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#147
|
57299
57337
|
def pattern; end
|
57300
57338
|
|
57301
57339
|
# @api private
|
57302
57340
|
#
|
57303
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57341
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#158
|
57304
57342
|
def version_file; end
|
57305
57343
|
end
|
57306
57344
|
|
57307
57345
|
# @api private
|
57308
57346
|
#
|
57309
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57347
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#134
|
57310
57348
|
RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_FILENAME = T.let(T.unsafe(nil), String)
|
57311
57349
|
|
57312
57350
|
# @api private
|
57313
57351
|
#
|
57314
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57352
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#135
|
57315
57353
|
RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp)
|
57316
57354
|
|
57317
57355
|
# @api private
|
57318
57356
|
#
|
57319
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57357
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#244
|
57320
57358
|
RuboCop::TargetRuby::SOURCES = T.let(T.unsafe(nil), Array)
|
57321
57359
|
|
57322
57360
|
# A place where information about a target ruby version is found.
|
@@ -57352,34 +57390,34 @@ end
|
|
57352
57390
|
#
|
57353
57391
|
# @api private
|
57354
57392
|
#
|
57355
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57393
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#166
|
57356
57394
|
class RuboCop::TargetRuby::ToolVersionsFile < ::RuboCop::TargetRuby::RubyVersionFile
|
57357
57395
|
# @api private
|
57358
57396
|
#
|
57359
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57397
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#170
|
57360
57398
|
def name; end
|
57361
57399
|
|
57362
57400
|
private
|
57363
57401
|
|
57364
57402
|
# @api private
|
57365
57403
|
#
|
57366
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57404
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#176
|
57367
57405
|
def filename; end
|
57368
57406
|
|
57369
57407
|
# @api private
|
57370
57408
|
#
|
57371
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57409
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#180
|
57372
57410
|
def pattern; end
|
57373
57411
|
end
|
57374
57412
|
|
57375
57413
|
# @api private
|
57376
57414
|
#
|
57377
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57415
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#167
|
57378
57416
|
RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_FILENAME = T.let(T.unsafe(nil), String)
|
57379
57417
|
|
57380
57418
|
# @api private
|
57381
57419
|
#
|
57382
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57420
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#168
|
57383
57421
|
RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_PATTERN = T.let(T.unsafe(nil), Regexp)
|
57384
57422
|
|
57385
57423
|
# source://rubocop//lib/rubocop/ast_aliases.rb#7
|
@@ -57405,12 +57443,12 @@ module RuboCop::Version
|
|
57405
57443
|
class << self
|
57406
57444
|
# @api private
|
57407
57445
|
#
|
57408
|
-
# source://rubocop//lib/rubocop/version.rb#
|
57446
|
+
# source://rubocop//lib/rubocop/version.rb#108
|
57409
57447
|
def document_version; end
|
57410
57448
|
|
57411
57449
|
# @api private
|
57412
57450
|
#
|
57413
|
-
# source://rubocop//lib/rubocop/version.rb#
|
57451
|
+
# source://rubocop//lib/rubocop/version.rb#58
|
57414
57452
|
def extension_versions(env); end
|
57415
57453
|
|
57416
57454
|
# Returns feature version in one of two ways:
|
@@ -57420,12 +57458,17 @@ module RuboCop::Version
|
|
57420
57458
|
#
|
57421
57459
|
# @api private
|
57422
57460
|
#
|
57423
|
-
# source://rubocop//lib/rubocop/version.rb#
|
57461
|
+
# source://rubocop//lib/rubocop/version.rb#92
|
57424
57462
|
def feature_version(feature); end
|
57425
57463
|
|
57426
57464
|
# @api private
|
57427
57465
|
#
|
57428
|
-
# source://rubocop//lib/rubocop/version.rb#
|
57466
|
+
# source://rubocop//lib/rubocop/version.rb#43
|
57467
|
+
def parser_version; end
|
57468
|
+
|
57469
|
+
# @api private
|
57470
|
+
#
|
57471
|
+
# source://rubocop//lib/rubocop/version.rb#113
|
57429
57472
|
def server_mode; end
|
57430
57473
|
|
57431
57474
|
# @api private
|