yamlint 0.1.0 → 1.0.0

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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +31 -9
  3. data/.serena/.gitignore +1 -0
  4. data/.serena/memories/project_overview.md +25 -0
  5. data/.serena/memories/style_and_conventions.md +7 -0
  6. data/.serena/memories/suggested_commands.md +17 -0
  7. data/.serena/memories/task_completion.md +5 -0
  8. data/.serena/project.yml +89 -0
  9. data/CHANGELOG.md +6 -2
  10. data/Gemfile +9 -7
  11. data/LICENSE.txt +1 -1
  12. data/README.md +155 -17
  13. data/Rakefile +10 -3
  14. data/docs/Yamlint/Cli.html +403 -0
  15. data/docs/Yamlint/Config.html +1034 -0
  16. data/docs/Yamlint/Formatter.html +433 -0
  17. data/docs/Yamlint/Linter.html +423 -0
  18. data/docs/Yamlint/Models/LintContext.html +993 -0
  19. data/docs/Yamlint/Models/Problem.html +951 -0
  20. data/docs/Yamlint/Models/Token.html +713 -0
  21. data/docs/Yamlint/Models.html +117 -0
  22. data/docs/Yamlint/Output/Base.html +290 -0
  23. data/docs/Yamlint/Output/Colored.html +293 -0
  24. data/docs/Yamlint/Output/Github.html +260 -0
  25. data/docs/Yamlint/Output/Parsable.html +258 -0
  26. data/docs/Yamlint/Output/Standard.html +270 -0
  27. data/docs/Yamlint/Output.html +208 -0
  28. data/docs/Yamlint/Parser/Comment.html +795 -0
  29. data/docs/Yamlint/Parser/CommentExtractor.html +287 -0
  30. data/docs/Yamlint/Parser/LineParser.html +423 -0
  31. data/docs/Yamlint/Parser/TokenParser/Handler.html +910 -0
  32. data/docs/Yamlint/Parser/TokenParser.html +291 -0
  33. data/docs/Yamlint/Parser.html +117 -0
  34. data/docs/Yamlint/Presets.html +266 -0
  35. data/docs/Yamlint/Rules/Anchors/AnchorHandler.html +678 -0
  36. data/docs/Yamlint/Rules/Anchors.html +314 -0
  37. data/docs/Yamlint/Rules/Base.html +968 -0
  38. data/docs/Yamlint/Rules/Braces.html +335 -0
  39. data/docs/Yamlint/Rules/Brackets.html +335 -0
  40. data/docs/Yamlint/Rules/Colons.html +313 -0
  41. data/docs/Yamlint/Rules/Commas.html +313 -0
  42. data/docs/Yamlint/Rules/CommentRule.html +298 -0
  43. data/docs/Yamlint/Rules/Comments.html +317 -0
  44. data/docs/Yamlint/Rules/CommentsIndentation.html +328 -0
  45. data/docs/Yamlint/Rules/DocumentEnd.html +332 -0
  46. data/docs/Yamlint/Rules/DocumentStart.html +332 -0
  47. data/docs/Yamlint/Rules/EmptyLines.html +300 -0
  48. data/docs/Yamlint/Rules/EmptyValues.html +273 -0
  49. data/docs/Yamlint/Rules/FloatValues.html +383 -0
  50. data/docs/Yamlint/Rules/Hyphens.html +337 -0
  51. data/docs/Yamlint/Rules/Indentation.html +329 -0
  52. data/docs/Yamlint/Rules/KeyDuplicates/DuplicateKeyHandler.html +716 -0
  53. data/docs/Yamlint/Rules/KeyDuplicates.html +258 -0
  54. data/docs/Yamlint/Rules/KeyOrdering/KeyOrderHandler.html +694 -0
  55. data/docs/Yamlint/Rules/KeyOrdering.html +258 -0
  56. data/docs/Yamlint/Rules/LineLength.html +251 -0
  57. data/docs/Yamlint/Rules/LineRule.html +304 -0
  58. data/docs/Yamlint/Rules/NewLineAtEndOfFile.html +308 -0
  59. data/docs/Yamlint/Rules/NewLines.html +310 -0
  60. data/docs/Yamlint/Rules/OctalValues.html +270 -0
  61. data/docs/Yamlint/Rules/QuotedStrings.html +381 -0
  62. data/docs/Yamlint/Rules/Registry.html +492 -0
  63. data/docs/Yamlint/Rules/TokenRule.html +298 -0
  64. data/docs/Yamlint/Rules/TrailingSpaces.html +321 -0
  65. data/docs/Yamlint/Rules/Truthy.html +288 -0
  66. data/docs/Yamlint/Rules.html +190 -0
  67. data/docs/Yamlint/Runner.html +551 -0
  68. data/docs/Yamlint.html +135 -0
  69. data/docs/_index.html +643 -0
  70. data/docs/class_list.html +54 -0
  71. data/docs/css/common.css +1 -0
  72. data/docs/css/full_list.css +58 -0
  73. data/docs/css/style.css +490 -0
  74. data/docs/file.README.html +276 -0
  75. data/docs/file_list.html +59 -0
  76. data/docs/frames.html +22 -0
  77. data/docs/index.html +276 -0
  78. data/docs/js/app.js +395 -0
  79. data/docs/js/full_list.js +244 -0
  80. data/docs/js/jquery.js +4 -0
  81. data/docs/method_list.html +1582 -0
  82. data/docs/top-level-namespace.html +110 -0
  83. data/exe/yamlint +7 -0
  84. data/lib/yamlint/cli.rb +162 -0
  85. data/lib/yamlint/config.rb +113 -0
  86. data/lib/yamlint/formatter.rb +140 -0
  87. data/lib/yamlint/linter.rb +130 -0
  88. data/lib/yamlint/models/lint_context.rb +43 -0
  89. data/lib/yamlint/models/problem.rb +44 -0
  90. data/lib/yamlint/models/token.rb +22 -0
  91. data/lib/yamlint/models.rb +9 -0
  92. data/lib/yamlint/output/base.rb +15 -0
  93. data/lib/yamlint/output/colored.rb +54 -0
  94. data/lib/yamlint/output/github.rb +20 -0
  95. data/lib/yamlint/output/parsable.rb +19 -0
  96. data/lib/yamlint/output/standard.rb +25 -0
  97. data/lib/yamlint/output.rb +26 -0
  98. data/lib/yamlint/parser/comment_extractor.rb +78 -0
  99. data/lib/yamlint/parser/line_parser.rb +30 -0
  100. data/lib/yamlint/parser/token_parser.rb +92 -0
  101. data/lib/yamlint/parser.rb +10 -0
  102. data/lib/yamlint/presets/default.rb +35 -0
  103. data/lib/yamlint/presets/relaxed.rb +34 -0
  104. data/lib/yamlint/presets.rb +19 -0
  105. data/lib/yamlint/rules/anchors.rb +133 -0
  106. data/lib/yamlint/rules/base.rb +102 -0
  107. data/lib/yamlint/rules/braces.rb +105 -0
  108. data/lib/yamlint/rules/brackets.rb +105 -0
  109. data/lib/yamlint/rules/colons.rb +73 -0
  110. data/lib/yamlint/rules/commas.rb +85 -0
  111. data/lib/yamlint/rules/comments.rb +77 -0
  112. data/lib/yamlint/rules/comments_indentation.rb +66 -0
  113. data/lib/yamlint/rules/document_end.rb +45 -0
  114. data/lib/yamlint/rules/document_start.rb +45 -0
  115. data/lib/yamlint/rules/empty_lines.rb +107 -0
  116. data/lib/yamlint/rules/empty_values.rb +43 -0
  117. data/lib/yamlint/rules/float_values.rb +67 -0
  118. data/lib/yamlint/rules/hyphens.rb +42 -0
  119. data/lib/yamlint/rules/indentation.rb +39 -0
  120. data/lib/yamlint/rules/key_duplicates.rb +127 -0
  121. data/lib/yamlint/rules/key_ordering.rb +126 -0
  122. data/lib/yamlint/rules/line_length.rb +57 -0
  123. data/lib/yamlint/rules/new_line_at_end_of_file.rb +31 -0
  124. data/lib/yamlint/rules/new_lines.rb +59 -0
  125. data/lib/yamlint/rules/octal_values.rb +62 -0
  126. data/lib/yamlint/rules/quoted_strings.rb +73 -0
  127. data/lib/yamlint/rules/registry.rb +48 -0
  128. data/lib/yamlint/rules/trailing_spaces.rb +31 -0
  129. data/lib/yamlint/rules/truthy.rb +48 -0
  130. data/lib/yamlint/rules.rb +41 -0
  131. data/lib/yamlint/runner.rb +80 -0
  132. data/lib/yamlint/version.rb +1 -1
  133. data/lib/yamlint.rb +11 -3
  134. metadata +131 -11
  135. data/CODE_OF_CONDUCT.md +0 -84
  136. data/sig/yamlint.rbs +0 -4
@@ -0,0 +1,288 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Yamlint::Rules::Truthy
8
+
9
+ &mdash; Documentation by YARD 0.9.38
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Yamlint::Rules::Truthy";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (T)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Yamlint.html" title="Yamlint (module)">Yamlint</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Rules.html" title="Yamlint::Rules (module)">Rules</a></span></span>
41
+ &raquo;
42
+ <span class="title">Truthy</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Yamlint::Rules::Truthy
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="LineRule.html" title="Yamlint::Rules::LineRule (class)">LineRule</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="Base.html" title="Yamlint::Rules::Base (class)">Base</a></span></li>
78
+
79
+ <li class="next"><span class='object_link'><a href="LineRule.html" title="Yamlint::Rules::LineRule (class)">LineRule</a></span></li>
80
+
81
+ <li class="next">Yamlint::Rules::Truthy</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+ </dl>
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ <dl>
100
+ <dt>Defined in:</dt>
101
+ <dd>lib/yamlint/rules/truthy.rb</dd>
102
+ </dl>
103
+
104
+ </div>
105
+
106
+
107
+
108
+ <h2>
109
+ Constant Summary
110
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
111
+ </h2>
112
+
113
+ <dl class="constants">
114
+
115
+ <dt id="TRUTHY_VALUES-constant" class="">TRUTHY_VALUES =
116
+
117
+ </dt>
118
+ <dd><pre class="code"><span class='qwords_beg'>%w[</span><span class='words_sep'>
119
+ </span><span class='words_sep'> </span><span class='tstring_content'>YES</span><span class='words_sep'> </span><span class='tstring_content'>Yes</span><span class='words_sep'> </span><span class='tstring_content'>yes</span><span class='words_sep'>
120
+ </span><span class='words_sep'> </span><span class='tstring_content'>NO</span><span class='words_sep'> </span><span class='tstring_content'>No</span><span class='words_sep'> </span><span class='tstring_content'>no</span><span class='words_sep'>
121
+ </span><span class='words_sep'> </span><span class='tstring_content'>TRUE</span><span class='words_sep'> </span><span class='tstring_content'>True</span><span class='words_sep'>
122
+ </span><span class='words_sep'> </span><span class='tstring_content'>FALSE</span><span class='words_sep'> </span><span class='tstring_content'>False</span><span class='words_sep'>
123
+ </span><span class='words_sep'> </span><span class='tstring_content'>ON</span><span class='words_sep'> </span><span class='tstring_content'>On</span><span class='words_sep'> </span><span class='tstring_content'>on</span><span class='words_sep'>
124
+ </span><span class='words_sep'> </span><span class='tstring_content'>OFF</span><span class='words_sep'> </span><span class='tstring_content'>Off</span><span class='words_sep'> </span><span class='tstring_content'>off</span><span class='words_sep'>
125
+ </span><span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
126
+
127
+ </dl>
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <h2>Instance Attribute Summary</h2>
136
+
137
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Yamlint::Rules::Base (class)">Base</a></span></h3>
138
+ <p class="inherited"><span class='object_link'><a href="Base.html#config-instance_method" title="Yamlint::Rules::Base#config (method)">#config</a></span>, <span class='object_link'><a href="Base.html#level-instance_method" title="Yamlint::Rules::Base#level (method)">#level</a></span></p>
139
+
140
+
141
+
142
+ <h2>
143
+ Instance Method Summary
144
+ <small><a href="#" class="summary_toggle">collapse</a></small>
145
+ </h2>
146
+
147
+ <ul class="summary">
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#check_line-instance_method" title="#check_line (instance method)">#<strong>check_line</strong>(line, line_number, _context) &#x21d2; Object </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+ <span class="summary_desc"><div class='inline'></div></span>
167
+
168
+ </li>
169
+
170
+
171
+ </ul>
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="LineRule.html" title="Yamlint::Rules::LineRule (class)">LineRule</a></span></h3>
184
+ <p class="inherited"><span class='object_link'><a href="LineRule.html#check-instance_method" title="Yamlint::Rules::LineRule#check (method)">#check</a></span></p>
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Yamlint::Rules::Base (class)">Base</a></span></h3>
195
+ <p class="inherited"><span class='object_link'><a href="Base.html#check-instance_method" title="Yamlint::Rules::Base#check (method)">#check</a></span>, <span class='object_link'><a href="Base.html#defaults-class_method" title="Yamlint::Rules::Base.defaults (method)">defaults</a></span>, <span class='object_link'><a href="Base.html#desc-class_method" title="Yamlint::Rules::Base.desc (method)">desc</a></span>, <span class='object_link'><a href="Base.html#fixable%3F-instance_method" title="Yamlint::Rules::Base#fixable? (method)">#fixable?</a></span>, <span class='object_link'><a href="Base.html#inherited-class_method" title="Yamlint::Rules::Base.inherited (method)">inherited</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="Yamlint::Rules::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#rule_id-class_method" title="Yamlint::Rules::Base.rule_id (method)">rule_id</a></span></p>
196
+ <div id="constructor_details" class="method_details_list">
197
+ <h2>Constructor Details</h2>
198
+
199
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="Yamlint::Rules::Base#initialize (method)">Yamlint::Rules::Base</a></span></p>
200
+
201
+ </div>
202
+
203
+
204
+ <div id="instance_method_details" class="method_details_list">
205
+ <h2>Instance Method Details</h2>
206
+
207
+
208
+ <div class="method_details first">
209
+ <h3 class="signature first" id="check_line-instance_method">
210
+
211
+ #<strong>check_line</strong>(line, line_number, _context) &#x21d2; <tt>Object</tt>
212
+
213
+
214
+
215
+
216
+
217
+ </h3><table class="source_code">
218
+ <tr>
219
+ <td>
220
+ <pre class="lines">
221
+
222
+
223
+ 22
224
+ 23
225
+ 24
226
+ 25
227
+ 26
228
+ 27
229
+ 28
230
+ 29
231
+ 30
232
+ 31
233
+ 32
234
+ 33
235
+ 34
236
+ 35
237
+ 36
238
+ 37
239
+ 38
240
+ 39
241
+ 40
242
+ 41
243
+ 42
244
+ 43</pre>
245
+ </td>
246
+ <td>
247
+ <pre class="code"><span class="info file"># File 'lib/yamlint/rules/truthy.rb', line 22</span>
248
+
249
+ <span class='kw'>def</span> <span class='id identifier rubyid_check_line'>check_line</span><span class='lparen'>(</span><span class='id identifier rubyid_line'>line</span><span class='comma'>,</span> <span class='id identifier rubyid_line_number'>line_number</span><span class='comma'>,</span> <span class='id identifier rubyid__context'>_context</span><span class='rparen'>)</span>
250
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
251
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>#</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
252
+
253
+ <span class='id identifier rubyid_problems'>problems</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
254
+ <span class='id identifier rubyid_allowed'>allowed</span> <span class='op'>=</span> <span class='ivar'>@config</span><span class='lbracket'>[</span><span class='symbol'>:&#39;allowed-values&#39;</span><span class='rbracket'>]</span>
255
+
256
+ <span class='const'><span class='object_link'><a href="#TRUTHY_VALUES-constant" title="Yamlint::Rules::Truthy::TRUTHY_VALUES (constant)">TRUTHY_VALUES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_truthy'>truthy</span><span class='op'>|</span>
257
+ <span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_allowed'>allowed</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_truthy'>truthy</span><span class='rparen'>)</span>
258
+
259
+ <span class='kw'>next</span> <span class='kw'>unless</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>:\s*</span><span class='embexpr_beg'>#{</span><span class='const'>Regexp</span><span class='period'>.</span><span class='id identifier rubyid_escape'>escape</span><span class='lparen'>(</span><span class='id identifier rubyid_truthy'>truthy</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>\s*(?:#.*)?$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
260
+
261
+ <span class='id identifier rubyid_problems'>problems</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_problem'>problem</span><span class='lparen'>(</span>
262
+ <span class='label'>line:</span> <span class='id identifier rubyid_line_number'>line_number</span><span class='comma'>,</span>
263
+ <span class='label'>column:</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='id identifier rubyid_truthy'>truthy</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='int'>1</span><span class='comma'>,</span>
264
+ <span class='label'>message:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>truthy value should be one of [</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_allowed'>allowed</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>, </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>]</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
265
+ <span class='label'>fixable:</span> <span class='kw'>false</span>
266
+ <span class='rparen'>)</span>
267
+ <span class='kw'>end</span>
268
+
269
+ <span class='id identifier rubyid_problems'>problems</span>
270
+ <span class='kw'>end</span></pre>
271
+ </td>
272
+ </tr>
273
+ </table>
274
+ </div>
275
+
276
+ </div>
277
+
278
+ </div>
279
+
280
+ <div id="footer">
281
+ Generated on Sun Jan 25 08:00:08 2026 by
282
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
283
+ 0.9.38 (ruby-4.0.0).
284
+ </div>
285
+
286
+ </div>
287
+ </body>
288
+ </html>
@@ -0,0 +1,190 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Module: Yamlint::Rules
8
+
9
+ &mdash; Documentation by YARD 0.9.38
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Yamlint::Rules";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (R)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Yamlint.html" title="Yamlint (module)">Yamlint</a></span></span>
41
+ &raquo;
42
+ <span class="title">Rules</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Module: Yamlint::Rules
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/yamlint/rules.rb<span class="defines">,<br />
82
+ lib/yamlint/rules/base.rb,<br /> lib/yamlint/rules/braces.rb,<br /> lib/yamlint/rules/colons.rb,<br /> lib/yamlint/rules/commas.rb,<br /> lib/yamlint/rules/truthy.rb,<br /> lib/yamlint/rules/anchors.rb,<br /> lib/yamlint/rules/hyphens.rb,<br /> lib/yamlint/rules/brackets.rb,<br /> lib/yamlint/rules/comments.rb,<br /> lib/yamlint/rules/registry.rb,<br /> lib/yamlint/rules/new_lines.rb,<br /> lib/yamlint/rules/empty_lines.rb,<br /> lib/yamlint/rules/indentation.rb,<br /> lib/yamlint/rules/line_length.rb,<br /> lib/yamlint/rules/document_end.rb,<br /> lib/yamlint/rules/empty_values.rb,<br /> lib/yamlint/rules/float_values.rb,<br /> lib/yamlint/rules/key_ordering.rb,<br /> lib/yamlint/rules/octal_values.rb,<br /> lib/yamlint/rules/document_start.rb,<br /> lib/yamlint/rules/key_duplicates.rb,<br /> lib/yamlint/rules/quoted_strings.rb,<br /> lib/yamlint/rules/trailing_spaces.rb,<br /> lib/yamlint/rules/comments_indentation.rb,<br /> lib/yamlint/rules/new_line_at_end_of_file.rb</span>
83
+ </dd>
84
+ </dl>
85
+
86
+ </div>
87
+
88
+ <h2>Defined Under Namespace</h2>
89
+ <p class="children">
90
+
91
+
92
+
93
+
94
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Rules/Anchors.html" title="Yamlint::Rules::Anchors (class)">Anchors</a></span>, <span class='object_link'><a href="Rules/Base.html" title="Yamlint::Rules::Base (class)">Base</a></span>, <span class='object_link'><a href="Rules/Braces.html" title="Yamlint::Rules::Braces (class)">Braces</a></span>, <span class='object_link'><a href="Rules/Brackets.html" title="Yamlint::Rules::Brackets (class)">Brackets</a></span>, <span class='object_link'><a href="Rules/Colons.html" title="Yamlint::Rules::Colons (class)">Colons</a></span>, <span class='object_link'><a href="Rules/Commas.html" title="Yamlint::Rules::Commas (class)">Commas</a></span>, <span class='object_link'><a href="Rules/CommentRule.html" title="Yamlint::Rules::CommentRule (class)">CommentRule</a></span>, <span class='object_link'><a href="Rules/Comments.html" title="Yamlint::Rules::Comments (class)">Comments</a></span>, <span class='object_link'><a href="Rules/CommentsIndentation.html" title="Yamlint::Rules::CommentsIndentation (class)">CommentsIndentation</a></span>, <span class='object_link'><a href="Rules/DocumentEnd.html" title="Yamlint::Rules::DocumentEnd (class)">DocumentEnd</a></span>, <span class='object_link'><a href="Rules/DocumentStart.html" title="Yamlint::Rules::DocumentStart (class)">DocumentStart</a></span>, <span class='object_link'><a href="Rules/EmptyLines.html" title="Yamlint::Rules::EmptyLines (class)">EmptyLines</a></span>, <span class='object_link'><a href="Rules/EmptyValues.html" title="Yamlint::Rules::EmptyValues (class)">EmptyValues</a></span>, <span class='object_link'><a href="Rules/FloatValues.html" title="Yamlint::Rules::FloatValues (class)">FloatValues</a></span>, <span class='object_link'><a href="Rules/Hyphens.html" title="Yamlint::Rules::Hyphens (class)">Hyphens</a></span>, <span class='object_link'><a href="Rules/Indentation.html" title="Yamlint::Rules::Indentation (class)">Indentation</a></span>, <span class='object_link'><a href="Rules/KeyDuplicates.html" title="Yamlint::Rules::KeyDuplicates (class)">KeyDuplicates</a></span>, <span class='object_link'><a href="Rules/KeyOrdering.html" title="Yamlint::Rules::KeyOrdering (class)">KeyOrdering</a></span>, <span class='object_link'><a href="Rules/LineLength.html" title="Yamlint::Rules::LineLength (class)">LineLength</a></span>, <span class='object_link'><a href="Rules/LineRule.html" title="Yamlint::Rules::LineRule (class)">LineRule</a></span>, <span class='object_link'><a href="Rules/NewLineAtEndOfFile.html" title="Yamlint::Rules::NewLineAtEndOfFile (class)">NewLineAtEndOfFile</a></span>, <span class='object_link'><a href="Rules/NewLines.html" title="Yamlint::Rules::NewLines (class)">NewLines</a></span>, <span class='object_link'><a href="Rules/OctalValues.html" title="Yamlint::Rules::OctalValues (class)">OctalValues</a></span>, <span class='object_link'><a href="Rules/QuotedStrings.html" title="Yamlint::Rules::QuotedStrings (class)">QuotedStrings</a></span>, <span class='object_link'><a href="Rules/Registry.html" title="Yamlint::Rules::Registry (class)">Registry</a></span>, <span class='object_link'><a href="Rules/TokenRule.html" title="Yamlint::Rules::TokenRule (class)">TokenRule</a></span>, <span class='object_link'><a href="Rules/TrailingSpaces.html" title="Yamlint::Rules::TrailingSpaces (class)">TrailingSpaces</a></span>, <span class='object_link'><a href="Rules/Truthy.html" title="Yamlint::Rules::Truthy (class)">Truthy</a></span>
95
+
96
+
97
+ </p>
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+ <h2>
107
+ Class Method Summary
108
+ <small><a href="#" class="summary_toggle">collapse</a></small>
109
+ </h2>
110
+
111
+ <ul class="summary">
112
+
113
+ <li class="public ">
114
+ <span class="summary_signature">
115
+
116
+ <a href="#load_all-class_method" title="load_all (class method)">.<strong>load_all</strong> &#x21d2; Object </a>
117
+
118
+
119
+
120
+ </span>
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+ <span class="summary_desc"><div class='inline'></div></span>
131
+
132
+ </li>
133
+
134
+
135
+ </ul>
136
+
137
+
138
+
139
+
140
+ <div id="class_method_details" class="method_details_list">
141
+ <h2>Class Method Details</h2>
142
+
143
+
144
+ <div class="method_details first">
145
+ <h3 class="signature first" id="load_all-class_method">
146
+
147
+ .<strong>load_all</strong> &#x21d2; <tt>Object</tt>
148
+
149
+
150
+
151
+
152
+
153
+ </h3><table class="source_code">
154
+ <tr>
155
+ <td>
156
+ <pre class="lines">
157
+
158
+
159
+ 35
160
+ 36
161
+ 37
162
+ 38
163
+ 39</pre>
164
+ </td>
165
+ <td>
166
+ <pre class="code"><span class="info file"># File 'lib/yamlint/rules.rb', line 35</span>
167
+
168
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_all'>load_all</span>
169
+ <span class='id identifier rubyid_constants'>constants</span><span class='lparen'>(</span><span class='kw'>false</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_const_name'>const_name</span><span class='op'>|</span>
170
+ <span class='id identifier rubyid_const_get'>const_get</span><span class='lparen'>(</span><span class='id identifier rubyid_const_name'>const_name</span><span class='rparen'>)</span>
171
+ <span class='kw'>end</span>
172
+ <span class='kw'>end</span></pre>
173
+ </td>
174
+ </tr>
175
+ </table>
176
+ </div>
177
+
178
+ </div>
179
+
180
+ </div>
181
+
182
+ <div id="footer">
183
+ Generated on Sun Jan 25 08:00:08 2026 by
184
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
+ 0.9.38 (ruby-4.0.0).
186
+ </div>
187
+
188
+ </div>
189
+ </body>
190
+ </html>