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