Added
- ryl builds on its own YAML parser, published as the
ryl-yaml-parsercrate.
(#816)
Changed
ryl formatis faster than yamlfmt, dprint and Prettier at every benchmarked size
and file count from 4 KiB, tying yamlfmt on a single 1 KiB file. (#787)ryl checkstreams its output and writes formatted files as it goes, so memory no
longer grows with the number of files (218 MB to 22 MB at 20,000 files).
(#831)ryl formatparses each file once: it no longer parses its output again to compare
values or plans it again to confirm convergence, which rule order now guarantees.
(#842)
Fixed
ryl formatmoves a blank-only block scalar body with its collection, so its value
no longer changes when the collection shifts, and formats such scalars with an
explicit indentation indicator instead of leaving the file unchanged.
(#849)- The
comments-indentationrule, and the formatter, no longer read a trailing comment
on a multi-line scalar's last line, or an empty block scalar's header line, as other
than content, matching yamllint; a folded scalar no longer moves the comments after it
on a second format. ryl formatsettles in one run, where it took two, for'---' : x(now---: x), the
spaces-only lines of a blank keep-chomped body under- key:, and a dash it moves onto
its own line after an explicit:or in a file with a byte order mark.ryl formatno longer aligns a comment with a---or...line, which it may add,
so a comment after a block scalar keeps its column whendocument-end = 'add'adds a
marker below it.ryl formatre-indents a document whose only tab follows an indicator that it respaces,
and no longer reports one it did re-indent where folding starts a line with-and a
tab.ryl check --fixkeeps an indentation repair whenkey-orderingalso reorders the
file, instead of leaving the file unchanged and reporting the indentation as a syntax
error.ryl formatre-indents a block sequence holding a bare-item, such as a sequence
flush with its key whose first item is empty, instead of refusing the document.
(#836)- The
indentationrule no longer reports a sequence item after a nested sequence
ending in a bare-as wrongly indented, under everyindent-sequencessetting.
(#836) ryl formatkeeps a keep-chomped block scalar's final spaces-only line when
re-indenting empties that line, as at indent width 1, so the scalar keeps its final
empty line.- Root strings resembling document markers and scalars containing a BOM keep their
quotes in formatting and lint fixes.
(#806) - Migration warnings name the required ryl version, quote config paths, and remove
legacy project YAML configs;--migrate-configsalso converts TOMLyaml-filesto
[files].yaml. (#789)