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
@@ -1,328 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `rubocop-rake` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem rubocop-rake`.
|
6
|
-
|
7
|
-
# source://rubocop-rake//lib/rubocop/rake/version.rb#3
|
8
|
-
module RuboCop; end
|
9
|
-
|
10
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#4
|
11
|
-
module RuboCop::Cop; end
|
12
|
-
|
13
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#5
|
14
|
-
module RuboCop::Cop::Rake; end
|
15
|
-
|
16
|
-
# This cop detects class or module definition in a task or namespace,
|
17
|
-
# because it is defined to the top level.
|
18
|
-
# It is confusing because the scope looks in the task or namespace,
|
19
|
-
# but actually it is defined to the top level.
|
20
|
-
#
|
21
|
-
# @example
|
22
|
-
# # bad
|
23
|
-
# task :foo do
|
24
|
-
# class C
|
25
|
-
# end
|
26
|
-
# end
|
27
|
-
#
|
28
|
-
# # bad
|
29
|
-
# namespace :foo do
|
30
|
-
# module M
|
31
|
-
# end
|
32
|
-
# end
|
33
|
-
#
|
34
|
-
# # good - It is also defined to the top level,
|
35
|
-
# # but it looks expected behavior.
|
36
|
-
# class C
|
37
|
-
# end
|
38
|
-
# task :foo do
|
39
|
-
# end
|
40
|
-
#
|
41
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#31
|
42
|
-
class RuboCop::Cop::Rake::ClassDefinitionInTask < ::RuboCop::Cop::Base
|
43
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#34
|
44
|
-
def on_class(node); end
|
45
|
-
|
46
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#34
|
47
|
-
def on_module(node); end
|
48
|
-
end
|
49
|
-
|
50
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#32
|
51
|
-
RuboCop::Cop::Rake::ClassDefinitionInTask::MSG = T.let(T.unsafe(nil), String)
|
52
|
-
|
53
|
-
# Rake task definition should have a description with `desc` method.
|
54
|
-
# It is useful as a documentation of task. And Rake does not display
|
55
|
-
# task that does not have `desc` by `rake -T`.
|
56
|
-
#
|
57
|
-
# Note: This cop does not require description for the default task,
|
58
|
-
# because the default task is executed with `rake` without command.
|
59
|
-
#
|
60
|
-
# @example
|
61
|
-
# # bad
|
62
|
-
# task :do_something
|
63
|
-
#
|
64
|
-
# # bad
|
65
|
-
# task :do_something do
|
66
|
-
# end
|
67
|
-
#
|
68
|
-
# # good
|
69
|
-
# desc 'Do something'
|
70
|
-
# task :do_something
|
71
|
-
#
|
72
|
-
# # good
|
73
|
-
# desc 'Do something'
|
74
|
-
# task :do_something do
|
75
|
-
# end
|
76
|
-
#
|
77
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#30
|
78
|
-
class RuboCop::Cop::Rake::Desc < ::RuboCop::Cop::Base
|
79
|
-
include ::RuboCop::Cop::Rake::Helper::OnTask
|
80
|
-
extend ::RuboCop::Cop::AutoCorrector
|
81
|
-
|
82
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#40
|
83
|
-
def on_task(node); end
|
84
|
-
|
85
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#36
|
86
|
-
def prerequisites(param0 = T.unsafe(nil)); end
|
87
|
-
|
88
|
-
private
|
89
|
-
|
90
|
-
# @return [Boolean]
|
91
|
-
#
|
92
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#76
|
93
|
-
def can_insert_desc_to?(parent); end
|
94
|
-
|
95
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#62
|
96
|
-
def parent_and_task(task_node); end
|
97
|
-
|
98
|
-
# @return [Boolean]
|
99
|
-
#
|
100
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#50
|
101
|
-
def task_with_desc?(node); end
|
102
|
-
end
|
103
|
-
|
104
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#34
|
105
|
-
RuboCop::Cop::Rake::Desc::MSG = T.let(T.unsafe(nil), String)
|
106
|
-
|
107
|
-
# If namespaces are defined with the same name, Rake executes the both namespaces
|
108
|
-
# in definition order.
|
109
|
-
# It is redundant. You should squash them into one definition.
|
110
|
-
# This cop detects it.
|
111
|
-
#
|
112
|
-
# @example
|
113
|
-
# # bad
|
114
|
-
# namespace :foo do
|
115
|
-
# task :bar do
|
116
|
-
# end
|
117
|
-
# end
|
118
|
-
# namespace :foo do
|
119
|
-
# task :hoge do
|
120
|
-
# end
|
121
|
-
# end
|
122
|
-
#
|
123
|
-
# # good
|
124
|
-
# namespace :foo do
|
125
|
-
# task :bar do
|
126
|
-
# end
|
127
|
-
# task :hoge do
|
128
|
-
# end
|
129
|
-
# end
|
130
|
-
#
|
131
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#30
|
132
|
-
class RuboCop::Cop::Rake::DuplicateNamespace < ::RuboCop::Cop::Base
|
133
|
-
include ::RuboCop::Cop::Rake::Helper::OnNamespace
|
134
|
-
|
135
|
-
# @return [DuplicateNamespace] a new instance of DuplicateNamespace
|
136
|
-
#
|
137
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#35
|
138
|
-
def initialize(*_arg0); end
|
139
|
-
|
140
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#67
|
141
|
-
def message_for_dup(previous:, current:, namespace:); end
|
142
|
-
|
143
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#53
|
144
|
-
def namespaces(node); end
|
145
|
-
|
146
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#40
|
147
|
-
def on_namespace(node); end
|
148
|
-
|
149
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#76
|
150
|
-
def source_location(node); end
|
151
|
-
end
|
152
|
-
|
153
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#33
|
154
|
-
RuboCop::Cop::Rake::DuplicateNamespace::MSG = T.let(T.unsafe(nil), String)
|
155
|
-
|
156
|
-
# If tasks are defined with the same name, Rake executes the both tasks
|
157
|
-
# in definition order.
|
158
|
-
# It is misleading sometimes. You should squash them into one definition.
|
159
|
-
# This cop detects it.
|
160
|
-
#
|
161
|
-
# @example
|
162
|
-
# # bad
|
163
|
-
# task :foo do
|
164
|
-
# p 'foo 1'
|
165
|
-
# end
|
166
|
-
# task :foo do
|
167
|
-
# p 'foo 2'
|
168
|
-
# end
|
169
|
-
#
|
170
|
-
# # good
|
171
|
-
# task :foo do
|
172
|
-
# p 'foo 1'
|
173
|
-
# p 'foo 2'
|
174
|
-
# end
|
175
|
-
#
|
176
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#26
|
177
|
-
class RuboCop::Cop::Rake::DuplicateTask < ::RuboCop::Cop::Base
|
178
|
-
include ::RuboCop::Cop::Rake::Helper::OnTask
|
179
|
-
|
180
|
-
# @return [DuplicateTask] a new instance of DuplicateTask
|
181
|
-
#
|
182
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#31
|
183
|
-
def initialize(*_arg0); end
|
184
|
-
|
185
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#66
|
186
|
-
def message_for_dup(previous:, current:, task_name:); end
|
187
|
-
|
188
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#52
|
189
|
-
def namespaces(node); end
|
190
|
-
|
191
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#36
|
192
|
-
def on_task(node); end
|
193
|
-
|
194
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#75
|
195
|
-
def source_location(node); end
|
196
|
-
end
|
197
|
-
|
198
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#29
|
199
|
-
RuboCop::Cop::Rake::DuplicateTask::MSG = T.let(T.unsafe(nil), String)
|
200
|
-
|
201
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#6
|
202
|
-
module RuboCop::Cop::Rake::Helper; end
|
203
|
-
|
204
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#7
|
205
|
-
module RuboCop::Cop::Rake::Helper::ClassDefinition
|
206
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
207
|
-
extend ::RuboCop::Cop::Rake::Helper::ClassDefinition
|
208
|
-
|
209
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#11
|
210
|
-
def class_definition?(param0 = T.unsafe(nil)); end
|
211
|
-
|
212
|
-
# @return [Boolean]
|
213
|
-
#
|
214
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#22
|
215
|
-
def in_class_definition?(node); end
|
216
|
-
end
|
217
|
-
|
218
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#7
|
219
|
-
module RuboCop::Cop::Rake::Helper::OnNamespace
|
220
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
221
|
-
|
222
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#10
|
223
|
-
def namespace?(param0 = T.unsafe(nil)); end
|
224
|
-
|
225
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#14
|
226
|
-
def on_send(node); end
|
227
|
-
end
|
228
|
-
|
229
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#7
|
230
|
-
module RuboCop::Cop::Rake::Helper::OnTask
|
231
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
232
|
-
|
233
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#14
|
234
|
-
def on_send(node); end
|
235
|
-
|
236
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#10
|
237
|
-
def task?(param0 = T.unsafe(nil)); end
|
238
|
-
end
|
239
|
-
|
240
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#7
|
241
|
-
module RuboCop::Cop::Rake::Helper::TaskDefinition
|
242
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
243
|
-
extend ::RuboCop::Cop::Rake::Helper::TaskDefinition
|
244
|
-
|
245
|
-
# @return [Boolean]
|
246
|
-
#
|
247
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#19
|
248
|
-
def in_task_or_namespace?(node); end
|
249
|
-
|
250
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#11
|
251
|
-
def task_or_namespace?(param0 = T.unsafe(nil)); end
|
252
|
-
end
|
253
|
-
|
254
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_name.rb#7
|
255
|
-
module RuboCop::Cop::Rake::Helper::TaskName
|
256
|
-
extend ::RuboCop::Cop::Rake::Helper::TaskName
|
257
|
-
|
258
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_name.rb#10
|
259
|
-
def task_name(node); end
|
260
|
-
end
|
261
|
-
|
262
|
-
# This cop detects method definition in a task or namespace,
|
263
|
-
# because it is defined to the top level.
|
264
|
-
# It is confusing because the scope looks in the task or namespace,
|
265
|
-
# but actually it is defined to the top level.
|
266
|
-
#
|
267
|
-
# @example
|
268
|
-
# # bad
|
269
|
-
# task :foo do
|
270
|
-
# def helper_method
|
271
|
-
# do_something
|
272
|
-
# end
|
273
|
-
# end
|
274
|
-
#
|
275
|
-
# # bad
|
276
|
-
# namespace :foo do
|
277
|
-
# def helper_method
|
278
|
-
# do_something
|
279
|
-
# end
|
280
|
-
# end
|
281
|
-
#
|
282
|
-
# # good - It is also defined to the top level,
|
283
|
-
# # but it looks expected behavior.
|
284
|
-
# def helper_method
|
285
|
-
# end
|
286
|
-
# task :foo do
|
287
|
-
# end
|
288
|
-
#
|
289
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#33
|
290
|
-
class RuboCop::Cop::Rake::MethodDefinitionInTask < ::RuboCop::Cop::Base
|
291
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#36
|
292
|
-
def on_def(node); end
|
293
|
-
|
294
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#36
|
295
|
-
def on_defs(node); end
|
296
|
-
end
|
297
|
-
|
298
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#34
|
299
|
-
RuboCop::Cop::Rake::MethodDefinitionInTask::MSG = T.let(T.unsafe(nil), String)
|
300
|
-
|
301
|
-
# source://rubocop-rake//lib/rubocop/rake/version.rb#4
|
302
|
-
module RuboCop::Rake; end
|
303
|
-
|
304
|
-
# source://rubocop-rake//lib/rubocop/rake.rb#12
|
305
|
-
RuboCop::Rake::CONFIG = T.let(T.unsafe(nil), Hash)
|
306
|
-
|
307
|
-
# source://rubocop-rake//lib/rubocop/rake.rb#11
|
308
|
-
RuboCop::Rake::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
309
|
-
|
310
|
-
# source://rubocop-rake//lib/rubocop/rake.rb#8
|
311
|
-
class RuboCop::Rake::Error < ::StandardError; end
|
312
|
-
|
313
|
-
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
314
|
-
# bit of our configuration.
|
315
|
-
#
|
316
|
-
# source://rubocop-rake//lib/rubocop/rake/inject.rb#9
|
317
|
-
module RuboCop::Rake::Inject
|
318
|
-
class << self
|
319
|
-
# source://rubocop-rake//lib/rubocop/rake/inject.rb#10
|
320
|
-
def defaults!; end
|
321
|
-
end
|
322
|
-
end
|
323
|
-
|
324
|
-
# source://rubocop-rake//lib/rubocop/rake.rb#10
|
325
|
-
RuboCop::Rake::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
326
|
-
|
327
|
-
# source://rubocop-rake//lib/rubocop/rake/version.rb#5
|
328
|
-
RuboCop::Rake::VERSION = T.let(T.unsafe(nil), String)
|