sorbet-result 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +6 -0
  4. data/.tool-versions +1 -1
  5. data/CHANGELOG.md +10 -0
  6. data/Gemfile +2 -4
  7. data/Gemfile.lock +75 -55
  8. data/README.md +23 -0
  9. data/Rakefile +3 -5
  10. data/lib/minitest/result_assertions.rb +48 -0
  11. data/lib/sorbet-result.rb +1 -5
  12. data/lib/typed/result.rb +169 -7
  13. data/sorbet/rbi/gems/.gitattributes +1 -0
  14. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  15. data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.1.rbi} +80 -60
  16. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  17. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +239 -0
  18. data/sorbet/rbi/gems/{minitest@5.18.1.rbi → minitest@5.22.2.rbi} +285 -241
  19. data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.24.0.rbi} +8 -1
  20. data/sorbet/rbi/gems/{parser@3.2.2.3.rbi → parser@3.3.0.5.rbi} +438 -2219
  21. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  22. data/sorbet/rbi/gems/prism@0.24.0.rbi +31040 -0
  23. data/sorbet/rbi/gems/psych@5.1.2.rbi +1731 -0
  24. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.7.3.rbi} +35 -39
  25. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.1.0.rbi} +68 -65
  26. data/sorbet/rbi/gems/{rbi@0.0.16.rbi → rbi@0.1.9.rbi} +712 -714
  27. data/sorbet/rbi/gems/{regexp_parser@2.8.1.rbi → regexp_parser@2.9.0.rbi} +187 -165
  28. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.2.6.rbi} +116 -52
  29. data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.30.0.rbi} +77 -77
  30. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +8 -0
  31. data/sorbet/rbi/gems/rubocop-sorbet@0.7.7.rbi +8 -0
  32. data/sorbet/rbi/gems/{rubocop@1.52.1.rbi → rubocop@1.60.2.rbi} +3593 -1700
  33. data/sorbet/rbi/gems/{spoom@1.2.1.rbi → spoom@1.2.4.rbi} +1378 -104
  34. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +8 -0
  35. data/sorbet/rbi/gems/standard-performance@1.3.1.rbi +8 -0
  36. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +52 -0
  37. data/sorbet/rbi/gems/standard@1.34.0.rbi +850 -0
  38. data/sorbet/rbi/gems/stringio@3.1.0.rbi +8 -0
  39. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23133 -0
  40. data/sorbet/rbi/gems/{tapioca@0.11.6.rbi → tapioca@0.12.0.rbi} +776 -574
  41. data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.3.0.rbi} +775 -395
  42. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +1 -1
  43. data/sorbet/rbi/gems/yard@0.9.34.rbi +2 -2
  44. data/sorbet/tapioca/config.yml +3 -12
  45. data/sorbet/tapioca/require.rb +0 -1
  46. metadata +41 -34
  47. data/.rubocop.yml +0 -33
  48. data/lib/typed/failure.rb +0 -81
  49. data/lib/typed/success.rb +0 -80
  50. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1083
  51. data/sorbet/rbi/gems/irb@1.7.0.rbi +0 -342
  52. data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +0 -2528
  53. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -328
  54. data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +0 -1043
  55. data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
  56. data/sorbet/rbi/gems/zeitwerk@2.6.8.rbi +0 -986
  57. /data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +0 -0
  58. /data/sorbet/rbi/gems/{reline@0.3.5.rbi → reline@0.4.2.rbi} +0 -0
  59. /data/sorbet/rbi/gems/{unicode-display_width@2.4.2.rbi → unicode-display_width@2.5.0.rbi} +0 -0
@@ -0,0 +1,850 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `standard` gem.
5
+ # Please instead update this file by running `bin/tapioca gem standard`.
6
+
7
+ # source://standard//lib/standard/rubocop/ext.rb#1
8
+ module RuboCop; end
9
+
10
+ # source://standard//lib/standard/rubocop/ext.rb#17
11
+ class RuboCop::CommentConfig
12
+ # @return [CommentConfig] a new instance of CommentConfig
13
+ #
14
+ # source://standard//lib/standard/rubocop/ext.rb#20
15
+ def initialize(processed_source); end
16
+
17
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#63
18
+ def comment_only_line?(line_number); end
19
+
20
+ # source://forwardable/1.3.3/forwardable.rb#231
21
+ def config(*args, **_arg1, &block); end
22
+
23
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#51
24
+ def cop_disabled_line_ranges; end
25
+
26
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#39
27
+ def cop_enabled_at_line?(cop, line_number); end
28
+
29
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#47
30
+ def cop_opted_in?(cop); end
31
+
32
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#55
33
+ def extra_enabled_comments; end
34
+
35
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#30
36
+ def processed_source; end
37
+
38
+ # source://forwardable/1.3.3/forwardable.rb#231
39
+ def registry(*args, **_arg1, &block); end
40
+
41
+ private
42
+
43
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#96
44
+ def analyze; end
45
+
46
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#124
47
+ def analyze_cop(analysis, directive); end
48
+
49
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#144
50
+ def analyze_disabled(analysis, directive); end
51
+
52
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#155
53
+ def analyze_rest(analysis, directive); end
54
+
55
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#135
56
+ def analyze_single_line(analysis, directive); end
57
+
58
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#164
59
+ def cop_line_ranges(analysis); end
60
+
61
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#170
62
+ def each_directive; end
63
+
64
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#69
65
+ def extra_enabled_comments_with_names(extras:, names:); end
66
+
67
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#190
68
+ def handle_enable_all(directive, names, extras); end
69
+
70
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#204
71
+ def handle_switch(directive, names, extras); end
72
+
73
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#115
74
+ def inject_disabled_cops_directives(analyses); end
75
+
76
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#183
77
+ def non_comment_token_line_numbers; end
78
+
79
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#34
80
+ def old_initialize(processed_source); end
81
+
82
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#83
83
+ def opt_in_cops; end
84
+
85
+ # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#179
86
+ def qualified_cop_name(cop_name); end
87
+ end
88
+
89
+ module RuboCop::Cop; end
90
+ module RuboCop::Cop::Lint; end
91
+
92
+ # source://standard//lib/standard/rubocop/ext.rb#2
93
+ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
94
+ # source://standard//lib/standard/rubocop/ext.rb#4
95
+ def message(_); end
96
+
97
+ # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
98
+ def on_if(node); end
99
+
100
+ # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
101
+ def on_until(node); end
102
+
103
+ # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
104
+ def on_while(node); end
105
+
106
+ private
107
+
108
+ # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#82
109
+ def allowed_construct?(asgn_node); end
110
+
111
+ # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#86
112
+ def conditional_assignment?(asgn_node); end
113
+
114
+ # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#90
115
+ def skip_children?(asgn_node); end
116
+
117
+ # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#96
118
+ def traverse_node(node, &block); end
119
+ end
120
+
121
+ # source://standard//lib/standard/rubocop/ext.rb#9
122
+ class RuboCop::DirectiveComment
123
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#30
124
+ def initialize(comment, cop_registry = T.unsafe(nil)); end
125
+
126
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#80
127
+ def all_cops?; end
128
+
129
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#28
130
+ def comment; end
131
+
132
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#85
133
+ def cop_names; end
134
+
135
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#28
136
+ def cop_registry; end
137
+
138
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#28
139
+ def cops; end
140
+
141
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#91
142
+ def department_names; end
143
+
144
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#105
145
+ def directive_count; end
146
+
147
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#60
148
+ def disabled?; end
149
+
150
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#75
151
+ def disabled_all?; end
152
+
153
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#65
154
+ def enabled?; end
155
+
156
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#70
157
+ def enabled_all?; end
158
+
159
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#96
160
+ def in_directive_department?(cop); end
161
+
162
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#110
163
+ def line_number; end
164
+
165
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#42
166
+ def match?(cop_names); end
167
+
168
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#55
169
+ def match_captures; end
170
+
171
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#28
172
+ def mode; end
173
+
174
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#101
175
+ def overridden_by_department?(cop); end
176
+
177
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#46
178
+ def range; end
179
+
180
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#37
181
+ def single_line?; end
182
+
183
+ private
184
+
185
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#130
186
+ def all_cop_names; end
187
+
188
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#134
189
+ def cop_names_for_department(department); end
190
+
191
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#126
192
+ def department?(name); end
193
+
194
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#140
195
+ def exclude_redundant_directive_cop(cops); end
196
+
197
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#120
198
+ def parsed_cop_names; end
199
+
200
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#116
201
+ def splitted_cops_string; end
202
+
203
+ class << self
204
+ # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#24
205
+ def before_comment(line); end
206
+ end
207
+ end
208
+
209
+ # source://standard//lib/standard/rubocop/ext.rb#11
210
+ RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp)
211
+
212
+ # source://standard//lib/standard.rb#4
213
+ module Standard; end
214
+
215
+ # source://standard//lib/standard/builds_config.rb#8
216
+ class Standard::BuildsConfig
217
+ # @return [BuildsConfig] a new instance of BuildsConfig
218
+ #
219
+ # source://standard//lib/standard/builds_config.rb#9
220
+ def initialize; end
221
+
222
+ # source://standard//lib/standard/builds_config.rb#16
223
+ def call(argv, search_path = T.unsafe(nil)); end
224
+ end
225
+
226
+ # source://standard//lib/standard/cli.rb#5
227
+ class Standard::Cli
228
+ # @return [Cli] a new instance of Cli
229
+ #
230
+ # source://standard//lib/standard/cli.rb#6
231
+ def initialize(argv); end
232
+
233
+ # source://standard//lib/standard/cli.rb#12
234
+ def run; end
235
+ end
236
+
237
+ # source://standard//lib/standard/builds_config.rb#6
238
+ class Standard::Config < ::Struct
239
+ # Returns the value of attribute paths
240
+ #
241
+ # @return [Object] the current value of paths
242
+ def paths; end
243
+
244
+ # Sets the attribute paths
245
+ #
246
+ # @param value [Object] the value to set the attribute paths to.
247
+ # @return [Object] the newly set value
248
+ def paths=(_); end
249
+
250
+ # Returns the value of attribute rubocop_config_store
251
+ #
252
+ # @return [Object] the current value of rubocop_config_store
253
+ def rubocop_config_store; end
254
+
255
+ # Sets the attribute rubocop_config_store
256
+ #
257
+ # @param value [Object] the value to set the attribute rubocop_config_store to.
258
+ # @return [Object] the newly set value
259
+ def rubocop_config_store=(_); end
260
+
261
+ # Returns the value of attribute rubocop_options
262
+ #
263
+ # @return [Object] the current value of rubocop_options
264
+ def rubocop_options; end
265
+
266
+ # Sets the attribute rubocop_options
267
+ #
268
+ # @param value [Object] the value to set the attribute rubocop_options to.
269
+ # @return [Object] the newly set value
270
+ def rubocop_options=(_); end
271
+
272
+ # Returns the value of attribute runner
273
+ #
274
+ # @return [Object] the current value of runner
275
+ def runner; end
276
+
277
+ # Sets the attribute runner
278
+ #
279
+ # @param value [Object] the value to set the attribute runner to.
280
+ # @return [Object] the newly set value
281
+ def runner=(_); end
282
+
283
+ class << self
284
+ def [](*_arg0); end
285
+ def inspect; end
286
+ def keyword_init?; end
287
+ def members; end
288
+ def new(*_arg0); end
289
+ end
290
+ end
291
+
292
+ # source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#3
293
+ class Standard::CreatesConfigStore
294
+ # @return [CreatesConfigStore] a new instance of CreatesConfigStore
295
+ #
296
+ # source://standard//lib/standard/creates_config_store.rb#10
297
+ def initialize; end
298
+
299
+ # source://standard//lib/standard/creates_config_store.rb#18
300
+ def call(standard_config); end
301
+ end
302
+
303
+ # source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#4
304
+ class Standard::CreatesConfigStore::AssignsRubocopYaml
305
+ # source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#5
306
+ def call(config_store, standard_config); end
307
+ end
308
+
309
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#2
310
+ class Standard::CreatesConfigStore::ConfiguresIgnoredPaths
311
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#14
312
+ def call(options_config, standard_config); end
313
+
314
+ private
315
+
316
+ # @return [Boolean]
317
+ #
318
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#41
319
+ def absolute?(path); end
320
+
321
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#33
322
+ def absolutify(config_root, path); end
323
+
324
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#28
325
+ def ignored_patterns(standard_config); end
326
+ end
327
+
328
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#3
329
+ Standard::CreatesConfigStore::ConfiguresIgnoredPaths::DEFAULT_IGNORES = T.let(T.unsafe(nil), Array)
330
+
331
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#5
332
+ class Standard::CreatesConfigStore::MergesUserConfigExtensions
333
+ # @return [MergesUserConfigExtensions] a new instance of MergesUserConfigExtensions
334
+ #
335
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#24
336
+ def initialize; end
337
+
338
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#28
339
+ def call(options_config, standard_config); end
340
+ end
341
+
342
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#6
343
+ class Standard::CreatesConfigStore::MergesUserConfigExtensions::ExtendConfigPlugin < ::LintRoller::Plugin
344
+ # @return [ExtendConfigPlugin] a new instance of ExtendConfigPlugin
345
+ #
346
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#7
347
+ def initialize(path); end
348
+
349
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#11
350
+ def about; end
351
+
352
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#15
353
+ def rules(context); end
354
+ end
355
+
356
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#2
357
+ class Standard::CreatesConfigStore::SetsTargetRubyVersion
358
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#12
359
+ def call(options_config, standard_config); end
360
+
361
+ private
362
+
363
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#20
364
+ def min_target_ruby_version_supported(desired_target_ruby_version); end
365
+
366
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#31
367
+ def normalize_version(version); end
368
+ end
369
+
370
+ # This is minimum version that Rubocop can parse, not the minimum
371
+ # version it can run on (e.g. TargetRubyVersion). See the following
372
+ # for more details:
373
+ #
374
+ # https://docs.rubocop.org/rubocop/configuration.html#setting-the-target-ruby-version
375
+ #
376
+ # https://github.com/rubocop/rubocop/blob/master/lib/rubocop/target_ruby.rb
377
+ #
378
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#10
379
+ Standard::CreatesConfigStore::SetsTargetRubyVersion::MIN_TARGET_RUBY_VERSION = T.let(T.unsafe(nil), String)
380
+
381
+ # source://standard//lib/standard/file_finder.rb#4
382
+ class Standard::FileFinder
383
+ # source://standard//lib/standard/file_finder.rb#5
384
+ def call(name, search_path); end
385
+ end
386
+
387
+ # source://standard//lib/standard/formatter.rb#5
388
+ class Standard::Formatter < ::RuboCop::Formatter::BaseFormatter
389
+ # source://standard//lib/standard/formatter.rb#18
390
+ def file_finished(file, offenses); end
391
+
392
+ # source://standard//lib/standard/formatter.rb#37
393
+ def finished(_inspected_files); end
394
+
395
+ # source://standard//lib/standard/formatter.rb#10
396
+ def started(_target_files); end
397
+
398
+ # source://standard//lib/standard/formatter.rb#30
399
+ def track_stats(offenses); end
400
+
401
+ private
402
+
403
+ # source://standard//lib/standard/formatter.rb#106
404
+ def determine_run_mode; end
405
+
406
+ # source://standard//lib/standard/formatter.rb#114
407
+ def fixable_error_message(command); end
408
+
409
+ # source://standard//lib/standard/formatter.rb#92
410
+ def path_to(file); end
411
+
412
+ # source://standard//lib/standard/formatter.rb#96
413
+ def potential_fix_mode; end
414
+
415
+ # source://standard//lib/standard/formatter.rb#52
416
+ def print_fix_suggestion; end
417
+
418
+ # source://standard//lib/standard/formatter.rb#44
419
+ def print_header_once; end
420
+
421
+ # source://standard//lib/standard/formatter.rb#82
422
+ def print_todo_congratulations; end
423
+
424
+ # source://standard//lib/standard/formatter.rb#66
425
+ def print_todo_warning; end
426
+ end
427
+
428
+ # source://standard//lib/standard/formatter.rb#6
429
+ Standard::Formatter::STANDARD_GREETING = T.let(T.unsafe(nil), String)
430
+
431
+ # source://standard//lib/standard/loads_runner.rb#9
432
+ class Standard::LoadsRunner
433
+ # source://standard//lib/standard/loads_runner.rb#19
434
+ def call(command); end
435
+ end
436
+
437
+ # source://standard//lib/standard/loads_runner.rb#10
438
+ Standard::LoadsRunner::RUNNERS = T.let(T.unsafe(nil), Hash)
439
+
440
+ # source://standard//lib/standard/loads_yaml_config.rb#7
441
+ class Standard::LoadsYamlConfig
442
+ # source://standard//lib/standard/loads_yaml_config.rb#8
443
+ def call(standard_yaml_path, todo_yaml_path); end
444
+
445
+ private
446
+
447
+ # source://standard//lib/standard/loads_yaml_config.rb#57
448
+ def arrayify(object); end
449
+
450
+ # source://standard//lib/standard/loads_yaml_config.rb#25
451
+ def construct_config(yaml_path, standard_yaml, todo_path, todo_yaml); end
452
+
453
+ # source://standard//lib/standard/loads_yaml_config.rb#47
454
+ def expand_ignore_config(ignore_config); end
455
+
456
+ # source://standard//lib/standard/loads_yaml_config.rb#17
457
+ def load_standard_yaml(yaml_path); end
458
+
459
+ # source://standard//lib/standard/loads_yaml_config.rb#41
460
+ def normalized_ruby_version(version); end
461
+ end
462
+
463
+ # source://standard//lib/standard/lsp/standardizer.rb#4
464
+ module Standard::Lsp; end
465
+
466
+ # source://standard//lib/standard/lsp/kills_server.rb#3
467
+ class Standard::Lsp::KillsServer
468
+ # source://standard//lib/standard/lsp/kills_server.rb#4
469
+ def call(&blk); end
470
+ end
471
+
472
+ # source://standard//lib/standard/lsp/logger.rb#3
473
+ class Standard::Lsp::Logger
474
+ # @return [Logger] a new instance of Logger
475
+ #
476
+ # source://standard//lib/standard/lsp/logger.rb#4
477
+ def initialize; end
478
+
479
+ # source://standard//lib/standard/lsp/logger.rb#8
480
+ def puts(message); end
481
+
482
+ # source://standard//lib/standard/lsp/logger.rb#12
483
+ def puts_once(message); end
484
+ end
485
+
486
+ # source://standard//lib/standard/lsp/server.rb#8
487
+ Standard::Lsp::Proto = LanguageServer::Protocol
488
+
489
+ # source://standard//lib/standard/lsp/routes.rb#5
490
+ class Standard::Lsp::Routes
491
+ # @return [Routes] a new instance of Routes
492
+ #
493
+ # source://standard//lib/standard/lsp/routes.rb#6
494
+ def initialize(writer, logger, standardizer); end
495
+
496
+ # source://standard//lib/standard/lsp/routes.rb#19
497
+ def for(name); end
498
+
499
+ # source://standard//lib/standard/lsp/routes.rb#26
500
+ def handle_initialize(request); end
501
+
502
+ # source://standard//lib/standard/lsp/routes.rb#42
503
+ def handle_initialized(request); end
504
+
505
+ # source://standard//lib/standard/lsp/routes.rb#132
506
+ def handle_method_missing(request); end
507
+
508
+ # source://standard//lib/standard/lsp/routes.rb#46
509
+ def handle_shutdown(request); end
510
+
511
+ # source://standard//lib/standard/lsp/routes.rb#124
512
+ def handle_unsupported_method(request, method = T.unsafe(nil)); end
513
+
514
+ private
515
+
516
+ # source://standard//lib/standard/lsp/routes.rb#165
517
+ def diagnostic(file_uri, text); end
518
+
519
+ # source://standard//lib/standard/lsp/routes.rb#144
520
+ def format_file(file_uri); end
521
+
522
+ # source://standard//lib/standard/lsp/routes.rb#140
523
+ def uri_to_path(uri); end
524
+
525
+ class << self
526
+ # source://standard//lib/standard/lsp/routes.rb#15
527
+ def handle(name, &block); end
528
+ end
529
+ end
530
+
531
+ # source://standard//lib/standard/lsp/server.rb#9
532
+ Standard::Lsp::SEV = LanguageServer::Protocol::Constant::DiagnosticSeverity
533
+
534
+ # source://standard//lib/standard/lsp/server.rb#11
535
+ class Standard::Lsp::Server
536
+ # @return [Server] a new instance of Server
537
+ #
538
+ # source://standard//lib/standard/lsp/server.rb#12
539
+ def initialize(config); end
540
+
541
+ # source://standard//lib/standard/lsp/server.rb#20
542
+ def start; end
543
+ end
544
+
545
+ # source://standard//lib/standard/lsp/standardizer.rb#5
546
+ class Standard::Lsp::Standardizer
547
+ # @return [Standardizer] a new instance of Standardizer
548
+ #
549
+ # source://standard//lib/standard/lsp/standardizer.rb#6
550
+ def initialize(config, logger); end
551
+
552
+ # This abuses the --stdin option of rubocop and reads the formatted text
553
+ # from the options[:stdin] that rubocop mutates. This depends on
554
+ # parallel: false as well as the fact that rubocop doesn't otherwise dup
555
+ # or reassign that options object. Risky business!
556
+ #
557
+ # Reassigning options[:stdin] is done here:
558
+ # https://github.com/rubocop/rubocop/blob/master/lib/rubocop/cop/team.rb#L131
559
+ # Printing options[:stdin]
560
+ # https://github.com/rubocop/rubocop/blob/master/lib/rubocop/cli/command/execute_runner.rb#L95
561
+ # Setting `parallel: true` would break this here:
562
+ # https://github.com/rubocop/rubocop/blob/master/lib/rubocop/runner.rb#L72
563
+ #
564
+ # source://standard//lib/standard/lsp/standardizer.rb#23
565
+ def format(path, text); end
566
+
567
+ # source://standard//lib/standard/lsp/standardizer.rb#29
568
+ def offenses(path, text); end
569
+
570
+ private
571
+
572
+ # source://standard//lib/standard/lsp/standardizer.rb#59
573
+ def capture_rubocop_stdout(config); end
574
+
575
+ # source://standard//lib/standard/lsp/standardizer.rb#50
576
+ def fork_config(path, text, format:); end
577
+ end
578
+
579
+ # source://standard//lib/standard/lsp/standardizer.rb#44
580
+ Standard::Lsp::Standardizer::BASE_OPTIONS = T.let(T.unsafe(nil), Hash)
581
+
582
+ # source://standard//lib/standard/merges_settings.rb#4
583
+ class Standard::MergesSettings
584
+ # source://standard//lib/standard/merges_settings.rb#7
585
+ def call(argv, standard_yaml); end
586
+
587
+ private
588
+
589
+ # source://standard//lib/standard/merges_settings.rb#42
590
+ def determine_command(argv); end
591
+
592
+ # source://standard//lib/standard/merges_settings.rb#58
593
+ def merge(standard_yaml, standard_cli_flags, rubocop_cli_flags); end
594
+
595
+ # source://standard//lib/standard/merges_settings.rb#27
596
+ def parse_standard_argv(argv); end
597
+
598
+ # source://standard//lib/standard/merges_settings.rb#21
599
+ def separate_argv(argv); end
600
+
601
+ # source://standard//lib/standard/merges_settings.rb#69
602
+ def without_banned(rubocop_cli_flags); end
603
+ end
604
+
605
+ # source://standard//lib/standard/merges_settings.rb#5
606
+ class Standard::MergesSettings::Settings < ::Struct
607
+ # Returns the value of attribute options
608
+ #
609
+ # @return [Object] the current value of options
610
+ def options; end
611
+
612
+ # Sets the attribute options
613
+ #
614
+ # @param value [Object] the value to set the attribute options to.
615
+ # @return [Object] the newly set value
616
+ def options=(_); end
617
+
618
+ # Returns the value of attribute paths
619
+ #
620
+ # @return [Object] the current value of paths
621
+ def paths; end
622
+
623
+ # Sets the attribute paths
624
+ #
625
+ # @param value [Object] the value to set the attribute paths to.
626
+ # @return [Object] the newly set value
627
+ def paths=(_); end
628
+
629
+ # Returns the value of attribute runner
630
+ #
631
+ # @return [Object] the current value of runner
632
+ def runner; end
633
+
634
+ # Sets the attribute runner
635
+ #
636
+ # @param value [Object] the value to set the attribute runner to.
637
+ # @return [Object] the newly set value
638
+ def runner=(_); end
639
+
640
+ class << self
641
+ def [](*_arg0); end
642
+ def inspect; end
643
+ def keyword_init?; end
644
+ def members; end
645
+ def new(*_arg0); end
646
+ end
647
+ end
648
+
649
+ # source://standard//lib/standard/plugin.rb#2
650
+ module Standard::Plugin; end
651
+
652
+ # source://standard//lib/standard/plugin/combines_plugin_configs.rb#3
653
+ class Standard::Plugin::CombinesPluginConfigs
654
+ # @return [CombinesPluginConfigs] a new instance of CombinesPluginConfigs
655
+ #
656
+ # source://standard//lib/standard/plugin/combines_plugin_configs.rb#4
657
+ def initialize; end
658
+
659
+ # source://standard//lib/standard/plugin/combines_plugin_configs.rb#9
660
+ def call(options_config, standard_config); end
661
+ end
662
+
663
+ # source://standard//lib/standard/plugin/creates_runner_context.rb#3
664
+ class Standard::Plugin::CreatesRunnerContext
665
+ # source://standard//lib/standard/plugin/creates_runner_context.rb#4
666
+ def call(standard_config); end
667
+ end
668
+
669
+ # source://standard//lib/standard/plugin/determines_class_constant.rb#3
670
+ class Standard::Plugin::DeterminesClassConstant
671
+ # source://standard//lib/standard/plugin/determines_class_constant.rb#4
672
+ def call(plugin_name, user_config); end
673
+
674
+ private
675
+
676
+ # source://standard//lib/standard/plugin/determines_class_constant.rb#41
677
+ def require_plugin(require_path); end
678
+ end
679
+
680
+ # source://standard//lib/standard/plugin/initializes_plugins.rb#3
681
+ class Standard::Plugin::InitializesPlugins
682
+ # @return [InitializesPlugins] a new instance of InitializesPlugins
683
+ #
684
+ # source://standard//lib/standard/plugin/initializes_plugins.rb#4
685
+ def initialize; end
686
+
687
+ # source://standard//lib/standard/plugin/initializes_plugins.rb#9
688
+ def call(plugins); end
689
+ end
690
+
691
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#3
692
+ class Standard::Plugin::MergesPluginsIntoRubocopConfig
693
+ # @return [MergesPluginsIntoRubocopConfig] a new instance of MergesPluginsIntoRubocopConfig
694
+ #
695
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#24
696
+ def initialize; end
697
+
698
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#28
699
+ def call(options_config, standard_config, plugins, permit_merging:); end
700
+
701
+ private
702
+
703
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#126
704
+ def all_cop_keys_previously_configured_by_plugins(options_config, permit_merging:); end
705
+
706
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#152
707
+ def blank_rubocop_config(example_config); end
708
+
709
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#37
710
+ def combine_rubocop_configs(options_config, runner_context, plugins, permit_merging:); end
711
+
712
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#56
713
+ def config_for_plugin(plugin, runner_context); end
714
+
715
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#96
716
+ def delete_already_configured_keys!(configured_keys, next_config, dont_delete_keys: T.unsafe(nil)); end
717
+
718
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#156
719
+ def except(hash_or_config, keys); end
720
+
721
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#134
722
+ def fake_out_rubocop_default_configuration(options_config); end
723
+
724
+ # Always deletes nil entries, always overwrites arrays
725
+ # This is a simplified version of rubocop's ConfigLoader#merge:
726
+ # https://github.com/rubocop/rubocop/blob/v1.48.1/lib/rubocop/config_loader_resolver.rb#L98
727
+ #
728
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#163
729
+ def merge(old_hash, new_hash); end
730
+
731
+ # This is how we ensure "first-in wins": plugins can override AllCops settings that are
732
+ # set by RuboCop's default configuration, but once a plugin sets an AllCop setting, they
733
+ # have exclusive first-in-wins rights to that setting.
734
+ #
735
+ # The one exception to this are array fields, because we don't want to
736
+ # overwrite the AllCops defaults but rather munge the arrays (`existing |
737
+ # new`) to allow plugins to add to the array, for example Include and
738
+ # Exclude paths and patterns.
739
+ #
740
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#77
741
+ def merge_all_cop_settings(existing_all_cops, new_all_cops, already_configured_keys); end
742
+
743
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#104
744
+ def merge_config_into_all_cops!(options_config, plugin_config); end
745
+
746
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#110
747
+ def merge_config_into_standard!(options_config, plugin_config, permit_merging:); end
748
+
749
+ # Avoid a warning that would otherwise be emitted by any plugin that set TargetRailsVersion
750
+ # because it's not a default AllCops key specified in RuboCop's embedded default config.
751
+ #
752
+ # See: https://github.com/rubocop/rubocop/pull/11833
753
+ #
754
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#146
755
+ def set_target_rails_version_on_all_cops_because_its_technically_not_allowed!(options_config); end
756
+ end
757
+
758
+ # AllCops keys that standard does not allow to be set by plugins
759
+ #
760
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#10
761
+ Standard::Plugin::MergesPluginsIntoRubocopConfig::DISALLOWED_ALLCOPS_KEYS = T.let(T.unsafe(nil), Array)
762
+
763
+ # Blank configuration object to merge plugins into, with only the following spared:
764
+ # - AllCops keys set to avoid warnings about unknown properties
765
+ # - Lint/Syntax must be set to avoid a nil error when verifying inherited configs
766
+ #
767
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#7
768
+ Standard::Plugin::MergesPluginsIntoRubocopConfig::MANDATORY_RUBOCOP_CONFIG_KEYS = T.let(T.unsafe(nil), Array)
769
+
770
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#3
771
+ class Standard::Plugin::StandardizesConfiguredPlugins
772
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#19
773
+ def call(plugins); end
774
+
775
+ private
776
+
777
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#25
778
+ def normalize_config_shape(plugins); end
779
+ end
780
+
781
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#10
782
+ Standard::Plugin::StandardizesConfiguredPlugins::BUILT_INS = T.let(T.unsafe(nil), Array)
783
+
784
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#4
785
+ Standard::Plugin::StandardizesConfiguredPlugins::DEFAULT_PLUGIN_CONFIG = T.let(T.unsafe(nil), Hash)
786
+
787
+ # source://standard//lib/standard/resolves_yaml_option.rb#4
788
+ class Standard::ResolvesYamlOption
789
+ # source://standard//lib/standard/resolves_yaml_option.rb#5
790
+ def call(argv, search_path, option_name, default_file); end
791
+
792
+ private
793
+
794
+ # source://standard//lib/standard/resolves_yaml_option.rb#22
795
+ def argv_value_for(argv, option_name); end
796
+
797
+ # source://standard//lib/standard/resolves_yaml_option.rb#11
798
+ def search_argv(argv, option_name); end
799
+ end
800
+
801
+ # source://standard//lib/standard/runners/rubocop.rb#4
802
+ module Standard::Runners; end
803
+
804
+ # source://standard//lib/standard/runners/genignore.rb#7
805
+ class Standard::Runners::Genignore
806
+ # source://standard//lib/standard/runners/genignore.rb#8
807
+ def call(config); end
808
+ end
809
+
810
+ # source://standard//lib/standard/runners/help.rb#5
811
+ class Standard::Runners::Help
812
+ # source://standard//lib/standard/runners/help.rb#6
813
+ def call(config); end
814
+ end
815
+
816
+ # source://standard//lib/standard/runners/lsp.rb#5
817
+ class Standard::Runners::Lsp
818
+ # source://standard//lib/standard/runners/lsp.rb#6
819
+ def call(config); end
820
+ end
821
+
822
+ # source://standard//lib/standard/runners/rubocop.rb#5
823
+ class Standard::Runners::Rubocop
824
+ # source://standard//lib/standard/runners/rubocop.rb#6
825
+ def call(config); end
826
+
827
+ private
828
+
829
+ # This is a workaround for an issue with how `parallel` and `stdin`
830
+ # interact when invoked in this way. See:
831
+ # https://github.com/standardrb/standard/issues/536
832
+ #
833
+ # source://standard//lib/standard/runners/rubocop.rb#23
834
+ def without_parallelizing_in_stdin_mode(options); end
835
+ end
836
+
837
+ # source://standard//lib/standard/runners/verbose_version.rb#5
838
+ class Standard::Runners::VerboseVersion
839
+ # source://standard//lib/standard/runners/verbose_version.rb#6
840
+ def call(config); end
841
+ end
842
+
843
+ # source://standard//lib/standard/runners/version.rb#3
844
+ class Standard::Runners::Version
845
+ # source://standard//lib/standard/runners/version.rb#4
846
+ def call(config); end
847
+ end
848
+
849
+ # source://standard//lib/standard/version.rb#2
850
+ Standard::VERSION = T.let(T.unsafe(nil), Gem::Version)