lunchmoney 1.1.1 → 1.1.2

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.
@@ -0,0 +1,444 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `mdl` gem.
5
+ # Please instead update this file by running `bin/tapioca gem mdl`.
6
+
7
+ # source://mdl//lib/mdl/kramdown_parser.rb#6
8
+ module Kramdown
9
+ class << self
10
+ # source://kramdown/2.4.0/lib/kramdown/document.rb#49
11
+ def data_dir; end
12
+ end
13
+ end
14
+
15
+ # source://mdl//lib/mdl/kramdown_parser.rb#7
16
+ module Kramdown::Parser; end
17
+
18
+ # modified parser class - see comment above
19
+ #
20
+ # source://mdl//lib/mdl/kramdown_parser.rb#9
21
+ class Kramdown::Parser::MarkdownLint < ::Kramdown::Parser::Kramdown
22
+ # @return [MarkdownLint] a new instance of MarkdownLint
23
+ #
24
+ # source://mdl//lib/mdl/kramdown_parser.rb#10
25
+ def initialize(source, options); end
26
+ end
27
+
28
+ # Regular kramdown parser, but with GFM style fenced code blocks
29
+ #
30
+ # source://mdl//lib/mdl/kramdown_parser.rb#18
31
+ Kramdown::Parser::MarkdownLint::FENCED_CODEBLOCK_MATCH = T.let(T.unsafe(nil), Regexp)
32
+
33
+ # Primary MDL container
34
+ #
35
+ # source://mdl//lib/mdl/formatters/sarif.rb#3
36
+ module MarkdownLint
37
+ class << self
38
+ # Creates hyperlinks in terminal emulators, if available: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
39
+ #
40
+ # source://mdl//lib/mdl.rb#155
41
+ def linkify(text, url); end
42
+
43
+ # source://mdl//lib/mdl.rb#148
44
+ def printable_id(rule); end
45
+
46
+ # source://mdl//lib/mdl.rb#15
47
+ def run(argv = T.unsafe(nil)); end
48
+ end
49
+ end
50
+
51
+ # Our Mixlib::CLI class
52
+ #
53
+ # source://mdl//lib/mdl/cli.rb#6
54
+ class MarkdownLint::CLI
55
+ include ::Mixlib::CLI
56
+ extend ::Mixlib::CLI::ClassMethods
57
+ extend ::Mixlib::CLI::InheritMethods
58
+
59
+ # source://mdl//lib/mdl/cli.rb#116
60
+ def run(argv = T.unsafe(nil)); end
61
+
62
+ class << self
63
+ # source://mdl//lib/mdl/cli.rb#170
64
+ def probe_config_file(path); end
65
+
66
+ # source://mdl//lib/mdl/cli.rb#153
67
+ def toggle_list(parts, to_sym = T.unsafe(nil)); end
68
+ end
69
+ end
70
+
71
+ # source://mdl//lib/mdl/cli.rb#9
72
+ MarkdownLint::CLI::CONFIG_FILE = T.let(T.unsafe(nil), String)
73
+
74
+ # our Mixlib::Config class
75
+ #
76
+ # source://mdl//lib/mdl/config.rb#5
77
+ module MarkdownLint::Config
78
+ extend ::Mixlib::Config
79
+
80
+ class << self
81
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#34
82
+ def config_context_hashes; end
83
+
84
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#34
85
+ def config_context_hashes=(_arg0); end
86
+
87
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#33
88
+ def config_context_lists; end
89
+
90
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#33
91
+ def config_context_lists=(_arg0); end
92
+
93
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#32
94
+ def config_contexts; end
95
+
96
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#32
97
+ def config_contexts=(_arg0); end
98
+
99
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#35
100
+ def config_parent; end
101
+
102
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#35
103
+ def config_parent=(_arg0); end
104
+
105
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#31
106
+ def configurables; end
107
+
108
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#31
109
+ def configurables=(_arg0); end
110
+
111
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#30
112
+ def configuration; end
113
+
114
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#30
115
+ def configuration=(_arg0); end
116
+
117
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#667
118
+ def style(*args, &block); end
119
+
120
+ # source://mixlib-config/3.0.27/lib/mixlib/config.rb#663
121
+ def style=(value); end
122
+ end
123
+ end
124
+
125
+ # Representation of the markdown document passed to rule checks
126
+ #
127
+ # source://mdl//lib/mdl/doc.rb#7
128
+ class MarkdownLint::Doc
129
+ # Create a new document given a string containing the markdown source
130
+ #
131
+ # @return [Doc] a new instance of Doc
132
+ #
133
+ # source://mdl//lib/mdl/doc.rb#29
134
+ def initialize(text, ignore_front_matter = T.unsafe(nil)); end
135
+
136
+ # Returns the actual source line for a given element. You can pass in an
137
+ # element object or an options hash here. This is useful if you need to
138
+ # examine the source line directly for your rule to make use of
139
+ # information that isn't present in the parsed document.
140
+ #
141
+ # source://mdl//lib/mdl/doc.rb#135
142
+ def element_line(element); end
143
+
144
+ # Returns the line number a given element is located on in the source
145
+ # file. You can pass in either an element object or an options hash here.
146
+ #
147
+ # source://mdl//lib/mdl/doc.rb#124
148
+ def element_linenumber(element); end
149
+
150
+ # Returns a list of line numbers for all elements passed in. You can pass
151
+ # in a list of element objects or a list of options hashes here.
152
+ #
153
+ # source://mdl//lib/mdl/doc.rb#143
154
+ def element_linenumbers(elements); end
155
+
156
+ # Returns the actual source lines for a list of elements. You can pass in
157
+ # a list of elements objects or a list of options hashes here.
158
+ #
159
+ # source://mdl//lib/mdl/doc.rb#151
160
+ def element_lines(elements); end
161
+
162
+ # A list of raw markdown source lines. Note that the list is 0-indexed,
163
+ # while line numbers in the parsed source are 1-indexed, so you need to
164
+ # subtract 1 from a line number to get the correct line. The element_line*
165
+ # methods take care of this for you.
166
+ #
167
+ # source://mdl//lib/mdl/doc.rb#14
168
+ def elements; end
169
+
170
+ # Returns the element as plaintext
171
+ #
172
+ # source://mdl//lib/mdl/doc.rb#274
173
+ def extract_as_text(element); end
174
+
175
+ # Extracts the text from an element whose children consist of text
176
+ # elements and other things
177
+ #
178
+ # source://mdl//lib/mdl/doc.rb#245
179
+ def extract_text(element, prefix = T.unsafe(nil), restore_whitespace = T.unsafe(nil)); end
180
+
181
+ # Find all elements of a given type, returning their options hash. The
182
+ # options hash has most of the useful data about an element and often you
183
+ # can just use this in your rules.
184
+ #
185
+ # # Returns [ { :location => 1, :element_level => 2 }, ... ]
186
+ # elements = find_type(:li)
187
+ #
188
+ # If +nested+ is set to false, this returns only top level elements of a
189
+ # given type.
190
+ #
191
+ # source://mdl//lib/mdl/doc.rb#67
192
+ def find_type(type, nested = T.unsafe(nil)); end
193
+
194
+ # Find all elements of a given type, returning a list of the element
195
+ # objects themselves.
196
+ #
197
+ # Instead of a single type, a list of types can be provided instead to
198
+ # find all types.
199
+ #
200
+ # If +nested+ is set to false, this returns only top level elements of a
201
+ # given type.
202
+ #
203
+ # source://mdl//lib/mdl/doc.rb#81
204
+ def find_type_elements(type, nested = T.unsafe(nil), elements = T.unsafe(nil)); end
205
+
206
+ # A variation on find_type_elements that allows you to skip drilling down
207
+ # into children of specific element types.
208
+ #
209
+ # Instead of a single type, a list of types can be provided instead to
210
+ # find all types.
211
+ #
212
+ # Unlike find_type_elements, this method will always search for nested
213
+ # elements, and skip the element types given to nested_except.
214
+ #
215
+ # source://mdl//lib/mdl/doc.rb#103
216
+ def find_type_elements_except(type, nested_except = T.unsafe(nil), elements = T.unsafe(nil)); end
217
+
218
+ # Returns the header 'style' - :atx (hashes at the beginning), :atx_closed
219
+ # (atx header style, but with hashes at the end of the line also), :setext
220
+ # (underlined). You can pass in the element object or an options hash
221
+ # here.
222
+ #
223
+ # source://mdl//lib/mdl/doc.rb#161
224
+ def header_style(header); end
225
+
226
+ # Returns how much a given line is indented. Hard tabs are treated as an
227
+ # indent of 8 spaces. You need to pass in the raw string here.
228
+ #
229
+ # source://mdl//lib/mdl/doc.rb#206
230
+ def indent_for(line); end
231
+
232
+ # A list of raw markdown source lines. Note that the list is 0-indexed,
233
+ # while line numbers in the parsed source are 1-indexed, so you need to
234
+ # subtract 1 from a line number to get the correct line. The element_line*
235
+ # methods take care of this for you.
236
+ #
237
+ # source://mdl//lib/mdl/doc.rb#14
238
+ def lines; end
239
+
240
+ # Returns the list style for a list: :asterisk, :plus, :dash, :ordered or
241
+ # :ordered_paren depending on which symbol is used to denote the list
242
+ # item. You can pass in either the element itself or an options hash here.
243
+ #
244
+ # source://mdl//lib/mdl/doc.rb#183
245
+ def list_style(item); end
246
+
247
+ # Returns line numbers for lines that match the given regular expression
248
+ #
249
+ # source://mdl//lib/mdl/doc.rb#213
250
+ def matching_lines(regex); end
251
+
252
+ # Returns line numbers for lines that match the given regular expression.
253
+ # Only considers text inside of 'text' elements (i.e. regular markdown
254
+ # text and not code/links or other elements).
255
+ #
256
+ # source://mdl//lib/mdl/doc.rb#224
257
+ def matching_text_element_lines(regex, exclude_nested = T.unsafe(nil)); end
258
+
259
+ # A list of raw markdown source lines. Note that the list is 0-indexed,
260
+ # while line numbers in the parsed source are 1-indexed, so you need to
261
+ # subtract 1 from a line number to get the correct line. The element_line*
262
+ # methods take care of this for you.
263
+ #
264
+ # source://mdl//lib/mdl/doc.rb#14
265
+ def offset; end
266
+
267
+ # A list of raw markdown source lines. Note that the list is 0-indexed,
268
+ # while line numbers in the parsed source are 1-indexed, so you need to
269
+ # subtract 1 from a line number to get the correct line. The element_line*
270
+ # methods take care of this for you.
271
+ #
272
+ # source://mdl//lib/mdl/doc.rb#14
273
+ def parsed; end
274
+
275
+ private
276
+
277
+ # Adds a 'level' and 'parent' option to all elements to show how nested they
278
+ # are
279
+ #
280
+ # source://mdl//lib/mdl/doc.rb#301
281
+ def add_annotations(elements, level = T.unsafe(nil), parent = T.unsafe(nil)); end
282
+
283
+ class << self
284
+ # Alternate 'constructor' passing in a filename
285
+ #
286
+ # source://mdl//lib/mdl/doc.rb#48
287
+ def new_from_file(filename, ignore_front_matter = T.unsafe(nil)); end
288
+ end
289
+ end
290
+
291
+ # defines a single rule
292
+ #
293
+ # source://mdl//lib/mdl/ruleset.rb#3
294
+ class MarkdownLint::Rule
295
+ # @return [Rule] a new instance of Rule
296
+ #
297
+ # source://mdl//lib/mdl/ruleset.rb#6
298
+ def initialize(id, description, fallback_docs: T.unsafe(nil), &block); end
299
+
300
+ # source://mdl//lib/mdl/ruleset.rb#27
301
+ def aliases(*aliases); end
302
+
303
+ # source://mdl//lib/mdl/ruleset.rb#17
304
+ def check(&block); end
305
+
306
+ # Returns the value of attribute description.
307
+ #
308
+ # source://mdl//lib/mdl/ruleset.rb#4
309
+ def description; end
310
+
311
+ # Sets the attribute description
312
+ #
313
+ # @param value the value to set the attribute description to.
314
+ #
315
+ # source://mdl//lib/mdl/ruleset.rb#4
316
+ def description=(_arg0); end
317
+
318
+ # source://mdl//lib/mdl/ruleset.rb#37
319
+ def docs(url = T.unsafe(nil), &block); end
320
+
321
+ # source://mdl//lib/mdl/ruleset.rb#48
322
+ def docs_url; end
323
+
324
+ # This method returns all the rows of a table
325
+ #
326
+ # @param lines [Array<String>] Lines of a doc as an array
327
+ # @param pos [Numeric] Position/index of the table in the array
328
+ # @return [Array<String>] Rows of the table in an array
329
+ #
330
+ # source://mdl//lib/mdl/ruleset.rb#89
331
+ def get_table_rows(lines, pos); end
332
+
333
+ # Returns the value of attribute id.
334
+ #
335
+ # source://mdl//lib/mdl/ruleset.rb#4
336
+ def id; end
337
+
338
+ # Sets the attribute id
339
+ #
340
+ # @param value the value to set the attribute id to.
341
+ #
342
+ # source://mdl//lib/mdl/ruleset.rb#4
343
+ def id=(_arg0); end
344
+
345
+ # This method calculates the number of columns in a table row
346
+ #
347
+ # @param table_row [String] A row of the table in question.
348
+ # @return [Numeric] Number of columns in the row
349
+ #
350
+ # source://mdl//lib/mdl/ruleset.rb#56
351
+ def number_of_columns_in_a_table_row(table_row); end
352
+
353
+ # source://mdl//lib/mdl/ruleset.rb#32
354
+ def params(params = T.unsafe(nil)); end
355
+
356
+ # source://mdl//lib/mdl/ruleset.rb#22
357
+ def tags(*tags); end
358
+ end
359
+
360
+ # defines a ruleset
361
+ #
362
+ # source://mdl//lib/mdl/ruleset.rb#115
363
+ class MarkdownLint::RuleSet
364
+ # @return [RuleSet] a new instance of RuleSet
365
+ #
366
+ # source://mdl//lib/mdl/ruleset.rb#118
367
+ def initialize; end
368
+
369
+ # source://mdl//lib/mdl/ruleset.rb#132
370
+ def docs(url = T.unsafe(nil), &block); end
371
+
372
+ # source://mdl//lib/mdl/ruleset.rb#127
373
+ def load(rules_file); end
374
+
375
+ # source://mdl//lib/mdl/ruleset.rb#140
376
+ def load_default; end
377
+
378
+ # source://mdl//lib/mdl/ruleset.rb#122
379
+ def rule(id, description, &block); end
380
+
381
+ # Returns the value of attribute rules.
382
+ #
383
+ # source://mdl//lib/mdl/ruleset.rb#116
384
+ def rules; end
385
+ end
386
+
387
+ # SARIF formatter
388
+ #
389
+ # @see https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html
390
+ #
391
+ # source://mdl//lib/mdl/formatters/sarif.rb#7
392
+ class MarkdownLint::SarifFormatter
393
+ class << self
394
+ # source://mdl//lib/mdl/formatters/sarif.rb#9
395
+ def generate(rules, results); end
396
+
397
+ # source://mdl//lib/mdl/formatters/sarif.rb#15
398
+ def generate_sarif(rules, results); end
399
+
400
+ # source://mdl//lib/mdl/formatters/sarif.rb#63
401
+ def generate_sarif_results(rules, results); end
402
+
403
+ # source://mdl//lib/mdl/formatters/sarif.rb#35
404
+ def generate_sarif_rules(rules); end
405
+ end
406
+ end
407
+
408
+ # defines a style
409
+ #
410
+ # source://mdl//lib/mdl/style.rb#5
411
+ class MarkdownLint::Style
412
+ # @return [Style] a new instance of Style
413
+ #
414
+ # source://mdl//lib/mdl/style.rb#8
415
+ def initialize(all_rules); end
416
+
417
+ # source://mdl//lib/mdl/style.rb#24
418
+ def all; end
419
+
420
+ # source://mdl//lib/mdl/style.rb#41
421
+ def exclude_rule(id); end
422
+
423
+ # source://mdl//lib/mdl/style.rb#50
424
+ def exclude_tag(tag); end
425
+
426
+ # source://mdl//lib/mdl/style.rb#28
427
+ def rule(id, params = T.unsafe(nil)); end
428
+
429
+ # Returns the value of attribute rules.
430
+ #
431
+ # source://mdl//lib/mdl/style.rb#6
432
+ def rules; end
433
+
434
+ # source://mdl//lib/mdl/style.rb#46
435
+ def tag(tag); end
436
+
437
+ class << self
438
+ # source://mdl//lib/mdl/style.rb#54
439
+ def load(style_file, rules); end
440
+ end
441
+ end
442
+
443
+ # source://mdl//lib/mdl/version.rb#2
444
+ MarkdownLint::VERSION = T.let(T.unsafe(nil), String)