sorbet-schema 0.4.2 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.standard.yml +2 -1
- data/CHANGELOG.md +23 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +50 -49
- data/README.md +230 -7
- data/lib/sorbet-schema/t/struct.rb +38 -0
- data/lib/sorbet-schema/version.rb +1 -1
- data/lib/sorbet-schema.rb +7 -1
- data/lib/typed/coercion/struct_coercer.rb +35 -1
- data/lib/typed/serializer.rb +1 -1
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +1 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +9 -0
- data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +23 -25
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
- data/sorbet/rbi/gems/io-console@0.7.2.rbi +1 -0
- data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +77 -68
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
- data/sorbet/rbi/gems/minitest-focus@1.4.0.rbi +14 -13
- data/sorbet/rbi/gems/{minitest-reporters@1.6.1.rbi → minitest-reporters@1.7.1.rbi} +48 -40
- data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.24.0.rbi} +174 -147
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +27 -20
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.3.0.rbi} +233 -186
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.30.0.rbi} +20933 -12761
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.0.rbi} +38 -33
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
- data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.13.rbi} +226 -154
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
- data/sorbet/rbi/gems/{reline@0.4.3.rbi → reline@0.5.9.rbi} +1 -0
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.3.0.rbi} +134 -114
- data/sorbet/rbi/gems/{rubocop-ast@1.31.2.rbi → rubocop-ast@1.31.3.rbi} +4 -6
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.21.1.rbi} +1 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +1 -0
- data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.64.1.rbi} +1149 -592
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
- data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +83 -82
- data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +1 -0
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.4.0.rbi} +1 -0
- data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.39.0.rbi} +160 -90
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +1 -0
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.14.4.rbi} +190 -142
- data/sorbet/rbi/gems/thor@1.3.1.rbi +1 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +1 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +2 -1
- data/sorbet/rbi/gems/yard@0.9.36.rbi +1 -0
- data/sorbet/rbi/gems/{zeitwerk@2.6.13.rbi → zeitwerk@2.6.16.rbi} +139 -91
- metadata +29 -28
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
@@ -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,6 +4,7 @@
|
|
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
|
# source://standard-performance//lib/standard/performance/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,25 +15,25 @@ 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.
|
18
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#63
|
18
19
|
def comment_only_line?(line_number); end
|
19
20
|
|
20
21
|
# source://forwardable/1.3.3/forwardable.rb#231
|
21
22
|
def config(*args, **_arg1, &block); end
|
22
23
|
|
23
|
-
# source://rubocop/1.
|
24
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#51
|
24
25
|
def cop_disabled_line_ranges; end
|
25
26
|
|
26
|
-
# source://rubocop/1.
|
27
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#39
|
27
28
|
def cop_enabled_at_line?(cop, line_number); end
|
28
29
|
|
29
|
-
# source://rubocop/1.
|
30
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#47
|
30
31
|
def cop_opted_in?(cop); end
|
31
32
|
|
32
|
-
# source://rubocop/1.
|
33
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#55
|
33
34
|
def extra_enabled_comments; end
|
34
35
|
|
35
|
-
# source://rubocop/1.
|
36
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#30
|
36
37
|
def processed_source; end
|
37
38
|
|
38
39
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -40,49 +41,49 @@ class RuboCop::CommentConfig
|
|
40
41
|
|
41
42
|
private
|
42
43
|
|
43
|
-
# source://rubocop/1.
|
44
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#96
|
44
45
|
def analyze; end
|
45
46
|
|
46
|
-
# source://rubocop/1.
|
47
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#124
|
47
48
|
def analyze_cop(analysis, directive); end
|
48
49
|
|
49
|
-
# source://rubocop/1.
|
50
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#144
|
50
51
|
def analyze_disabled(analysis, directive); end
|
51
52
|
|
52
|
-
# source://rubocop/1.
|
53
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#155
|
53
54
|
def analyze_rest(analysis, directive); end
|
54
55
|
|
55
|
-
# source://rubocop/1.
|
56
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#135
|
56
57
|
def analyze_single_line(analysis, directive); end
|
57
58
|
|
58
|
-
# source://rubocop/1.
|
59
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#164
|
59
60
|
def cop_line_ranges(analysis); end
|
60
61
|
|
61
|
-
# source://rubocop/1.
|
62
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#170
|
62
63
|
def each_directive; end
|
63
64
|
|
64
|
-
# source://rubocop/1.
|
65
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#69
|
65
66
|
def extra_enabled_comments_with_names(extras:, names:); end
|
66
67
|
|
67
|
-
# source://rubocop/1.
|
68
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#190
|
68
69
|
def handle_enable_all(directive, names, extras); end
|
69
70
|
|
70
|
-
# source://rubocop/1.
|
71
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#204
|
71
72
|
def handle_switch(directive, names, extras); end
|
72
73
|
|
73
|
-
# source://rubocop/1.
|
74
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#115
|
74
75
|
def inject_disabled_cops_directives(analyses); end
|
75
76
|
|
76
|
-
# source://rubocop/1.
|
77
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#183
|
77
78
|
def non_comment_token_line_numbers; end
|
78
79
|
|
79
|
-
# source://rubocop/1.
|
80
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#34
|
80
81
|
def old_initialize(processed_source); end
|
81
82
|
|
82
|
-
# source://rubocop/1.
|
83
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#83
|
83
84
|
def opt_in_cops; end
|
84
85
|
|
85
|
-
# source://rubocop/1.
|
86
|
+
# source://rubocop/1.64.1/lib/rubocop/comment_config.rb#179
|
86
87
|
def qualified_cop_name(cop_name); end
|
87
88
|
end
|
88
89
|
|
@@ -94,114 +95,114 @@ 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.
|
98
|
+
# source://rubocop/1.64.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
98
99
|
def on_if(node); end
|
99
100
|
|
100
|
-
# source://rubocop/1.
|
101
|
+
# source://rubocop/1.64.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
101
102
|
def on_until(node); end
|
102
103
|
|
103
|
-
# source://rubocop/1.
|
104
|
+
# source://rubocop/1.64.1/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.
|
109
|
+
# source://rubocop/1.64.1/lib/rubocop/cop/lint/assignment_in_condition.rb#82
|
109
110
|
def allowed_construct?(asgn_node); end
|
110
111
|
|
111
|
-
# source://rubocop/1.
|
112
|
+
# source://rubocop/1.64.1/lib/rubocop/cop/lint/assignment_in_condition.rb#86
|
112
113
|
def conditional_assignment?(asgn_node); end
|
113
114
|
|
114
|
-
# source://rubocop/1.
|
115
|
+
# source://rubocop/1.64.1/lib/rubocop/cop/lint/assignment_in_condition.rb#90
|
115
116
|
def skip_children?(asgn_node); end
|
116
117
|
|
117
|
-
# source://rubocop/1.
|
118
|
+
# source://rubocop/1.64.1/lib/rubocop/cop/lint/assignment_in_condition.rb#96
|
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.
|
124
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#32
|
124
125
|
def initialize(comment, cop_registry = T.unsafe(nil)); end
|
125
126
|
|
126
|
-
# source://rubocop/1.
|
127
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#82
|
127
128
|
def all_cops?; end
|
128
129
|
|
129
|
-
# source://rubocop/1.
|
130
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#30
|
130
131
|
def comment; end
|
131
132
|
|
132
|
-
# source://rubocop/1.
|
133
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#87
|
133
134
|
def cop_names; end
|
134
135
|
|
135
|
-
# source://rubocop/1.
|
136
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#30
|
136
137
|
def cop_registry; end
|
137
138
|
|
138
|
-
# source://rubocop/1.
|
139
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#30
|
139
140
|
def cops; end
|
140
141
|
|
141
|
-
# source://rubocop/1.
|
142
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#93
|
142
143
|
def department_names; end
|
143
144
|
|
144
|
-
# source://rubocop/1.
|
145
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#107
|
145
146
|
def directive_count; end
|
146
147
|
|
147
|
-
# source://rubocop/1.
|
148
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#62
|
148
149
|
def disabled?; end
|
149
150
|
|
150
|
-
# source://rubocop/1.
|
151
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#77
|
151
152
|
def disabled_all?; end
|
152
153
|
|
153
|
-
# source://rubocop/1.
|
154
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#67
|
154
155
|
def enabled?; end
|
155
156
|
|
156
|
-
# source://rubocop/1.
|
157
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#72
|
157
158
|
def enabled_all?; end
|
158
159
|
|
159
|
-
# source://rubocop/1.
|
160
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#98
|
160
161
|
def in_directive_department?(cop); end
|
161
162
|
|
162
|
-
# source://rubocop/1.
|
163
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#112
|
163
164
|
def line_number; end
|
164
165
|
|
165
|
-
# source://rubocop/1.
|
166
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#44
|
166
167
|
def match?(cop_names); end
|
167
168
|
|
168
|
-
# source://rubocop/1.
|
169
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#57
|
169
170
|
def match_captures; end
|
170
171
|
|
171
|
-
# source://rubocop/1.
|
172
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#30
|
172
173
|
def mode; end
|
173
174
|
|
174
|
-
# source://rubocop/1.
|
175
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#103
|
175
176
|
def overridden_by_department?(cop); end
|
176
177
|
|
177
|
-
# source://rubocop/1.
|
178
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#48
|
178
179
|
def range; end
|
179
180
|
|
180
|
-
# source://rubocop/1.
|
181
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#39
|
181
182
|
def single_line?; end
|
182
183
|
|
183
184
|
private
|
184
185
|
|
185
|
-
# source://rubocop/1.
|
186
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#133
|
186
187
|
def all_cop_names; end
|
187
188
|
|
188
|
-
# source://rubocop/1.
|
189
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#137
|
189
190
|
def cop_names_for_department(department); end
|
190
191
|
|
191
|
-
# source://rubocop/1.
|
192
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#129
|
192
193
|
def department?(name); end
|
193
194
|
|
194
|
-
# source://rubocop/1.
|
195
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#142
|
195
196
|
def exclude_lint_department_cops(cops); end
|
196
197
|
|
197
|
-
# source://rubocop/1.
|
198
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#122
|
198
199
|
def parsed_cop_names; end
|
199
200
|
|
200
|
-
# source://rubocop/1.
|
201
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#118
|
201
202
|
def splitted_cops_string; end
|
202
203
|
|
203
204
|
class << self
|
204
|
-
# source://rubocop/1.
|
205
|
+
# source://rubocop/1.64.1/lib/rubocop/directive_comment.rb#26
|
205
206
|
def before_comment(line); end
|
206
207
|
end
|
207
208
|
end
|
@@ -460,9 +461,63 @@ class Standard::LoadsYamlConfig
|
|
460
461
|
def normalized_ruby_version(version); end
|
461
462
|
end
|
462
463
|
|
463
|
-
# source://standard//lib/standard/lsp/
|
464
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#2
|
464
465
|
module Standard::Lsp; end
|
465
466
|
|
467
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#3
|
468
|
+
class Standard::Lsp::Diagnostic
|
469
|
+
# @return [Diagnostic] a new instance of Diagnostic
|
470
|
+
#
|
471
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#16
|
472
|
+
def initialize(document_encoding, offense, uri, cop_class); end
|
473
|
+
|
474
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#23
|
475
|
+
def to_lsp_code_actions; end
|
476
|
+
|
477
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#32
|
478
|
+
def to_lsp_diagnostic(config); end
|
479
|
+
|
480
|
+
private
|
481
|
+
|
482
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#77
|
483
|
+
def autocorrect_action; end
|
484
|
+
|
485
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#69
|
486
|
+
def code_description(config); end
|
487
|
+
|
488
|
+
# @return [Boolean]
|
489
|
+
#
|
490
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#163
|
491
|
+
def correctable?; end
|
492
|
+
|
493
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#108
|
494
|
+
def disable_line_action; end
|
495
|
+
|
496
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#148
|
497
|
+
def length_of_line(line); end
|
498
|
+
|
499
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#126
|
500
|
+
def line_disable_comment; end
|
501
|
+
|
502
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#59
|
503
|
+
def message; end
|
504
|
+
|
505
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#96
|
506
|
+
def offense_replacements; end
|
507
|
+
|
508
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#65
|
509
|
+
def severity; end
|
510
|
+
end
|
511
|
+
|
512
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#4
|
513
|
+
Standard::Lsp::Diagnostic::Constant = LanguageServer::Protocol::Constant
|
514
|
+
|
515
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#5
|
516
|
+
Standard::Lsp::Diagnostic::Interface = LanguageServer::Protocol::Interface
|
517
|
+
|
518
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#7
|
519
|
+
Standard::Lsp::Diagnostic::RUBOCOP_TO_LSP_SEVERITY = T.let(T.unsafe(nil), Hash)
|
520
|
+
|
466
521
|
# source://standard//lib/standard/lsp/kills_server.rb#3
|
467
522
|
class Standard::Lsp::KillsServer
|
468
523
|
# source://standard//lib/standard/lsp/kills_server.rb#4
|
@@ -474,12 +529,12 @@ class Standard::Lsp::Logger
|
|
474
529
|
# @return [Logger] a new instance of Logger
|
475
530
|
#
|
476
531
|
# source://standard//lib/standard/lsp/logger.rb#4
|
477
|
-
def initialize; end
|
532
|
+
def initialize(prefix: T.unsafe(nil)); end
|
478
533
|
|
479
|
-
# source://standard//lib/standard/lsp/logger.rb#
|
534
|
+
# source://standard//lib/standard/lsp/logger.rb#9
|
480
535
|
def puts(message); end
|
481
536
|
|
482
|
-
# source://standard//lib/standard/lsp/logger.rb#
|
537
|
+
# source://standard//lib/standard/lsp/logger.rb#13
|
483
538
|
def puts_once(message); end
|
484
539
|
end
|
485
540
|
|
@@ -499,27 +554,27 @@ class Standard::Lsp::Routes
|
|
499
554
|
# source://standard//lib/standard/lsp/routes.rb#26
|
500
555
|
def handle_initialize(request); end
|
501
556
|
|
502
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
557
|
+
# source://standard//lib/standard/lsp/routes.rb#38
|
503
558
|
def handle_initialized(request); end
|
504
559
|
|
505
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
560
|
+
# source://standard//lib/standard/lsp/routes.rb#122
|
506
561
|
def handle_method_missing(request); end
|
507
562
|
|
508
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
563
|
+
# source://standard//lib/standard/lsp/routes.rb#42
|
509
564
|
def handle_shutdown(request); end
|
510
565
|
|
511
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
566
|
+
# source://standard//lib/standard/lsp/routes.rb#114
|
512
567
|
def handle_unsupported_method(request, method = T.unsafe(nil)); end
|
513
568
|
|
514
569
|
private
|
515
570
|
|
516
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
571
|
+
# source://standard//lib/standard/lsp/routes.rb#155
|
517
572
|
def diagnostic(file_uri, text); end
|
518
573
|
|
519
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
574
|
+
# source://standard//lib/standard/lsp/routes.rb#134
|
520
575
|
def format_file(file_uri); end
|
521
576
|
|
522
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
577
|
+
# source://standard//lib/standard/lsp/routes.rb#130
|
523
578
|
def uri_to_path(uri); end
|
524
579
|
|
525
580
|
class << self
|
@@ -542,42 +597,57 @@ class Standard::Lsp::Server
|
|
542
597
|
def start; end
|
543
598
|
end
|
544
599
|
|
545
|
-
# source://standard//lib/standard/lsp/standardizer.rb#
|
600
|
+
# source://standard//lib/standard/lsp/standardizer.rb#6
|
546
601
|
class Standard::Lsp::Standardizer
|
547
602
|
# @return [Standardizer] a new instance of Standardizer
|
548
603
|
#
|
549
|
-
# source://standard//lib/standard/lsp/standardizer.rb#
|
550
|
-
def initialize(config
|
604
|
+
# source://standard//lib/standard/lsp/standardizer.rb#7
|
605
|
+
def initialize(config); end
|
606
|
+
|
607
|
+
# source://standard//lib/standard/lsp/standardizer.rb#15
|
608
|
+
def format(path, text); end
|
609
|
+
|
610
|
+
# source://standard//lib/standard/lsp/standardizer.rb#20
|
611
|
+
def offenses(path, text, document_encoding = T.unsafe(nil)); end
|
612
|
+
end
|
551
613
|
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
614
|
+
# Originally lifted from:
|
615
|
+
# https://github.com/Shopify/ruby-lsp/blob/8d4c17efce4e8ecc8e7c557ab2981db6b22c0b6d/lib/ruby_lsp/requests/support/rubocop_runner.rb#L20
|
616
|
+
#
|
617
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#5
|
618
|
+
class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner
|
619
|
+
# @return [StdinRubocopRunner] a new instance of StdinRubocopRunner
|
556
620
|
#
|
557
|
-
#
|
558
|
-
|
559
|
-
|
560
|
-
#
|
561
|
-
# Setting `parallel: true` would break this here:
|
562
|
-
# https://github.com/rubocop/rubocop/blob/master/lib/rubocop/runner.rb#L72
|
621
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#19
|
622
|
+
def initialize(config); end
|
623
|
+
|
624
|
+
# Returns the value of attribute config_for_working_directory.
|
563
625
|
#
|
564
|
-
# source://standard//lib/standard/lsp/
|
565
|
-
def
|
626
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#10
|
627
|
+
def config_for_working_directory; end
|
566
628
|
|
567
|
-
# source://standard//lib/standard/lsp/
|
568
|
-
def
|
629
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#50
|
630
|
+
def formatted_source; end
|
569
631
|
|
570
|
-
|
632
|
+
# Returns the value of attribute offenses.
|
633
|
+
#
|
634
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#8
|
635
|
+
def offenses; end
|
636
|
+
|
637
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#33
|
638
|
+
def run(path, contents); end
|
571
639
|
|
572
|
-
|
573
|
-
def capture_rubocop_stdout(config); end
|
640
|
+
private
|
574
641
|
|
575
|
-
# source://standard//lib/standard/lsp/
|
576
|
-
def
|
642
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#56
|
643
|
+
def file_finished(_file, offenses); end
|
577
644
|
end
|
578
645
|
|
579
|
-
# source://standard//lib/standard/lsp/
|
580
|
-
Standard::Lsp::
|
646
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#6
|
647
|
+
class Standard::Lsp::StdinRubocopRunner::ConfigurationError < ::StandardError; end
|
648
|
+
|
649
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#12
|
650
|
+
Standard::Lsp::StdinRubocopRunner::DEFAULT_RUBOCOP_OPTIONS = T.let(T.unsafe(nil), Hash)
|
581
651
|
|
582
652
|
# source://standard//lib/standard/merges_settings.rb#4
|
583
653
|
class Standard::MergesSettings
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `strscan` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem strscan`.
|
6
|
+
|
7
|
+
|
8
|
+
# THIS IS AN EMPTY RBI FILE.
|
9
|
+
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|