Added
- ryl-action runs ryl in GitHub
Actions, pinned per release asowenlamont/ryl-action@v0.27.0.
Changed
ryl serverreports open files only by default, as ruff, rumdl and biome do. The new
diagnosticModesetting, named after ty's, restores the workspace-wide
workspace/diagnosticscan with"workspace". A mistyped server setting is now
reported throughwindow/showMessageinstead of silently ignored.
(#407)ryl format --checkreports each file that would change as oneunformattedfinding
at its first change, with the diff under it, as ruff does, instead of one finding per
rule and line.--checkand--diffend with a summary such as
1 file would be reformatted.
(#843)ryl formatparses each file, or each YAML block in Markdown, once, including under
--checkand--diff, unless it reports a repair or anot fixednotice. Debug
builds no longer re-check formatter output.
(#843)- A file whose first line is a Salt Jinja renderer header (
#!jinja|yaml,
#!yaml_jinja) is a template that ryl neither lints nor formats: a directory scan
skips it, and naming it or piping it to stdin exits2.
(#781) - Building ryl from source, as
cargo install ryldoes, needs Rust 1.99.1.
(#876)
Fixed
- A file or Markdown block opening with
# ryl disable-fileno longer prints a syntax
or encoding skip notice undercheck --fix/--difforryl format. ryl formatno longer panics on a document whose re-indentation is refused while a
hyphen-spacing edit applies.sequence-style = 'flow'converts a sequence whose items end in trailing whitespace,
where the whole file was previously left unformatted.- Collection conversion handles sequences flush with their mapping key, so a spacing
change no longer prevents another collection in the document from being converted. - Flow conversion measures width at the target indentation, so changing source
indentation no longer changes which collections fit. - Re-indentation preserves a block scalar's value when the final line contains spaces
without a line break.
(#838) ryl formatjoins a one-column mapping onto its sequence dash in one run when the
file contains a byte order mark.- Formatting preserves a compact collection's opening gap when the collection's
indentation cannot be changed safely. - Restyling a collection no longer dedents a quoted scalar's final continuation
line that starts with#when the file has no final line break. - Formatting and lint fixes preserve ytt
#@directives and their inline spacing
instead of converting them into ordinary comments, and thecommentsrule no
longer reports them.
Block collection style leaves a flow collection with a trailing directive as
written, and thekey-orderingfix skips a mapping holding an own-line one.
Contributed by @samirhvbr in
#877, fixing
#780.