mangrove 0.31.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/README.md +131 -41
- data/lib/mangrove/result/ext.rb +18 -0
- data/lib/mangrove/result.rb +51 -0
- data/lib/mangrove/version.rb +1 -1
- data/lib/tapioca/dsl/compilers/mangrove_result_ext.rb +40 -0
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
- data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
- data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
- data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
- data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
- data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
- data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
- data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
- data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
- data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
- data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
- data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
- data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
- data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
- data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
- 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.36.rbi → yard@0.9.37.rbi} +393 -235
- metadata +41 -42
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
- data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
- data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.rbi} +0 -0
@@ -1,315 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `ruboclean` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem ruboclean`.
|
6
|
-
|
7
|
-
|
8
|
-
# Ruboclean entry point
|
9
|
-
#
|
10
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#3
|
11
|
-
module Ruboclean
|
12
|
-
class << self
|
13
|
-
# source://ruboclean//lib/ruboclean.rb#26
|
14
|
-
def post_execution_message(changed, verify); end
|
15
|
-
|
16
|
-
# source://ruboclean//lib/ruboclean.rb#14
|
17
|
-
def run_from_cli!(args); end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Reads command line arguments and exposes corresponding reader methods
|
22
|
-
#
|
23
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#5
|
24
|
-
class Ruboclean::CliArguments
|
25
|
-
# @return [CliArguments] a new instance of CliArguments
|
26
|
-
#
|
27
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#6
|
28
|
-
def initialize(command_line_arguments = T.unsafe(nil)); end
|
29
|
-
|
30
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#10
|
31
|
-
def path; end
|
32
|
-
|
33
|
-
# @return [Boolean]
|
34
|
-
#
|
35
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#22
|
36
|
-
def preserve_comments?; end
|
37
|
-
|
38
|
-
# @return [Boolean]
|
39
|
-
#
|
40
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#26
|
41
|
-
def preserve_paths?; end
|
42
|
-
|
43
|
-
# @return [Boolean]
|
44
|
-
#
|
45
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#18
|
46
|
-
def silent?; end
|
47
|
-
|
48
|
-
# @return [Boolean]
|
49
|
-
#
|
50
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#14
|
51
|
-
def verbose?; end
|
52
|
-
|
53
|
-
# @return [Boolean]
|
54
|
-
#
|
55
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#30
|
56
|
-
def verify?; end
|
57
|
-
|
58
|
-
private
|
59
|
-
|
60
|
-
# Returns the value of attribute command_line_arguments.
|
61
|
-
#
|
62
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#36
|
63
|
-
def command_line_arguments; end
|
64
|
-
|
65
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#46
|
66
|
-
def find_argument(name); end
|
67
|
-
|
68
|
-
# source://ruboclean//lib/ruboclean/cli_arguments.rb#38
|
69
|
-
def find_path; end
|
70
|
-
end
|
71
|
-
|
72
|
-
# Groups the rubocop configuration items into three categories:
|
73
|
-
# - base: base configuration like 'require', 'inherit_from', etc
|
74
|
-
# - namespaces: every item which does **not** include an "/"
|
75
|
-
# - cops: every item which **includes** an "/"
|
76
|
-
#
|
77
|
-
# source://ruboclean//lib/ruboclean/grouper.rb#8
|
78
|
-
class Ruboclean::Grouper
|
79
|
-
# @return [Grouper] a new instance of Grouper
|
80
|
-
#
|
81
|
-
# source://ruboclean//lib/ruboclean/grouper.rb#9
|
82
|
-
def initialize(configuration_hash); end
|
83
|
-
|
84
|
-
# source://ruboclean//lib/ruboclean/grouper.rb#13
|
85
|
-
def group_config; end
|
86
|
-
|
87
|
-
private
|
88
|
-
|
89
|
-
# Returns the value of attribute configuration_hash.
|
90
|
-
#
|
91
|
-
# source://ruboclean//lib/ruboclean/grouper.rb#23
|
92
|
-
def configuration_hash; end
|
93
|
-
|
94
|
-
# source://ruboclean//lib/ruboclean/grouper.rb#25
|
95
|
-
def empty_groups; end
|
96
|
-
|
97
|
-
# source://ruboclean//lib/ruboclean/grouper.rb#29
|
98
|
-
def find_target_group(key); end
|
99
|
-
end
|
100
|
-
|
101
|
-
# Logger for clean management of log levels
|
102
|
-
#
|
103
|
-
# source://ruboclean//lib/ruboclean/logger.rb#5
|
104
|
-
class Ruboclean::Logger
|
105
|
-
# @raise [ArgumentError]
|
106
|
-
# @return [Logger] a new instance of Logger
|
107
|
-
#
|
108
|
-
# source://ruboclean//lib/ruboclean/logger.rb#6
|
109
|
-
def initialize(log_level = T.unsafe(nil)); end
|
110
|
-
|
111
|
-
# source://ruboclean//lib/ruboclean/logger.rb#12
|
112
|
-
def verbose(message); end
|
113
|
-
end
|
114
|
-
|
115
|
-
# Orders the items within the groups alphabetically
|
116
|
-
#
|
117
|
-
# source://ruboclean//lib/ruboclean/orderer.rb#5
|
118
|
-
class Ruboclean::Orderer
|
119
|
-
# @return [Orderer] a new instance of Orderer
|
120
|
-
#
|
121
|
-
# source://ruboclean//lib/ruboclean/orderer.rb#6
|
122
|
-
def initialize(configuration_hash); end
|
123
|
-
|
124
|
-
# source://ruboclean//lib/ruboclean/orderer.rb#10
|
125
|
-
def order; end
|
126
|
-
|
127
|
-
private
|
128
|
-
|
129
|
-
# Returns the value of attribute configuration_hash.
|
130
|
-
#
|
131
|
-
# source://ruboclean//lib/ruboclean/orderer.rb#19
|
132
|
-
def configuration_hash; end
|
133
|
-
|
134
|
-
# source://ruboclean//lib/ruboclean/orderer.rb#25
|
135
|
-
def grouped_config; end
|
136
|
-
|
137
|
-
# source://ruboclean//lib/ruboclean/orderer.rb#21
|
138
|
-
def order_by_key(group_items); end
|
139
|
-
end
|
140
|
-
|
141
|
-
# Cleans up any `Include` or `Exclude` paths that don't exist.
|
142
|
-
# The `Include` and `Exclude` paths are relative to the directory
|
143
|
-
# where the `.rubocop.yml` file is located. If a path includes a
|
144
|
-
# regexp, it's assumed to be valid.
|
145
|
-
# If all entries in `Include` or `Exclude` are removed, the entire property is removed.
|
146
|
-
# If a Cop gets entirely truncated due to removing all `Includes` and/or `Exclude`, the Cop itself will be removed.
|
147
|
-
#
|
148
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#10
|
149
|
-
class Ruboclean::PathCleanup
|
150
|
-
# @return [PathCleanup] a new instance of PathCleanup
|
151
|
-
#
|
152
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#11
|
153
|
-
def initialize(configuration_hash, root_directory); end
|
154
|
-
|
155
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#16
|
156
|
-
def cleanup; end
|
157
|
-
|
158
|
-
private
|
159
|
-
|
160
|
-
# @return [Boolean]
|
161
|
-
#
|
162
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#70
|
163
|
-
def any_global_command_pattern?(item); end
|
164
|
-
|
165
|
-
# Returns the value of attribute configuration_hash.
|
166
|
-
#
|
167
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#28
|
168
|
-
def configuration_hash; end
|
169
|
-
|
170
|
-
# @return [Boolean]
|
171
|
-
#
|
172
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#60
|
173
|
-
def path_exists?(item); end
|
174
|
-
|
175
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#51
|
176
|
-
def process_cop_property(cop_property_key, cop_property_value); end
|
177
|
-
|
178
|
-
# top_level_value could be something like this:
|
179
|
-
#
|
180
|
-
# {
|
181
|
-
# Include: [...],
|
182
|
-
# Exclude: [...],
|
183
|
-
# EnforcedStyle: "..."
|
184
|
-
# }
|
185
|
-
#
|
186
|
-
# We process it further in case of a Hash.
|
187
|
-
#
|
188
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#39
|
189
|
-
def process_top_level_value(top_level_value); end
|
190
|
-
|
191
|
-
# We don't support Regexp, so we just say it exists.
|
192
|
-
#
|
193
|
-
# @return [Boolean]
|
194
|
-
#
|
195
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#75
|
196
|
-
def regexp_pattern?(item); end
|
197
|
-
|
198
|
-
# Returns the value of attribute root_directory.
|
199
|
-
#
|
200
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#28
|
201
|
-
def root_directory; end
|
202
|
-
|
203
|
-
# @return [Boolean]
|
204
|
-
#
|
205
|
-
# source://ruboclean//lib/ruboclean/path_cleanup.rb#66
|
206
|
-
def specific_path_exists?(item); end
|
207
|
-
end
|
208
|
-
|
209
|
-
# Entry point for processing
|
210
|
-
#
|
211
|
-
# source://ruboclean//lib/ruboclean/runner.rb#8
|
212
|
-
class Ruboclean::Runner
|
213
|
-
# @return [Runner] a new instance of Runner
|
214
|
-
#
|
215
|
-
# source://ruboclean//lib/ruboclean/runner.rb#9
|
216
|
-
def initialize(args = T.unsafe(nil)); end
|
217
|
-
|
218
|
-
# @return [Boolean]
|
219
|
-
#
|
220
|
-
# source://ruboclean//lib/ruboclean/runner.rb#23
|
221
|
-
def changed?(target_yaml); end
|
222
|
-
|
223
|
-
# source://ruboclean//lib/ruboclean/runner.rb#35
|
224
|
-
def path; end
|
225
|
-
|
226
|
-
# source://ruboclean//lib/ruboclean/runner.rb#13
|
227
|
-
def run!; end
|
228
|
-
|
229
|
-
# @return [Boolean]
|
230
|
-
#
|
231
|
-
# source://ruboclean//lib/ruboclean/runner.rb#27
|
232
|
-
def verbose?; end
|
233
|
-
|
234
|
-
# @return [Boolean]
|
235
|
-
#
|
236
|
-
# source://ruboclean//lib/ruboclean/runner.rb#31
|
237
|
-
def verify?; end
|
238
|
-
|
239
|
-
private
|
240
|
-
|
241
|
-
# source://ruboclean//lib/ruboclean/runner.rb#55
|
242
|
-
def cleanup_paths(configuration_hash); end
|
243
|
-
|
244
|
-
# Returns the value of attribute cli_arguments.
|
245
|
-
#
|
246
|
-
# source://ruboclean//lib/ruboclean/runner.rb#41
|
247
|
-
def cli_arguments; end
|
248
|
-
|
249
|
-
# source://ruboclean//lib/ruboclean/runner.rb#61
|
250
|
-
def convert_to_yaml(configuration_hash); end
|
251
|
-
|
252
|
-
# @raise [ArgumentError]
|
253
|
-
#
|
254
|
-
# source://ruboclean//lib/ruboclean/runner.rb#75
|
255
|
-
def find_source_file_pathname; end
|
256
|
-
|
257
|
-
# source://ruboclean//lib/ruboclean/runner.rb#47
|
258
|
-
def load_file; end
|
259
|
-
|
260
|
-
# source://ruboclean//lib/ruboclean/runner.rb#51
|
261
|
-
def order(configuration_hash); end
|
262
|
-
|
263
|
-
# source://ruboclean//lib/ruboclean/runner.rb#71
|
264
|
-
def source_file_pathname; end
|
265
|
-
|
266
|
-
# source://ruboclean//lib/ruboclean/runner.rb#43
|
267
|
-
def source_yaml; end
|
268
|
-
|
269
|
-
# source://ruboclean//lib/ruboclean/runner.rb#65
|
270
|
-
def write_file!(target_yaml); end
|
271
|
-
end
|
272
|
-
|
273
|
-
# Converts the configuration hash to YAML and applies modifications on it, if requested
|
274
|
-
#
|
275
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#5
|
276
|
-
class Ruboclean::ToYamlConverter
|
277
|
-
# @return [ToYamlConverter] a new instance of ToYamlConverter
|
278
|
-
#
|
279
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#6
|
280
|
-
def initialize(configuration_hash, preserve_comments, source_yaml); end
|
281
|
-
|
282
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#12
|
283
|
-
def to_yaml; end
|
284
|
-
|
285
|
-
private
|
286
|
-
|
287
|
-
# Returns the value of attribute configuration_hash.
|
288
|
-
#
|
289
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#22
|
290
|
-
def configuration_hash; end
|
291
|
-
|
292
|
-
# Returns the value of attribute preserve_comments.
|
293
|
-
#
|
294
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#22
|
295
|
-
def preserve_comments; end
|
296
|
-
|
297
|
-
# @return [Boolean]
|
298
|
-
#
|
299
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#24
|
300
|
-
def preserve_comments?; end
|
301
|
-
|
302
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#32
|
303
|
-
def preserve_preceding_comments(source, target); end
|
304
|
-
|
305
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#28
|
306
|
-
def sanitize_yaml(data); end
|
307
|
-
|
308
|
-
# Returns the value of attribute source_yaml.
|
309
|
-
#
|
310
|
-
# source://ruboclean//lib/ruboclean/to_yaml_converter.rb#22
|
311
|
-
def source_yaml; end
|
312
|
-
end
|
313
|
-
|
314
|
-
# source://ruboclean//lib/ruboclean/version.rb#4
|
315
|
-
Ruboclean::VERSION = T.let(T.unsafe(nil), String)
|