lunchmoney 1.1.1 → 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/.codeclimate.yml +7 -0
- data/.github/FUNDING.yml +1 -0
- data/.github/workflows/check_pipeline.yml +2 -2
- data/.github/workflows/ci.yml +10 -2
- data/.github/workflows/release_pipeline.yml +1 -1
- data/.mdlrc +5 -0
- data/.rubocop.yml +1 -0
- data/.simplecov +30 -0
- data/.toys/.toys.rb +1 -0
- data/.toys/coverage.rb +5 -0
- data/.toys/mdl.rb +5 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +64 -37
- data/LICENSE +1 -1
- data/README.md +7 -3
- data/lib/lunchmoney/objects/crypto.rb +6 -1
- data/lib/lunchmoney/objects/object.rb +3 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +11 -0
- data/sorbet/rbi/gems/{activesupport@7.1.3.rbi → activesupport@7.1.3.2.rbi} +23 -23
- data/sorbet/rbi/gems/chef-utils@18.4.2.rbi +8 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
- data/sorbet/rbi/gems/dotenv@3.1.0.rbi +300 -0
- data/sorbet/rbi/gems/{i18n@1.14.1.rbi → i18n@1.14.4.rbi} +48 -43
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +127 -0
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3271 -0
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +444 -0
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.22.3.rbi} +19 -18
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +313 -0
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +580 -0
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +628 -0
- data/sorbet/rbi/gems/{prism@0.19.0.rbi → prism@0.24.0.rbi} +8266 -7109
- data/sorbet/rbi/gems/{rack@3.0.8.rbi → rack@3.0.10.rbi} +83 -83
- data/sorbet/rbi/gems/{rbi@0.1.6.rbi → rbi@0.1.9.rbi} +114 -13
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.31.2.rbi} +61 -50
- data/sorbet/rbi/gems/{rubocop-minitest@0.34.5.rbi → rubocop-minitest@0.35.0.rbi} +34 -0
- data/sorbet/rbi/gems/{rubocop-rails@2.23.1.rbi → rubocop-rails@2.24.1.rbi} +159 -147
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.8.0.rbi} +24 -42
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.62.1.rbi} +807 -646
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +238 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.13.1.rbi} +83 -62
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +89 -50
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +8 -0
- data/sorbet/rbi/gems/{webmock@3.20.0.rbi → webmock@3.23.0.rbi} +25 -25
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +194 -58
- data/sorbet/tapioca/require.rb +1 -0
- metadata +39 -23
- data/.DS_Store +0 -0
- data/.github/workflows/publish_gem.yml +0 -29
- data/sorbet/rbi/gems/dotenv@2.8.1.rbi +0 -234
- /data/sorbet/rbi/gems/{bigdecimal@3.1.6.rbi → bigdecimal@3.1.7.rbi} +0 -0
- /data/sorbet/rbi/gems/{drb@2.2.0.rbi → drb@2.2.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-shopify@2.14.0.rbi → rubocop-shopify@2.15.1.rbi} +0 -0
@@ -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)
|
@@ -1967,27 +1967,27 @@ class Minitest::Test < ::Minitest::Runnable
|
|
1967
1967
|
|
1968
1968
|
# LifecycleHooks
|
1969
1969
|
#
|
1970
|
-
# source://minitest//lib/minitest/test.rb#
|
1970
|
+
# source://minitest//lib/minitest/test.rb#191
|
1971
1971
|
def capture_exceptions; end
|
1972
1972
|
|
1973
1973
|
# source://minitest//lib/minitest/test.rb#15
|
1974
1974
|
def class_name; end
|
1975
1975
|
|
1976
|
-
# source://minitest//lib/minitest/test.rb#
|
1976
|
+
# source://minitest//lib/minitest/test.rb#208
|
1977
1977
|
def neuter_exception(e); end
|
1978
1978
|
|
1979
|
-
# source://minitest//lib/minitest/test.rb#
|
1979
|
+
# source://minitest//lib/minitest/test.rb#219
|
1980
1980
|
def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
|
1981
1981
|
|
1982
1982
|
# Runs a single test with setup/teardown hooks.
|
1983
1983
|
#
|
1984
|
-
# source://minitest//lib/minitest/test.rb#
|
1984
|
+
# source://minitest//lib/minitest/test.rb#87
|
1985
1985
|
def run; end
|
1986
1986
|
|
1987
|
-
# source://minitest//lib/minitest/test.rb#
|
1987
|
+
# source://minitest//lib/minitest/test.rb#201
|
1988
1988
|
def sanitize_exception(e); end
|
1989
1989
|
|
1990
|
-
# source://minitest//lib/minitest/test.rb#
|
1990
|
+
# source://minitest//lib/minitest/test.rb#233
|
1991
1991
|
def with_info_handler(&block); end
|
1992
1992
|
|
1993
1993
|
class << self
|
@@ -2018,18 +2018,19 @@ class Minitest::Test < ::Minitest::Runnable
|
|
2018
2018
|
# source://minitest//lib/minitest/test.rb#48
|
2019
2019
|
def make_my_diffs_pretty!; end
|
2020
2020
|
|
2021
|
-
# Call this at the top of your tests
|
2022
|
-
#
|
2023
|
-
#
|
2021
|
+
# Call this at the top of your tests (inside the +Minitest::Test+
|
2022
|
+
# subclass or +describe+ block) when you want to run your tests in
|
2023
|
+
# parallel. In doing so, you're admitting that you rule and your
|
2024
|
+
# tests are awesome.
|
2024
2025
|
#
|
2025
|
-
# source://minitest//lib/minitest/test.rb#
|
2026
|
+
# source://minitest//lib/minitest/test.rb#60
|
2026
2027
|
def parallelize_me!; end
|
2027
2028
|
|
2028
2029
|
# Returns all instance methods starting with "test_". Based on
|
2029
2030
|
# #test_order, the methods are either sorted, randomized
|
2030
2031
|
# (default), or run in parallel.
|
2031
2032
|
#
|
2032
|
-
# source://minitest//lib/minitest/test.rb#
|
2033
|
+
# source://minitest//lib/minitest/test.rb#70
|
2033
2034
|
def runnable_methods; end
|
2034
2035
|
end
|
2035
2036
|
end
|
@@ -2038,7 +2039,7 @@ end
|
|
2038
2039
|
# meant for library writers, NOT for regular test authors. See
|
2039
2040
|
# #before_setup for an example.
|
2040
2041
|
#
|
2041
|
-
# source://minitest//lib/minitest/test.rb#
|
2042
|
+
# source://minitest//lib/minitest/test.rb#114
|
2042
2043
|
module Minitest::Test::LifecycleHooks
|
2043
2044
|
# Runs before every test, after setup. This hook is meant for
|
2044
2045
|
# libraries to extend minitest. It is not meant to be used by
|
@@ -2046,7 +2047,7 @@ module Minitest::Test::LifecycleHooks
|
|
2046
2047
|
#
|
2047
2048
|
# See #before_setup for an example.
|
2048
2049
|
#
|
2049
|
-
# source://minitest//lib/minitest/test.rb#
|
2050
|
+
# source://minitest//lib/minitest/test.rb#164
|
2050
2051
|
def after_setup; end
|
2051
2052
|
|
2052
2053
|
# Runs after every test, after teardown. This hook is meant for
|
@@ -2055,7 +2056,7 @@ module Minitest::Test::LifecycleHooks
|
|
2055
2056
|
#
|
2056
2057
|
# See #before_setup for an example.
|
2057
2058
|
#
|
2058
|
-
# source://minitest//lib/minitest/test.rb#
|
2059
|
+
# source://minitest//lib/minitest/test.rb#188
|
2059
2060
|
def after_teardown; end
|
2060
2061
|
|
2061
2062
|
# Runs before every test, before setup. This hook is meant for
|
@@ -2090,7 +2091,7 @@ module Minitest::Test::LifecycleHooks
|
|
2090
2091
|
# include MyMinitestPlugin
|
2091
2092
|
# end
|
2092
2093
|
#
|
2093
|
-
# source://minitest//lib/minitest/test.rb#
|
2094
|
+
# source://minitest//lib/minitest/test.rb#149
|
2094
2095
|
def before_setup; end
|
2095
2096
|
|
2096
2097
|
# Runs after every test, before teardown. This hook is meant for
|
@@ -2099,19 +2100,19 @@ module Minitest::Test::LifecycleHooks
|
|
2099
2100
|
#
|
2100
2101
|
# See #before_setup for an example.
|
2101
2102
|
#
|
2102
|
-
# source://minitest//lib/minitest/test.rb#
|
2103
|
+
# source://minitest//lib/minitest/test.rb#173
|
2103
2104
|
def before_teardown; end
|
2104
2105
|
|
2105
2106
|
# Runs before every test. Use this to set up before each test
|
2106
2107
|
# run.
|
2107
2108
|
#
|
2108
|
-
# source://minitest//lib/minitest/test.rb#
|
2109
|
+
# source://minitest//lib/minitest/test.rb#155
|
2109
2110
|
def setup; end
|
2110
2111
|
|
2111
2112
|
# Runs after every test. Use this to clean up after each test
|
2112
2113
|
# run.
|
2113
2114
|
#
|
2114
|
-
# source://minitest//lib/minitest/test.rb#
|
2115
|
+
# source://minitest//lib/minitest/test.rb#179
|
2115
2116
|
def teardown; end
|
2116
2117
|
end
|
2117
2118
|
|