checkoff 0.201.0 → 0.203.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +130 -28
- data/.git-hooks/pre_commit/solargraph_typecheck.rb +12 -11
- data/.overcommit.yml +27 -2
- data/.rubocop.yml +20 -2
- data/.rubocop_todo.yml +90 -0
- data/.solargraph.yml +10 -1
- data/DEVELOPMENT.md +1 -1
- data/Gemfile +11 -8
- data/Gemfile.lock +66 -42
- data/LICENSE +1 -1
- data/Makefile +14 -12
- data/bin/brakeman +27 -0
- data/bin/overcommit_branch +117 -0
- data/bin/spoom +27 -0
- data/bin/srb +27 -0
- data/bin/srb-rbi +27 -0
- data/bin/tapioca +27 -0
- data/config/annotations_misc.rb +35 -0
- data/docs/cookiecutter_input.json +1 -0
- data/fix.sh +14 -6
- data/lib/checkoff/internal/search_url/simple_param_converter.rb +11 -0
- data/lib/checkoff/version.rb +1 -1
- data/requirements_dev.txt +1 -1
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/activesupport.rbi +453 -0
- data/sorbet/rbi/annotations/faraday.rbi +17 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/annotations/mocha.rbi +34 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/annotations/webmock.rbi +9 -0
- data/sorbet/rbi/dsl/.gitattributes +1 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18749 -0
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +1994 -0
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
- data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +6142 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/backport@1.2.0.rbi +523 -0
- data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +78 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +505 -0
- data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
- data/sorbet/rbi/gems/cache@0.4.1.rbi +211 -0
- data/sorbet/rbi/gems/cache_method@0.2.7.rbi +293 -0
- data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +9 -0
- data/sorbet/rbi/gems/childprocess@5.1.0.rbi +383 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11591 -0
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +145 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +969 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
- data/sorbet/rbi/gems/drb@2.2.0.rbi +1347 -0
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +9 -0
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +152 -0
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +222 -0
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +126 -0
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +136 -0
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +145 -0
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +259 -0
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +142 -0
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +118 -0
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +125 -0
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +133 -0
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +198 -0
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +2729 -0
- data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +29 -0
- data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +1004 -0
- data/sorbet/rbi/gems/gli@2.21.1.rbi +9 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +351 -0
- data/sorbet/rbi/gems/i18n@1.14.1.rbi +2326 -0
- data/sorbet/rbi/gems/imagen@0.1.8.rbi +340 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +899 -0
- data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +22 -0
- data/sorbet/rbi/gems/json@2.7.1.rbi +1562 -0
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +1405 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +128 -0
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3272 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
- data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +445 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +273 -0
- data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +127 -0
- data/sorbet/rbi/gems/mime-types@3.5.1.rbi +1252 -0
- data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +136 -0
- data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1014 -0
- data/sorbet/rbi/gems/minitest@5.21.1.rbi +1539 -0
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +314 -0
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +581 -0
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +629 -0
- data/sorbet/rbi/gems/mocha@2.1.0.rbi +12 -0
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +268 -0
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +102 -0
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +234 -0
- data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +94 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
- data/sorbet/rbi/gems/oauth2@1.4.11.rbi +833 -0
- data/sorbet/rbi/gems/ostruct@0.6.1.rbi +354 -0
- data/sorbet/rbi/gems/overcommit@0.64.0.rbi +2400 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +274 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +7253 -0
- data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10070 -0
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +936 -0
- data/sorbet/rbi/gems/punchlist@1.3.2.rbi +173 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
- data/sorbet/rbi/gems/rack@3.0.8.rbi +5184 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +3022 -0
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +5613 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3750 -0
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +390 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4888 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7061 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2577 -0
- data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +3262 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
- data/sorbet/rbi/gems/rubocop@1.59.0.rbi +57238 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
- data/sorbet/rbi/gems/rugged@1.6.3.rbi +1577 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
- data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +256 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
- data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +9396 -0
- data/sorbet/rbi/gems/source_finder@3.2.1.rbi +317 -0
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
- data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3604 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/tilt@2.4.0.rbi +933 -0
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +9 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
- data/sorbet/rbi/gems/undercover@0.5.0.rbi +433 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +1769 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18247 -0
- data/sorbet/rbi/todo.rbi +11 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +134 -3
@@ -0,0 +1,445 @@
|
|
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
|
+
|
8
|
+
# source://mdl//lib/mdl/kramdown_parser.rb#6
|
9
|
+
module Kramdown
|
10
|
+
class << self
|
11
|
+
# source://kramdown/2.4.0/lib/kramdown/document.rb#49
|
12
|
+
def data_dir; end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# source://mdl//lib/mdl/kramdown_parser.rb#7
|
17
|
+
module Kramdown::Parser; end
|
18
|
+
|
19
|
+
# modified parser class - see comment above
|
20
|
+
#
|
21
|
+
# source://mdl//lib/mdl/kramdown_parser.rb#9
|
22
|
+
class Kramdown::Parser::MarkdownLint < ::Kramdown::Parser::Kramdown
|
23
|
+
# @return [MarkdownLint] a new instance of MarkdownLint
|
24
|
+
#
|
25
|
+
# source://mdl//lib/mdl/kramdown_parser.rb#10
|
26
|
+
def initialize(source, options); end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Regular kramdown parser, but with GFM style fenced code blocks
|
30
|
+
#
|
31
|
+
# source://mdl//lib/mdl/kramdown_parser.rb#18
|
32
|
+
Kramdown::Parser::MarkdownLint::FENCED_CODEBLOCK_MATCH = T.let(T.unsafe(nil), Regexp)
|
33
|
+
|
34
|
+
# Primary MDL container
|
35
|
+
#
|
36
|
+
# source://mdl//lib/mdl/formatters/sarif.rb#3
|
37
|
+
module MarkdownLint
|
38
|
+
class << self
|
39
|
+
# Creates hyperlinks in terminal emulators, if available: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
|
40
|
+
#
|
41
|
+
# source://mdl//lib/mdl.rb#155
|
42
|
+
def linkify(text, url); end
|
43
|
+
|
44
|
+
# source://mdl//lib/mdl.rb#148
|
45
|
+
def printable_id(rule); end
|
46
|
+
|
47
|
+
# source://mdl//lib/mdl.rb#15
|
48
|
+
def run(argv = T.unsafe(nil)); end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# Our Mixlib::CLI class
|
53
|
+
#
|
54
|
+
# source://mdl//lib/mdl/cli.rb#6
|
55
|
+
class MarkdownLint::CLI
|
56
|
+
include ::Mixlib::CLI
|
57
|
+
extend ::Mixlib::CLI::ClassMethods
|
58
|
+
extend ::Mixlib::CLI::InheritMethods
|
59
|
+
|
60
|
+
# source://mdl//lib/mdl/cli.rb#116
|
61
|
+
def run(argv = T.unsafe(nil)); end
|
62
|
+
|
63
|
+
class << self
|
64
|
+
# source://mdl//lib/mdl/cli.rb#170
|
65
|
+
def probe_config_file(path); end
|
66
|
+
|
67
|
+
# source://mdl//lib/mdl/cli.rb#153
|
68
|
+
def toggle_list(parts, to_sym = T.unsafe(nil)); end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# source://mdl//lib/mdl/cli.rb#9
|
73
|
+
MarkdownLint::CLI::CONFIG_FILE = T.let(T.unsafe(nil), String)
|
74
|
+
|
75
|
+
# our Mixlib::Config class
|
76
|
+
#
|
77
|
+
# source://mdl//lib/mdl/config.rb#5
|
78
|
+
module MarkdownLint::Config
|
79
|
+
extend ::Mixlib::Config
|
80
|
+
|
81
|
+
class << self
|
82
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#34
|
83
|
+
def config_context_hashes; end
|
84
|
+
|
85
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#34
|
86
|
+
def config_context_hashes=(_arg0); end
|
87
|
+
|
88
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#33
|
89
|
+
def config_context_lists; end
|
90
|
+
|
91
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#33
|
92
|
+
def config_context_lists=(_arg0); end
|
93
|
+
|
94
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#32
|
95
|
+
def config_contexts; end
|
96
|
+
|
97
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#32
|
98
|
+
def config_contexts=(_arg0); end
|
99
|
+
|
100
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#35
|
101
|
+
def config_parent; end
|
102
|
+
|
103
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#35
|
104
|
+
def config_parent=(_arg0); end
|
105
|
+
|
106
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#31
|
107
|
+
def configurables; end
|
108
|
+
|
109
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#31
|
110
|
+
def configurables=(_arg0); end
|
111
|
+
|
112
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#30
|
113
|
+
def configuration; end
|
114
|
+
|
115
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#30
|
116
|
+
def configuration=(_arg0); end
|
117
|
+
|
118
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#667
|
119
|
+
def style(*args, &block); end
|
120
|
+
|
121
|
+
# source://mixlib-config/3.0.27/lib/mixlib/config.rb#663
|
122
|
+
def style=(value); end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# Representation of the markdown document passed to rule checks
|
127
|
+
#
|
128
|
+
# source://mdl//lib/mdl/doc.rb#7
|
129
|
+
class MarkdownLint::Doc
|
130
|
+
# Create a new document given a string containing the markdown source
|
131
|
+
#
|
132
|
+
# @return [Doc] a new instance of Doc
|
133
|
+
#
|
134
|
+
# source://mdl//lib/mdl/doc.rb#29
|
135
|
+
def initialize(text, ignore_front_matter = T.unsafe(nil)); end
|
136
|
+
|
137
|
+
# Returns the actual source line for a given element. You can pass in an
|
138
|
+
# element object or an options hash here. This is useful if you need to
|
139
|
+
# examine the source line directly for your rule to make use of
|
140
|
+
# information that isn't present in the parsed document.
|
141
|
+
#
|
142
|
+
# source://mdl//lib/mdl/doc.rb#135
|
143
|
+
def element_line(element); end
|
144
|
+
|
145
|
+
# Returns the line number a given element is located on in the source
|
146
|
+
# file. You can pass in either an element object or an options hash here.
|
147
|
+
#
|
148
|
+
# source://mdl//lib/mdl/doc.rb#124
|
149
|
+
def element_linenumber(element); end
|
150
|
+
|
151
|
+
# Returns a list of line numbers for all elements passed in. You can pass
|
152
|
+
# in a list of element objects or a list of options hashes here.
|
153
|
+
#
|
154
|
+
# source://mdl//lib/mdl/doc.rb#143
|
155
|
+
def element_linenumbers(elements); end
|
156
|
+
|
157
|
+
# Returns the actual source lines for a list of elements. You can pass in
|
158
|
+
# a list of elements objects or a list of options hashes here.
|
159
|
+
#
|
160
|
+
# source://mdl//lib/mdl/doc.rb#151
|
161
|
+
def element_lines(elements); end
|
162
|
+
|
163
|
+
# A list of raw markdown source lines. Note that the list is 0-indexed,
|
164
|
+
# while line numbers in the parsed source are 1-indexed, so you need to
|
165
|
+
# subtract 1 from a line number to get the correct line. The element_line*
|
166
|
+
# methods take care of this for you.
|
167
|
+
#
|
168
|
+
# source://mdl//lib/mdl/doc.rb#14
|
169
|
+
def elements; end
|
170
|
+
|
171
|
+
# Returns the element as plaintext
|
172
|
+
#
|
173
|
+
# source://mdl//lib/mdl/doc.rb#274
|
174
|
+
def extract_as_text(element); end
|
175
|
+
|
176
|
+
# Extracts the text from an element whose children consist of text
|
177
|
+
# elements and other things
|
178
|
+
#
|
179
|
+
# source://mdl//lib/mdl/doc.rb#245
|
180
|
+
def extract_text(element, prefix = T.unsafe(nil), restore_whitespace = T.unsafe(nil)); end
|
181
|
+
|
182
|
+
# Find all elements of a given type, returning their options hash. The
|
183
|
+
# options hash has most of the useful data about an element and often you
|
184
|
+
# can just use this in your rules.
|
185
|
+
#
|
186
|
+
# # Returns [ { :location => 1, :element_level => 2 }, ... ]
|
187
|
+
# elements = find_type(:li)
|
188
|
+
#
|
189
|
+
# If +nested+ is set to false, this returns only top level elements of a
|
190
|
+
# given type.
|
191
|
+
#
|
192
|
+
# source://mdl//lib/mdl/doc.rb#67
|
193
|
+
def find_type(type, nested = T.unsafe(nil)); end
|
194
|
+
|
195
|
+
# Find all elements of a given type, returning a list of the element
|
196
|
+
# objects themselves.
|
197
|
+
#
|
198
|
+
# Instead of a single type, a list of types can be provided instead to
|
199
|
+
# find all types.
|
200
|
+
#
|
201
|
+
# If +nested+ is set to false, this returns only top level elements of a
|
202
|
+
# given type.
|
203
|
+
#
|
204
|
+
# source://mdl//lib/mdl/doc.rb#81
|
205
|
+
def find_type_elements(type, nested = T.unsafe(nil), elements = T.unsafe(nil)); end
|
206
|
+
|
207
|
+
# A variation on find_type_elements that allows you to skip drilling down
|
208
|
+
# into children of specific element types.
|
209
|
+
#
|
210
|
+
# Instead of a single type, a list of types can be provided instead to
|
211
|
+
# find all types.
|
212
|
+
#
|
213
|
+
# Unlike find_type_elements, this method will always search for nested
|
214
|
+
# elements, and skip the element types given to nested_except.
|
215
|
+
#
|
216
|
+
# source://mdl//lib/mdl/doc.rb#103
|
217
|
+
def find_type_elements_except(type, nested_except = T.unsafe(nil), elements = T.unsafe(nil)); end
|
218
|
+
|
219
|
+
# Returns the header 'style' - :atx (hashes at the beginning), :atx_closed
|
220
|
+
# (atx header style, but with hashes at the end of the line also), :setext
|
221
|
+
# (underlined). You can pass in the element object or an options hash
|
222
|
+
# here.
|
223
|
+
#
|
224
|
+
# source://mdl//lib/mdl/doc.rb#161
|
225
|
+
def header_style(header); end
|
226
|
+
|
227
|
+
# Returns how much a given line is indented. Hard tabs are treated as an
|
228
|
+
# indent of 8 spaces. You need to pass in the raw string here.
|
229
|
+
#
|
230
|
+
# source://mdl//lib/mdl/doc.rb#206
|
231
|
+
def indent_for(line); end
|
232
|
+
|
233
|
+
# A list of raw markdown source lines. Note that the list is 0-indexed,
|
234
|
+
# while line numbers in the parsed source are 1-indexed, so you need to
|
235
|
+
# subtract 1 from a line number to get the correct line. The element_line*
|
236
|
+
# methods take care of this for you.
|
237
|
+
#
|
238
|
+
# source://mdl//lib/mdl/doc.rb#14
|
239
|
+
def lines; end
|
240
|
+
|
241
|
+
# Returns the list style for a list: :asterisk, :plus, :dash, :ordered or
|
242
|
+
# :ordered_paren depending on which symbol is used to denote the list
|
243
|
+
# item. You can pass in either the element itself or an options hash here.
|
244
|
+
#
|
245
|
+
# source://mdl//lib/mdl/doc.rb#183
|
246
|
+
def list_style(item); end
|
247
|
+
|
248
|
+
# Returns line numbers for lines that match the given regular expression
|
249
|
+
#
|
250
|
+
# source://mdl//lib/mdl/doc.rb#213
|
251
|
+
def matching_lines(regex); end
|
252
|
+
|
253
|
+
# Returns line numbers for lines that match the given regular expression.
|
254
|
+
# Only considers text inside of 'text' elements (i.e. regular markdown
|
255
|
+
# text and not code/links or other elements).
|
256
|
+
#
|
257
|
+
# source://mdl//lib/mdl/doc.rb#224
|
258
|
+
def matching_text_element_lines(regex, exclude_nested = T.unsafe(nil)); end
|
259
|
+
|
260
|
+
# A list of raw markdown source lines. Note that the list is 0-indexed,
|
261
|
+
# while line numbers in the parsed source are 1-indexed, so you need to
|
262
|
+
# subtract 1 from a line number to get the correct line. The element_line*
|
263
|
+
# methods take care of this for you.
|
264
|
+
#
|
265
|
+
# source://mdl//lib/mdl/doc.rb#14
|
266
|
+
def offset; end
|
267
|
+
|
268
|
+
# A list of raw markdown source lines. Note that the list is 0-indexed,
|
269
|
+
# while line numbers in the parsed source are 1-indexed, so you need to
|
270
|
+
# subtract 1 from a line number to get the correct line. The element_line*
|
271
|
+
# methods take care of this for you.
|
272
|
+
#
|
273
|
+
# source://mdl//lib/mdl/doc.rb#14
|
274
|
+
def parsed; end
|
275
|
+
|
276
|
+
private
|
277
|
+
|
278
|
+
# Adds a 'level' and 'parent' option to all elements to show how nested they
|
279
|
+
# are
|
280
|
+
#
|
281
|
+
# source://mdl//lib/mdl/doc.rb#301
|
282
|
+
def add_annotations(elements, level = T.unsafe(nil), parent = T.unsafe(nil)); end
|
283
|
+
|
284
|
+
class << self
|
285
|
+
# Alternate 'constructor' passing in a filename
|
286
|
+
#
|
287
|
+
# source://mdl//lib/mdl/doc.rb#48
|
288
|
+
def new_from_file(filename, ignore_front_matter = T.unsafe(nil)); end
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
# defines a single rule
|
293
|
+
#
|
294
|
+
# source://mdl//lib/mdl/ruleset.rb#3
|
295
|
+
class MarkdownLint::Rule
|
296
|
+
# @return [Rule] a new instance of Rule
|
297
|
+
#
|
298
|
+
# source://mdl//lib/mdl/ruleset.rb#6
|
299
|
+
def initialize(id, description, fallback_docs: T.unsafe(nil), &block); end
|
300
|
+
|
301
|
+
# source://mdl//lib/mdl/ruleset.rb#27
|
302
|
+
def aliases(*aliases); end
|
303
|
+
|
304
|
+
# source://mdl//lib/mdl/ruleset.rb#17
|
305
|
+
def check(&block); end
|
306
|
+
|
307
|
+
# Returns the value of attribute description.
|
308
|
+
#
|
309
|
+
# source://mdl//lib/mdl/ruleset.rb#4
|
310
|
+
def description; end
|
311
|
+
|
312
|
+
# Sets the attribute description
|
313
|
+
#
|
314
|
+
# @param value the value to set the attribute description to.
|
315
|
+
#
|
316
|
+
# source://mdl//lib/mdl/ruleset.rb#4
|
317
|
+
def description=(_arg0); end
|
318
|
+
|
319
|
+
# source://mdl//lib/mdl/ruleset.rb#37
|
320
|
+
def docs(url = T.unsafe(nil), &block); end
|
321
|
+
|
322
|
+
# source://mdl//lib/mdl/ruleset.rb#48
|
323
|
+
def docs_url; end
|
324
|
+
|
325
|
+
# This method returns all the rows of a table
|
326
|
+
#
|
327
|
+
# @param lines [Array<String>] Lines of a doc as an array
|
328
|
+
# @param pos [Numeric] Position/index of the table in the array
|
329
|
+
# @return [Array<String>] Rows of the table in an array
|
330
|
+
#
|
331
|
+
# source://mdl//lib/mdl/ruleset.rb#89
|
332
|
+
def get_table_rows(lines, pos); end
|
333
|
+
|
334
|
+
# Returns the value of attribute id.
|
335
|
+
#
|
336
|
+
# source://mdl//lib/mdl/ruleset.rb#4
|
337
|
+
def id; end
|
338
|
+
|
339
|
+
# Sets the attribute id
|
340
|
+
#
|
341
|
+
# @param value the value to set the attribute id to.
|
342
|
+
#
|
343
|
+
# source://mdl//lib/mdl/ruleset.rb#4
|
344
|
+
def id=(_arg0); end
|
345
|
+
|
346
|
+
# This method calculates the number of columns in a table row
|
347
|
+
#
|
348
|
+
# @param table_row [String] A row of the table in question.
|
349
|
+
# @return [Numeric] Number of columns in the row
|
350
|
+
#
|
351
|
+
# source://mdl//lib/mdl/ruleset.rb#56
|
352
|
+
def number_of_columns_in_a_table_row(table_row); end
|
353
|
+
|
354
|
+
# source://mdl//lib/mdl/ruleset.rb#32
|
355
|
+
def params(params = T.unsafe(nil)); end
|
356
|
+
|
357
|
+
# source://mdl//lib/mdl/ruleset.rb#22
|
358
|
+
def tags(*tags); end
|
359
|
+
end
|
360
|
+
|
361
|
+
# defines a ruleset
|
362
|
+
#
|
363
|
+
# source://mdl//lib/mdl/ruleset.rb#115
|
364
|
+
class MarkdownLint::RuleSet
|
365
|
+
# @return [RuleSet] a new instance of RuleSet
|
366
|
+
#
|
367
|
+
# source://mdl//lib/mdl/ruleset.rb#118
|
368
|
+
def initialize; end
|
369
|
+
|
370
|
+
# source://mdl//lib/mdl/ruleset.rb#132
|
371
|
+
def docs(url = T.unsafe(nil), &block); end
|
372
|
+
|
373
|
+
# source://mdl//lib/mdl/ruleset.rb#127
|
374
|
+
def load(rules_file); end
|
375
|
+
|
376
|
+
# source://mdl//lib/mdl/ruleset.rb#140
|
377
|
+
def load_default; end
|
378
|
+
|
379
|
+
# source://mdl//lib/mdl/ruleset.rb#122
|
380
|
+
def rule(id, description, &block); end
|
381
|
+
|
382
|
+
# Returns the value of attribute rules.
|
383
|
+
#
|
384
|
+
# source://mdl//lib/mdl/ruleset.rb#116
|
385
|
+
def rules; end
|
386
|
+
end
|
387
|
+
|
388
|
+
# SARIF formatter
|
389
|
+
#
|
390
|
+
# @see https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html
|
391
|
+
#
|
392
|
+
# source://mdl//lib/mdl/formatters/sarif.rb#7
|
393
|
+
class MarkdownLint::SarifFormatter
|
394
|
+
class << self
|
395
|
+
# source://mdl//lib/mdl/formatters/sarif.rb#9
|
396
|
+
def generate(rules, results); end
|
397
|
+
|
398
|
+
# source://mdl//lib/mdl/formatters/sarif.rb#15
|
399
|
+
def generate_sarif(rules, results); end
|
400
|
+
|
401
|
+
# source://mdl//lib/mdl/formatters/sarif.rb#63
|
402
|
+
def generate_sarif_results(rules, results); end
|
403
|
+
|
404
|
+
# source://mdl//lib/mdl/formatters/sarif.rb#35
|
405
|
+
def generate_sarif_rules(rules); end
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
409
|
+
# defines a style
|
410
|
+
#
|
411
|
+
# source://mdl//lib/mdl/style.rb#5
|
412
|
+
class MarkdownLint::Style
|
413
|
+
# @return [Style] a new instance of Style
|
414
|
+
#
|
415
|
+
# source://mdl//lib/mdl/style.rb#8
|
416
|
+
def initialize(all_rules); end
|
417
|
+
|
418
|
+
# source://mdl//lib/mdl/style.rb#24
|
419
|
+
def all; end
|
420
|
+
|
421
|
+
# source://mdl//lib/mdl/style.rb#41
|
422
|
+
def exclude_rule(id); end
|
423
|
+
|
424
|
+
# source://mdl//lib/mdl/style.rb#50
|
425
|
+
def exclude_tag(tag); end
|
426
|
+
|
427
|
+
# source://mdl//lib/mdl/style.rb#28
|
428
|
+
def rule(id, params = T.unsafe(nil)); end
|
429
|
+
|
430
|
+
# Returns the value of attribute rules.
|
431
|
+
#
|
432
|
+
# source://mdl//lib/mdl/style.rb#6
|
433
|
+
def rules; end
|
434
|
+
|
435
|
+
# source://mdl//lib/mdl/style.rb#46
|
436
|
+
def tag(tag); end
|
437
|
+
|
438
|
+
class << self
|
439
|
+
# source://mdl//lib/mdl/style.rb#54
|
440
|
+
def load(style_file, rules); end
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
# source://mdl//lib/mdl/version.rb#2
|
445
|
+
MarkdownLint::VERSION = T.let(T.unsafe(nil), String)
|