sorbet-result 1.1.0 → 1.2.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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.standard.yml +1 -1
- data/.tool-versions +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +52 -57
- data/README.md +3 -3
- data/lib/typed/result.rb +32 -2
- data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
- 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.5.rbi} +148 -72
- 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@5.22.2.rbi → minitest@5.25.1.rbi} +252 -241
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.5.1.rbi} +233 -186
- data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.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.2.1.rbi +4535 -0
- 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.2.rbi → reline@0.5.10.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.33.1.rbi} +1143 -671
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.22.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.7.8.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.66.1.rbi} +3312 -2415
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.5.0.rbi} +2009 -854
- 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.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.41.1.rbi} +171 -95
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.3.rbi} +357 -257
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
- data/sorbet/rbi/gems/{unicode-display_width@2.5.0.rbi → unicode-display_width@2.6.0.rbi} +1 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
- metadata +28 -45
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
- data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
- 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,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` 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.
|
18
|
+
# source://rubocop/1.66.1/lib/rubocop/comment_config.rb#63
|
18
19
|
def comment_only_line?(line_number); end
|
19
20
|
|
20
|
-
# source://
|
21
|
-
def config(*
|
21
|
+
# source://rubocop-ast/1.33.1/lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
22
|
+
def config(*_arg0, **_arg1, &_arg2); end
|
22
23
|
|
23
|
-
# source://rubocop/1.
|
24
|
+
# source://rubocop/1.66.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.66.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.66.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.66.1/lib/rubocop/comment_config.rb#55
|
33
34
|
def extra_enabled_comments; end
|
34
35
|
|
35
|
-
# source://rubocop/1.
|
36
|
+
# source://rubocop/1.66.1/lib/rubocop/comment_config.rb#30
|
36
37
|
def processed_source; end
|
37
38
|
|
38
|
-
# source://
|
39
|
-
def registry(*
|
39
|
+
# source://rubocop-ast/1.33.1/lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
40
|
+
def registry(*_arg0, **_arg1, &_arg2); end
|
40
41
|
|
41
42
|
private
|
42
43
|
|
43
|
-
# source://rubocop/1.
|
44
|
+
# source://rubocop/1.66.1/lib/rubocop/comment_config.rb#96
|
44
45
|
def analyze; end
|
45
46
|
|
46
|
-
# source://rubocop/1.
|
47
|
+
# source://rubocop/1.66.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.66.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.66.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.66.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.66.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.66.1/lib/rubocop/comment_config.rb#170
|
62
63
|
def each_directive; end
|
63
64
|
|
64
|
-
# source://rubocop/1.
|
65
|
+
# source://rubocop/1.66.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.66.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.66.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.66.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.66.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.66.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.66.1/lib/rubocop/comment_config.rb#83
|
83
84
|
def opt_in_cops; end
|
84
85
|
|
85
|
-
# source://rubocop/1.
|
86
|
+
# source://rubocop/1.66.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.66.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.66.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.66.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.66.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.66.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.66.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.66.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.66.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.66.1/lib/rubocop/directive_comment.rb#82
|
127
128
|
def all_cops?; end
|
128
129
|
|
129
|
-
# source://rubocop/1.
|
130
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#30
|
130
131
|
def comment; end
|
131
132
|
|
132
|
-
# source://rubocop/1.
|
133
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#87
|
133
134
|
def cop_names; end
|
134
135
|
|
135
|
-
# source://rubocop/1.
|
136
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#30
|
136
137
|
def cop_registry; end
|
137
138
|
|
138
|
-
# source://rubocop/1.
|
139
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#30
|
139
140
|
def cops; end
|
140
141
|
|
141
|
-
# source://rubocop/1.
|
142
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#93
|
142
143
|
def department_names; end
|
143
144
|
|
144
|
-
# source://rubocop/1.
|
145
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#107
|
145
146
|
def directive_count; end
|
146
147
|
|
147
|
-
# source://rubocop/1.
|
148
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#62
|
148
149
|
def disabled?; end
|
149
150
|
|
150
|
-
# source://rubocop/1.
|
151
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#77
|
151
152
|
def disabled_all?; end
|
152
153
|
|
153
|
-
# source://rubocop/1.
|
154
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#67
|
154
155
|
def enabled?; end
|
155
156
|
|
156
|
-
# source://rubocop/1.
|
157
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#72
|
157
158
|
def enabled_all?; end
|
158
159
|
|
159
|
-
# source://rubocop/1.
|
160
|
+
# source://rubocop/1.66.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.66.1/lib/rubocop/directive_comment.rb#112
|
163
164
|
def line_number; end
|
164
165
|
|
165
|
-
# source://rubocop/1.
|
166
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#44
|
166
167
|
def match?(cop_names); end
|
167
168
|
|
168
|
-
# source://rubocop/1.
|
169
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#57
|
169
170
|
def match_captures; end
|
170
171
|
|
171
|
-
# source://rubocop/1.
|
172
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#30
|
172
173
|
def mode; end
|
173
174
|
|
174
|
-
# source://rubocop/1.
|
175
|
+
# source://rubocop/1.66.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.66.1/lib/rubocop/directive_comment.rb#48
|
178
179
|
def range; end
|
179
180
|
|
180
|
-
# source://rubocop/1.
|
181
|
+
# source://rubocop/1.66.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.66.1/lib/rubocop/directive_comment.rb#133
|
186
187
|
def all_cop_names; end
|
187
188
|
|
188
|
-
# source://rubocop/1.
|
189
|
+
# source://rubocop/1.66.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.66.1/lib/rubocop/directive_comment.rb#129
|
192
193
|
def department?(name); end
|
193
194
|
|
194
|
-
# source://rubocop/1.
|
195
|
-
def
|
195
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#142
|
196
|
+
def exclude_lint_department_cops(cops); end
|
196
197
|
|
197
|
-
# source://rubocop/1.
|
198
|
+
# source://rubocop/1.66.1/lib/rubocop/directive_comment.rb#122
|
198
199
|
def parsed_cop_names; end
|
199
200
|
|
200
|
-
# source://rubocop/1.
|
201
|
+
# source://rubocop/1.66.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.66.1/lib/rubocop/directive_comment.rb#26
|
205
206
|
def before_comment(line); end
|
206
207
|
end
|
207
208
|
end
|
@@ -460,9 +461,66 @@ 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#167
|
497
|
+
def ensure_uri_scheme(uri); end
|
498
|
+
|
499
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#148
|
500
|
+
def length_of_line(line); end
|
501
|
+
|
502
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#126
|
503
|
+
def line_disable_comment; end
|
504
|
+
|
505
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#59
|
506
|
+
def message; end
|
507
|
+
|
508
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#96
|
509
|
+
def offense_replacements; end
|
510
|
+
|
511
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#65
|
512
|
+
def severity; end
|
513
|
+
end
|
514
|
+
|
515
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#4
|
516
|
+
Standard::Lsp::Diagnostic::Constant = LanguageServer::Protocol::Constant
|
517
|
+
|
518
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#5
|
519
|
+
Standard::Lsp::Diagnostic::Interface = LanguageServer::Protocol::Interface
|
520
|
+
|
521
|
+
# source://standard//lib/standard/lsp/diagnostic.rb#7
|
522
|
+
Standard::Lsp::Diagnostic::RUBOCOP_TO_LSP_SEVERITY = T.let(T.unsafe(nil), Hash)
|
523
|
+
|
466
524
|
# source://standard//lib/standard/lsp/kills_server.rb#3
|
467
525
|
class Standard::Lsp::KillsServer
|
468
526
|
# source://standard//lib/standard/lsp/kills_server.rb#4
|
@@ -474,12 +532,12 @@ class Standard::Lsp::Logger
|
|
474
532
|
# @return [Logger] a new instance of Logger
|
475
533
|
#
|
476
534
|
# source://standard//lib/standard/lsp/logger.rb#4
|
477
|
-
def initialize; end
|
535
|
+
def initialize(prefix: T.unsafe(nil)); end
|
478
536
|
|
479
|
-
# source://standard//lib/standard/lsp/logger.rb#
|
537
|
+
# source://standard//lib/standard/lsp/logger.rb#9
|
480
538
|
def puts(message); end
|
481
539
|
|
482
|
-
# source://standard//lib/standard/lsp/logger.rb#
|
540
|
+
# source://standard//lib/standard/lsp/logger.rb#13
|
483
541
|
def puts_once(message); end
|
484
542
|
end
|
485
543
|
|
@@ -499,27 +557,27 @@ class Standard::Lsp::Routes
|
|
499
557
|
# source://standard//lib/standard/lsp/routes.rb#26
|
500
558
|
def handle_initialize(request); end
|
501
559
|
|
502
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
560
|
+
# source://standard//lib/standard/lsp/routes.rb#38
|
503
561
|
def handle_initialized(request); end
|
504
562
|
|
505
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
563
|
+
# source://standard//lib/standard/lsp/routes.rb#129
|
506
564
|
def handle_method_missing(request); end
|
507
565
|
|
508
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
566
|
+
# source://standard//lib/standard/lsp/routes.rb#42
|
509
567
|
def handle_shutdown(request); end
|
510
568
|
|
511
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
569
|
+
# source://standard//lib/standard/lsp/routes.rb#121
|
512
570
|
def handle_unsupported_method(request, method = T.unsafe(nil)); end
|
513
571
|
|
514
572
|
private
|
515
573
|
|
516
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
574
|
+
# source://standard//lib/standard/lsp/routes.rb#162
|
517
575
|
def diagnostic(file_uri, text); end
|
518
576
|
|
519
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
577
|
+
# source://standard//lib/standard/lsp/routes.rb#141
|
520
578
|
def format_file(file_uri); end
|
521
579
|
|
522
|
-
# source://standard//lib/standard/lsp/routes.rb#
|
580
|
+
# source://standard//lib/standard/lsp/routes.rb#137
|
523
581
|
def uri_to_path(uri); end
|
524
582
|
|
525
583
|
class << self
|
@@ -528,6 +586,9 @@ class Standard::Lsp::Routes
|
|
528
586
|
end
|
529
587
|
end
|
530
588
|
|
589
|
+
# source://standard//lib/standard/lsp/routes.rb#75
|
590
|
+
Standard::Lsp::Routes::CONFIGURATION_FILE_PATTERNS = T.let(T.unsafe(nil), Array)
|
591
|
+
|
531
592
|
# source://standard//lib/standard/lsp/server.rb#9
|
532
593
|
Standard::Lsp::SEV = LanguageServer::Protocol::Constant::DiagnosticSeverity
|
533
594
|
|
@@ -542,42 +603,57 @@ class Standard::Lsp::Server
|
|
542
603
|
def start; end
|
543
604
|
end
|
544
605
|
|
545
|
-
# source://standard//lib/standard/lsp/standardizer.rb#
|
606
|
+
# source://standard//lib/standard/lsp/standardizer.rb#6
|
546
607
|
class Standard::Lsp::Standardizer
|
547
608
|
# @return [Standardizer] a new instance of Standardizer
|
548
609
|
#
|
549
|
-
# source://standard//lib/standard/lsp/standardizer.rb#
|
550
|
-
def initialize(config
|
610
|
+
# source://standard//lib/standard/lsp/standardizer.rb#7
|
611
|
+
def initialize(config); end
|
612
|
+
|
613
|
+
# source://standard//lib/standard/lsp/standardizer.rb#15
|
614
|
+
def format(path, text); end
|
615
|
+
|
616
|
+
# source://standard//lib/standard/lsp/standardizer.rb#20
|
617
|
+
def offenses(path, text, document_encoding = T.unsafe(nil)); end
|
618
|
+
end
|
619
|
+
|
620
|
+
# Originally lifted from:
|
621
|
+
# https://github.com/Shopify/ruby-lsp/blob/8d4c17efce4e8ecc8e7c557ab2981db6b22c0b6d/lib/ruby_lsp/requests/support/rubocop_runner.rb#L20
|
622
|
+
#
|
623
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#5
|
624
|
+
class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner
|
625
|
+
# @return [StdinRubocopRunner] a new instance of StdinRubocopRunner
|
626
|
+
#
|
627
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#21
|
628
|
+
def initialize(config); end
|
551
629
|
|
552
|
-
#
|
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!
|
630
|
+
# Returns the value of attribute config_for_working_directory.
|
556
631
|
#
|
557
|
-
#
|
558
|
-
|
559
|
-
|
560
|
-
#
|
561
|
-
|
562
|
-
|
632
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#10
|
633
|
+
def config_for_working_directory; end
|
634
|
+
|
635
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#60
|
636
|
+
def formatted_source; end
|
637
|
+
|
638
|
+
# Returns the value of attribute offenses.
|
563
639
|
#
|
564
|
-
# source://standard//lib/standard/lsp/
|
565
|
-
def
|
640
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#8
|
641
|
+
def offenses; end
|
566
642
|
|
567
|
-
# source://standard//lib/standard/lsp/
|
568
|
-
def
|
643
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#35
|
644
|
+
def run(path, contents); end
|
569
645
|
|
570
646
|
private
|
571
647
|
|
572
|
-
# source://standard//lib/standard/lsp/
|
573
|
-
def
|
574
|
-
|
575
|
-
# source://standard//lib/standard/lsp/standardizer.rb#50
|
576
|
-
def fork_config(path, text, format:); end
|
648
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#66
|
649
|
+
def file_finished(_file, offenses); end
|
577
650
|
end
|
578
651
|
|
579
|
-
# source://standard//lib/standard/lsp/
|
580
|
-
Standard::Lsp::
|
652
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#6
|
653
|
+
class Standard::Lsp::StdinRubocopRunner::ConfigurationError < ::StandardError; end
|
654
|
+
|
655
|
+
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#12
|
656
|
+
Standard::Lsp::StdinRubocopRunner::DEFAULT_RUBOCOP_OPTIONS = T.let(T.unsafe(nil), Hash)
|
581
657
|
|
582
658
|
# source://standard//lib/standard/merges_settings.rb#4
|
583
659
|
class Standard::MergesSettings
|