sorbet-result 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +1 -1
  4. data/CHANGELOG.md +17 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +85 -68
  7. data/README.md +4 -4
  8. data/lib/typed/no_payload_on_failure_error.rb +8 -3
  9. data/lib/typed/result.rb +33 -3
  10. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
  11. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  12. data/sorbet/rbi/gems/cgi@0.5.0.rbi +2961 -0
  13. data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
  14. data/sorbet/rbi/gems/erb@4.0.4.rbi +910 -0
  15. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
  16. data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +1 -0
  17. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.12.2.rbi} +736 -238
  18. data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +12 -5
  19. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
  20. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  21. data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.5.rbi} +326 -308
  22. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  23. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
  24. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.8.0.rbi} +448 -385
  25. data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
  26. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
  27. data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
  28. data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.6.rbi} +974 -236
  29. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
  30. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  31. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.3.0.rbi} +62 -58
  32. data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
  33. data/sorbet/rbi/gems/rbs@3.9.4.rbi +6976 -0
  34. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.10.0.rbi} +196 -172
  35. data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.6.1.rbi} +1 -0
  36. data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.45.1.rbi} +1673 -958
  37. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
  38. data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.9.0.rbi} +1 -0
  39. data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.75.8.rbi} +9990 -5267
  40. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  41. data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
  42. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
  43. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
  44. data/sorbet/rbi/gems/{standard-sorbet@0.0.2.rbi → standard-sorbet@0.0.3.rbi} +1 -0
  45. data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.50.0.rbi} +182 -97
  46. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.7.rbi} +1 -0
  47. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.11.rbi} +489 -364
  48. data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
  49. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  50. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  51. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  52. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
  53. metadata +46 -55
  54. data/.tool-versions +0 -1
  55. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  56. data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
  57. data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
  58. data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
  59. data/sorbet/rbi/gems/spoom@1.2.4.rbi +0 -3777
  60. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
  61. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
@@ -4,5 +4,6 @@
4
4
  # This is an autogenerated file for types exported from the `standard-custom` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem standard-custom`.
6
6
 
7
+
7
8
  # THIS IS AN EMPTY RBI FILE.
8
9
  # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -4,5 +4,6 @@
4
4
  # This is an autogenerated file for types exported from the `standard-performance` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem standard-performance`.
6
6
 
7
+
7
8
  # THIS IS AN EMPTY RBI FILE.
8
9
  # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `standard-sorbet` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem standard-sorbet`.
6
6
 
7
+
7
8
  # source://standard-sorbet//lib/standard/sorbet/version.rb#1
8
9
  module Standard; end
9
10
 
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `standard` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem standard`.
6
6
 
7
+
7
8
  # source://standard//lib/standard/rubocop/ext.rb#1
8
9
  module RuboCop; end
9
10
 
@@ -14,75 +15,75 @@ class RuboCop::CommentConfig
14
15
  # source://standard//lib/standard/rubocop/ext.rb#20
15
16
  def initialize(processed_source); end
16
17
 
17
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#63
18
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#63
18
19
  def comment_only_line?(line_number); end
19
20
 
20
- # source://forwardable/1.3.3/forwardable.rb#231
21
- def config(*args, **_arg1, &block); end
21
+ # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
22
+ def config(*_arg0, **_arg1, &_arg2); end
22
23
 
23
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#51
24
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#51
24
25
  def cop_disabled_line_ranges; end
25
26
 
26
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#39
27
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#39
27
28
  def cop_enabled_at_line?(cop, line_number); end
28
29
 
29
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#47
30
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#47
30
31
  def cop_opted_in?(cop); end
31
32
 
32
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#55
33
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#55
33
34
  def extra_enabled_comments; end
34
35
 
35
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#30
36
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#30
36
37
  def processed_source; end
37
38
 
38
- # source://forwardable/1.3.3/forwardable.rb#231
39
- def registry(*args, **_arg1, &block); end
39
+ # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
40
+ def registry(*_arg0, **_arg1, &_arg2); end
40
41
 
41
42
  private
42
43
 
43
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#96
44
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#96
44
45
  def analyze; end
45
46
 
46
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#124
47
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#124
47
48
  def analyze_cop(analysis, directive); end
48
49
 
49
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#144
50
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#144
50
51
  def analyze_disabled(analysis, directive); end
51
52
 
52
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#155
53
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#155
53
54
  def analyze_rest(analysis, directive); end
54
55
 
55
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#135
56
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#135
56
57
  def analyze_single_line(analysis, directive); end
57
58
 
58
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#164
59
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#164
59
60
  def cop_line_ranges(analysis); end
60
61
 
61
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#170
62
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#170
62
63
  def each_directive; end
63
64
 
64
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#69
65
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#69
65
66
  def extra_enabled_comments_with_names(extras:, names:); end
66
67
 
67
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#190
68
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#190
68
69
  def handle_enable_all(directive, names, extras); end
69
70
 
70
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#204
71
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#204
71
72
  def handle_switch(directive, names, extras); end
72
73
 
73
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#115
74
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#115
74
75
  def inject_disabled_cops_directives(analyses); end
75
76
 
76
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#183
77
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#183
77
78
  def non_comment_token_line_numbers; end
78
79
 
79
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#34
80
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#34
80
81
  def old_initialize(processed_source); end
81
82
 
82
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#83
83
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#83
83
84
  def opt_in_cops; end
84
85
 
85
- # source://rubocop/1.60.2/lib/rubocop/comment_config.rb#179
86
+ # source://rubocop/1.75.8/lib/rubocop/comment_config.rb#179
86
87
  def qualified_cop_name(cop_name); end
87
88
  end
88
89
 
@@ -94,114 +95,123 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
94
95
  # source://standard//lib/standard/rubocop/ext.rb#4
95
96
  def message(_); end
96
97
 
97
- # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
98
+ # source://rubocop/1.75.8/lib/rubocop/cop/lint/assignment_in_condition.rb#55
98
99
  def on_if(node); end
99
100
 
100
- # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
101
+ # source://rubocop/1.75.8/lib/rubocop/cop/lint/assignment_in_condition.rb#55
101
102
  def on_until(node); end
102
103
 
103
- # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
104
+ # source://rubocop/1.75.8/lib/rubocop/cop/lint/assignment_in_condition.rb#55
104
105
  def on_while(node); end
105
106
 
106
107
  private
107
108
 
108
- # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#82
109
+ # source://rubocop/1.75.8/lib/rubocop/cop/lint/assignment_in_condition.rb#80
109
110
  def allowed_construct?(asgn_node); end
110
111
 
111
- # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#86
112
+ # source://rubocop/1.75.8/lib/rubocop/cop/lint/assignment_in_condition.rb#84
112
113
  def conditional_assignment?(asgn_node); end
113
114
 
114
- # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#90
115
+ # source://rubocop/1.75.8/lib/rubocop/cop/lint/assignment_in_condition.rb#88
115
116
  def skip_children?(asgn_node); end
116
117
 
117
- # source://rubocop/1.60.2/lib/rubocop/cop/lint/assignment_in_condition.rb#96
118
+ # source://rubocop/1.75.8/lib/rubocop/cop/lint/assignment_in_condition.rb#94
118
119
  def traverse_node(node, &block); end
119
120
  end
120
121
 
121
122
  # source://standard//lib/standard/rubocop/ext.rb#9
122
123
  class RuboCop::DirectiveComment
123
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#30
124
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#46
124
125
  def initialize(comment, cop_registry = T.unsafe(nil)); end
125
126
 
126
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#80
127
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#115
127
128
  def all_cops?; end
128
129
 
129
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#28
130
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#44
130
131
  def comment; end
131
132
 
132
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#85
133
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#120
133
134
  def cop_names; end
134
135
 
135
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#28
136
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#44
136
137
  def cop_registry; end
137
138
 
138
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#28
139
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#44
139
140
  def cops; end
140
141
 
141
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#91
142
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#131
142
143
  def department_names; end
143
144
 
144
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#105
145
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#145
145
146
  def directive_count; end
146
147
 
147
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#60
148
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#95
148
149
  def disabled?; end
149
150
 
150
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#75
151
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#110
151
152
  def disabled_all?; end
152
153
 
153
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#65
154
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#100
154
155
  def enabled?; end
155
156
 
156
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#70
157
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#105
157
158
  def enabled_all?; end
158
159
 
159
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#96
160
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#136
160
161
  def in_directive_department?(cop); end
161
162
 
162
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#110
163
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#150
163
164
  def line_number; end
164
165
 
165
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#42
166
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#59
167
+ def malformed?; end
168
+
169
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#77
166
170
  def match?(cop_names); end
167
171
 
168
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#55
172
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#90
169
173
  def match_captures; end
170
174
 
171
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#28
175
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#67
176
+ def missing_cop_name?; end
177
+
178
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#44
172
179
  def mode; end
173
180
 
174
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#101
181
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#141
175
182
  def overridden_by_department?(cop); end
176
183
 
177
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#46
184
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#81
178
185
  def range; end
179
186
 
180
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#37
187
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#125
188
+ def raw_cop_names; end
189
+
190
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#72
181
191
  def single_line?; end
182
192
 
193
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#54
194
+ def start_with_marker?; end
195
+
183
196
  private
184
197
 
185
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#130
198
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#167
186
199
  def all_cop_names; end
187
200
 
188
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#134
201
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#171
189
202
  def cop_names_for_department(department); end
190
203
 
191
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#126
204
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#163
192
205
  def department?(name); end
193
206
 
194
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#140
195
- def exclude_redundant_directive_cop(cops); end
207
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#176
208
+ def exclude_lint_department_cops(cops); end
196
209
 
197
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#120
210
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#156
198
211
  def parsed_cop_names; end
199
212
 
200
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#116
201
- def splitted_cops_string; end
202
-
203
213
  class << self
204
- # source://rubocop/1.60.2/lib/rubocop/directive_comment.rb#24
214
+ # source://rubocop/1.75.8/lib/rubocop/directive_comment.rb#40
205
215
  def before_comment(line); end
206
216
  end
207
217
  end
@@ -460,9 +470,66 @@ class Standard::LoadsYamlConfig
460
470
  def normalized_ruby_version(version); end
461
471
  end
462
472
 
463
- # source://standard//lib/standard/lsp/standardizer.rb#4
473
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#2
464
474
  module Standard::Lsp; end
465
475
 
476
+ # source://standard//lib/standard/lsp/diagnostic.rb#3
477
+ class Standard::Lsp::Diagnostic
478
+ # @return [Diagnostic] a new instance of Diagnostic
479
+ #
480
+ # source://standard//lib/standard/lsp/diagnostic.rb#16
481
+ def initialize(document_encoding, offense, uri, cop_class); end
482
+
483
+ # source://standard//lib/standard/lsp/diagnostic.rb#23
484
+ def to_lsp_code_actions; end
485
+
486
+ # source://standard//lib/standard/lsp/diagnostic.rb#32
487
+ def to_lsp_diagnostic(config); end
488
+
489
+ private
490
+
491
+ # source://standard//lib/standard/lsp/diagnostic.rb#77
492
+ def autocorrect_action; end
493
+
494
+ # source://standard//lib/standard/lsp/diagnostic.rb#69
495
+ def code_description(config); end
496
+
497
+ # @return [Boolean]
498
+ #
499
+ # source://standard//lib/standard/lsp/diagnostic.rb#163
500
+ def correctable?; end
501
+
502
+ # source://standard//lib/standard/lsp/diagnostic.rb#108
503
+ def disable_line_action; end
504
+
505
+ # source://standard//lib/standard/lsp/diagnostic.rb#167
506
+ def ensure_uri_scheme(uri); end
507
+
508
+ # source://standard//lib/standard/lsp/diagnostic.rb#148
509
+ def length_of_line(line); end
510
+
511
+ # source://standard//lib/standard/lsp/diagnostic.rb#126
512
+ def line_disable_comment; end
513
+
514
+ # source://standard//lib/standard/lsp/diagnostic.rb#59
515
+ def message; end
516
+
517
+ # source://standard//lib/standard/lsp/diagnostic.rb#96
518
+ def offense_replacements; end
519
+
520
+ # source://standard//lib/standard/lsp/diagnostic.rb#65
521
+ def severity; end
522
+ end
523
+
524
+ # source://standard//lib/standard/lsp/diagnostic.rb#4
525
+ Standard::Lsp::Diagnostic::Constant = LanguageServer::Protocol::Constant
526
+
527
+ # source://standard//lib/standard/lsp/diagnostic.rb#5
528
+ Standard::Lsp::Diagnostic::Interface = LanguageServer::Protocol::Interface
529
+
530
+ # source://standard//lib/standard/lsp/diagnostic.rb#7
531
+ Standard::Lsp::Diagnostic::RUBOCOP_TO_LSP_SEVERITY = T.let(T.unsafe(nil), Hash)
532
+
466
533
  # source://standard//lib/standard/lsp/kills_server.rb#3
467
534
  class Standard::Lsp::KillsServer
468
535
  # source://standard//lib/standard/lsp/kills_server.rb#4
@@ -474,12 +541,12 @@ class Standard::Lsp::Logger
474
541
  # @return [Logger] a new instance of Logger
475
542
  #
476
543
  # source://standard//lib/standard/lsp/logger.rb#4
477
- def initialize; end
544
+ def initialize(prefix: T.unsafe(nil)); end
478
545
 
479
- # source://standard//lib/standard/lsp/logger.rb#8
546
+ # source://standard//lib/standard/lsp/logger.rb#9
480
547
  def puts(message); end
481
548
 
482
- # source://standard//lib/standard/lsp/logger.rb#12
549
+ # source://standard//lib/standard/lsp/logger.rb#13
483
550
  def puts_once(message); end
484
551
  end
485
552
 
@@ -499,27 +566,27 @@ class Standard::Lsp::Routes
499
566
  # source://standard//lib/standard/lsp/routes.rb#26
500
567
  def handle_initialize(request); end
501
568
 
502
- # source://standard//lib/standard/lsp/routes.rb#42
569
+ # source://standard//lib/standard/lsp/routes.rb#38
503
570
  def handle_initialized(request); end
504
571
 
505
- # source://standard//lib/standard/lsp/routes.rb#132
572
+ # source://standard//lib/standard/lsp/routes.rb#129
506
573
  def handle_method_missing(request); end
507
574
 
508
- # source://standard//lib/standard/lsp/routes.rb#46
575
+ # source://standard//lib/standard/lsp/routes.rb#42
509
576
  def handle_shutdown(request); end
510
577
 
511
- # source://standard//lib/standard/lsp/routes.rb#124
578
+ # source://standard//lib/standard/lsp/routes.rb#121
512
579
  def handle_unsupported_method(request, method = T.unsafe(nil)); end
513
580
 
514
581
  private
515
582
 
516
- # source://standard//lib/standard/lsp/routes.rb#165
583
+ # source://standard//lib/standard/lsp/routes.rb#162
517
584
  def diagnostic(file_uri, text); end
518
585
 
519
- # source://standard//lib/standard/lsp/routes.rb#144
586
+ # source://standard//lib/standard/lsp/routes.rb#141
520
587
  def format_file(file_uri); end
521
588
 
522
- # source://standard//lib/standard/lsp/routes.rb#140
589
+ # source://standard//lib/standard/lsp/routes.rb#137
523
590
  def uri_to_path(uri); end
524
591
 
525
592
  class << self
@@ -528,6 +595,9 @@ class Standard::Lsp::Routes
528
595
  end
529
596
  end
530
597
 
598
+ # source://standard//lib/standard/lsp/routes.rb#75
599
+ Standard::Lsp::Routes::CONFIGURATION_FILE_PATTERNS = T.let(T.unsafe(nil), Array)
600
+
531
601
  # source://standard//lib/standard/lsp/server.rb#9
532
602
  Standard::Lsp::SEV = LanguageServer::Protocol::Constant::DiagnosticSeverity
533
603
 
@@ -542,42 +612,57 @@ class Standard::Lsp::Server
542
612
  def start; end
543
613
  end
544
614
 
545
- # source://standard//lib/standard/lsp/standardizer.rb#5
615
+ # source://standard//lib/standard/lsp/standardizer.rb#6
546
616
  class Standard::Lsp::Standardizer
547
617
  # @return [Standardizer] a new instance of Standardizer
548
618
  #
549
- # source://standard//lib/standard/lsp/standardizer.rb#6
550
- def initialize(config, logger); end
619
+ # source://standard//lib/standard/lsp/standardizer.rb#7
620
+ def initialize(config); end
621
+
622
+ # source://standard//lib/standard/lsp/standardizer.rb#15
623
+ def format(path, text); end
551
624
 
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!
625
+ # source://standard//lib/standard/lsp/standardizer.rb#20
626
+ def offenses(path, text, document_encoding = T.unsafe(nil)); end
627
+ end
628
+
629
+ # Originally lifted from:
630
+ # https://github.com/Shopify/ruby-lsp/blob/8d4c17efce4e8ecc8e7c557ab2981db6b22c0b6d/lib/ruby_lsp/requests/support/rubocop_runner.rb#L20
631
+ #
632
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#5
633
+ class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner
634
+ # @return [StdinRubocopRunner] a new instance of StdinRubocopRunner
556
635
  #
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
636
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#21
637
+ def initialize(config); end
638
+
639
+ # Returns the value of attribute config_for_working_directory.
563
640
  #
564
- # source://standard//lib/standard/lsp/standardizer.rb#23
565
- def format(path, text); end
641
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#10
642
+ def config_for_working_directory; end
566
643
 
567
- # source://standard//lib/standard/lsp/standardizer.rb#29
568
- def offenses(path, text); end
644
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#60
645
+ def formatted_source; end
569
646
 
570
- private
647
+ # Returns the value of attribute offenses.
648
+ #
649
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#8
650
+ def offenses; end
571
651
 
572
- # source://standard//lib/standard/lsp/standardizer.rb#59
573
- def capture_rubocop_stdout(config); end
652
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#35
653
+ def run(path, contents); end
574
654
 
575
- # source://standard//lib/standard/lsp/standardizer.rb#50
576
- def fork_config(path, text, format:); end
655
+ private
656
+
657
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#66
658
+ def file_finished(_file, offenses); end
577
659
  end
578
660
 
579
- # source://standard//lib/standard/lsp/standardizer.rb#44
580
- Standard::Lsp::Standardizer::BASE_OPTIONS = T.let(T.unsafe(nil), Hash)
661
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#6
662
+ class Standard::Lsp::StdinRubocopRunner::ConfigurationError < ::StandardError; end
663
+
664
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#12
665
+ Standard::Lsp::StdinRubocopRunner::DEFAULT_RUBOCOP_OPTIONS = T.let(T.unsafe(nil), Hash)
581
666
 
582
667
  # source://standard//lib/standard/merges_settings.rb#4
583
668
  class Standard::MergesSettings
@@ -4,5 +4,6 @@
4
4
  # This is an autogenerated file for types exported from the `stringio` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem stringio`.
6
6
 
7
+
7
8
  # THIS IS AN EMPTY RBI FILE.
8
9
  # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem