checkoff 0.223.0 → 0.225.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/checkoff.gemspec +10 -5
  3. data/lib/checkoff/cli.rb +1 -1
  4. data/lib/checkoff/clients.rb +1 -1
  5. data/lib/checkoff/custom_fields.rb +1 -1
  6. data/lib/checkoff/events.rb +1 -1
  7. data/lib/checkoff/internal/config_loader.rb +2 -3
  8. data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +3 -2
  9. data/lib/checkoff/my_tasks.rb +1 -1
  10. data/lib/checkoff/portfolios.rb +11 -9
  11. data/lib/checkoff/projects.rb +1 -1
  12. data/lib/checkoff/sections.rb +3 -4
  13. data/lib/checkoff/tags.rb +66 -17
  14. data/lib/checkoff/tasks.rb +1 -1
  15. data/lib/checkoff/version.rb +1 -1
  16. data/lib/checkoff/workspaces.rb +1 -1
  17. data/rbi/checkoff.rbi +4529 -0
  18. data/sig/checkoff.rbs +3749 -0
  19. metadata +4 -210
  20. data/.circleci/config.yml +0 -291
  21. data/.envrc +0 -9
  22. data/.git-hooks/pre_commit/circle_ci.rb +0 -26
  23. data/.git-hooks/pre_commit/punchlist.rb +0 -52
  24. data/.git-hooks/pre_commit/solargraph_typecheck.rb +0 -77
  25. data/.gitattributes +0 -6
  26. data/.gitignore +0 -65
  27. data/.markdownlint_style.rb +0 -4
  28. data/.mdlrc +0 -1
  29. data/.overcommit.yml +0 -115
  30. data/.rubocop.yml +0 -143
  31. data/.rubocop_todo.yml +0 -90
  32. data/.solargraph.yml +0 -35
  33. data/.yamllint.yml +0 -8
  34. data/.yardopts +0 -2
  35. data/CODE_OF_CONDUCT.md +0 -133
  36. data/CONTRIBUTING.rst +0 -75
  37. data/DEVELOPMENT.md +0 -69
  38. data/GLOSSARY.md +0 -16
  39. data/Gemfile +0 -67
  40. data/Gemfile.lock +0 -351
  41. data/LICENSE +0 -21
  42. data/Makefile +0 -139
  43. data/bin/brakeman +0 -27
  44. data/bin/bump +0 -29
  45. data/bin/checkoff +0 -29
  46. data/bin/console +0 -15
  47. data/bin/overcommit +0 -29
  48. data/bin/overcommit_branch +0 -114
  49. data/bin/rake +0 -29
  50. data/bin/rubocop +0 -27
  51. data/bin/setup +0 -8
  52. data/bin/solargraph +0 -27
  53. data/bin/sord +0 -27
  54. data/bin/spoom +0 -27
  55. data/bin/srb +0 -27
  56. data/bin/srb-rbi +0 -27
  57. data/bin/tapioca +0 -27
  58. data/bin/yard +0 -27
  59. data/config/annotations_asana.rb +0 -253
  60. data/config/annotations_misc.rb +0 -68
  61. data/config/env.1p +0 -2
  62. data/docs/.gitignore +0 -3
  63. data/docs/cookiecutter_input.json +0 -17
  64. data/docs/example_project.png +0 -0
  65. data/fix.sh +0 -534
  66. data/metrics/bigfiles_high_water_mark +0 -1
  67. data/metrics/brakeman_high_water_mark +0 -1
  68. data/metrics/bundle-audit_high_water_mark +0 -1
  69. data/metrics/cane_high_water_mark +0 -1
  70. data/metrics/eslint_high_water_mark +0 -1
  71. data/metrics/flake8_high_water_mark +0 -1
  72. data/metrics/flay_high_water_mark +0 -1
  73. data/metrics/flog_high_water_mark +0 -1
  74. data/metrics/jscs_high_water_mark +0 -1
  75. data/metrics/mdl_high_water_mark +0 -1
  76. data/metrics/pep8_high_water_mark +0 -1
  77. data/metrics/punchlist_high_water_mark +0 -1
  78. data/metrics/pycodestyle_high_water_mark +0 -1
  79. data/metrics/rails_best_practices_high_water_mark +0 -1
  80. data/metrics/rubocop_high_water_mark +0 -1
  81. data/metrics/scalastyle_high_water_mark +0 -1
  82. data/metrics/shellcheck_high_water_mark +0 -1
  83. data/package.json +0 -9
  84. data/rakelib/citest.rake +0 -4
  85. data/rakelib/clear_metrics.rake +0 -9
  86. data/rakelib/console.rake +0 -15
  87. data/rakelib/default.rake +0 -4
  88. data/rakelib/doc.rake +0 -6
  89. data/rakelib/gem_tasks.rake +0 -3
  90. data/rakelib/localtest.rake +0 -4
  91. data/rakelib/overcommit.rake +0 -6
  92. data/rakelib/quality.rake +0 -4
  93. data/rakelib/repl.rake +0 -4
  94. data/rakelib/test.rake +0 -10
  95. data/rakelib/trigger_next_builds.rake +0 -7
  96. data/rakelib/undercover.rake +0 -8
  97. data/requirements_dev.txt +0 -2
  98. data/sorbet/config +0 -4
  99. data/sorbet/rbi/annotations/.gitattributes +0 -1
  100. data/sorbet/rbi/annotations/activesupport.rbi +0 -453
  101. data/sorbet/rbi/annotations/faraday.rbi +0 -17
  102. data/sorbet/rbi/annotations/minitest.rbi +0 -119
  103. data/sorbet/rbi/annotations/mocha.rbi +0 -34
  104. data/sorbet/rbi/annotations/rainbow.rbi +0 -269
  105. data/sorbet/rbi/annotations/webmock.rbi +0 -9
  106. data/sorbet/rbi/dsl/.gitattributes +0 -1
  107. data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -23
  108. data/sorbet/rbi/gems/.gitattributes +0 -1
  109. data/sorbet/rbi/gems/activesupport@7.1.5.rbi +0 -18746
  110. data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1994
  111. data/sorbet/rbi/gems/ansi@1.5.0.rbi +0 -688
  112. data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +0 -6142
  113. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
  114. data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -523
  115. data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
  116. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
  117. data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +0 -78
  118. data/sorbet/rbi/gems/brakeman@6.2.2.rbi +0 -222
  119. data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -505
  120. data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
  121. data/sorbet/rbi/gems/cache@0.4.1.rbi +0 -211
  122. data/sorbet/rbi/gems/cache_method@0.2.7.rbi +0 -293
  123. data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +0 -9
  124. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +0 -383
  125. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
  126. data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -9
  127. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -11591
  128. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
  129. data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -145
  130. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -969
  131. data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -377
  132. data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
  133. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -9
  134. data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -152
  135. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -222
  136. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -126
  137. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -136
  138. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -145
  139. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -259
  140. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -142
  141. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -118
  142. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -125
  143. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -133
  144. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -198
  145. data/sorbet/rbi/gems/faraday@1.10.3.rbi +0 -2729
  146. data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +0 -29
  147. data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +0 -1004
  148. data/sorbet/rbi/gems/gli@2.22.0.rbi +0 -9
  149. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -351
  150. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -9
  151. data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
  152. data/sorbet/rbi/gems/imagen@0.1.8.rbi +0 -340
  153. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +0 -899
  154. data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +0 -22
  155. data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1562
  156. data/sorbet/rbi/gems/jwt@2.7.1.rbi +0 -1405
  157. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -128
  158. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3272
  159. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
  160. data/sorbet/rbi/gems/logger@1.6.2.rbi +0 -923
  161. data/sorbet/rbi/gems/mdl@0.13.0.rbi +0 -445
  162. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -273
  163. data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +0 -127
  164. data/sorbet/rbi/gems/mime-types@3.5.1.rbi +0 -1252
  165. data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +0 -136
  166. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +0 -1014
  167. data/sorbet/rbi/gems/minitest@5.21.1.rbi +0 -1539
  168. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +0 -314
  169. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +0 -581
  170. data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +0 -629
  171. data/sorbet/rbi/gems/mocha@2.1.0.rbi +0 -12
  172. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -268
  173. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +0 -102
  174. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +0 -234
  175. data/sorbet/rbi/gems/mutex_m@0.3.0.rbi +0 -97
  176. data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
  177. data/sorbet/rbi/gems/nokogiri@1.17.0.rbi +0 -8201
  178. data/sorbet/rbi/gems/oauth2@1.4.11.rbi +0 -833
  179. data/sorbet/rbi/gems/overcommit@0.64.1.rbi +0 -2400
  180. data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -274
  181. data/sorbet/rbi/gems/parlour@5.0.0.rbi +0 -3007
  182. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -7253
  183. data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
  184. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10070
  185. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -936
  186. data/sorbet/rbi/gems/punchlist@1.3.2.rbi +0 -173
  187. data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
  188. data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4896
  189. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
  190. data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -3022
  191. data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
  192. data/sorbet/rbi/gems/rbs@2.8.4.rbi +0 -5613
  193. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3750
  194. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -390
  195. data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4964
  196. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7127
  197. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +0 -2577
  198. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +0 -3262
  199. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -329
  200. data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +0 -7546
  201. data/sorbet/rbi/gems/rubocop@1.59.0.rbi +0 -57238
  202. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
  203. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -9
  204. data/sorbet/rbi/gems/rugged@1.6.3.rbi +0 -1577
  205. data/sorbet/rbi/gems/securerandom@0.4.0.rbi +0 -75
  206. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -217
  207. data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +0 -256
  208. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
  209. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
  210. data/sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +0 -320
  211. data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +0 -9396
  212. data/sorbet/rbi/gems/sord@5.1.0.rbi +0 -820
  213. data/sorbet/rbi/gems/source_finder@3.2.1.rbi +0 -317
  214. data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
  215. data/sorbet/rbi/gems/tapioca@0.16.5.rbi +0 -3617
  216. data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
  217. data/sorbet/rbi/gems/tilt@2.4.0.rbi +0 -933
  218. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +0 -9
  219. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
  220. data/sorbet/rbi/gems/undercover@0.5.0.rbi +0 -433
  221. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -66
  222. data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1769
  223. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
  224. data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18406
  225. data/sorbet/rbi/todo.rbi +0 -11
  226. data/sorbet/tapioca/config.yml +0 -13
  227. data/sorbet/tapioca/require.rb +0 -4
@@ -1,445 +0,0 @@
1
- # typed: strict
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)