github owenlamont/ryl v0.27.0

3 hours ago

Added

  • ryl-action runs ryl in GitHub
    Actions, pinned per release as owenlamont/ryl-action@v0.27.0.

Changed

  • ryl server reports open files only by default, as ruff, rumdl and biome do. The new
    diagnosticMode setting, named after ty's, restores the workspace-wide
    workspace/diagnostic scan with "workspace". A mistyped server setting is now
    reported through window/showMessage instead of silently ignored.
    (#407)
  • ryl format --check reports each file that would change as one unformatted finding
    at its first change, with the diff under it, as ruff does, instead of one finding per
    rule and line. --check and --diff end with a summary such as
    1 file would be reformatted.
    (#843)
  • ryl format parses each file, or each YAML block in Markdown, once, including under
    --check and --diff, unless it reports a repair or a not fixed notice. 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 exits 2.
    (#781)
  • Building ryl from source, as cargo install ryl does, needs Rust 1.99.1.
    (#876)

Fixed

  • A file or Markdown block opening with # ryl disable-file no longer prints a syntax
    or encoding skip notice under check --fix/--diff or ryl format.
  • ryl format no 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 format joins 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 the comments rule no
    longer reports them.
    Block collection style leaves a flow collection with a trailing directive as
    written, and the key-ordering fix skips a mapping holding an own-line one.
    Contributed by @samirhvbr in
    #877, fixing
    #780.

Don't miss a new ryl release

NewReleases is sending notifications on new releases.