Skip to content

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 31 May 08:10
· 51 commits to main since this release
Immutable release. Only release title and notes can be modified.
3567bd6

⚠️ Breaking changes (0.10.2 → 0.11.0)

This release is not purely additive. Before upgrading:

  1. TOML yaml-files is rejected — use [files].yaml instead. A
    ryl.toml / .ryl.toml / [tool.ryl] that sets yaml-files = [...] now
    fails with exit 2 (yaml-files is not valid in TOML; use [files] with yaml = [...]).
    YAML (.yamllint) configs are unaffected, and ryl --migrate-configs
    converts it for you.
  2. A file matching no source kind is now an error (exit 2), not a silent skip.
    This applies both to files passed explicitly (e.g. ryl README.md,
    ryl $(git diff --name-only)) and to ryl - --stdin-filename <non-YAML-path>.
    Plain ryl - and the types: [yaml] pre-commit hook are unaffected.
  3. Multibyte column fixcommas / colons / braces / brackets now
    report character-based columns. No diagnostics are added or removed, but the
    reported col can shift on lines containing multibyte characters.
  4. Inline disable directives are now strictly yamllint-conformant. Malformed
    # yamllint disable… comments (extra spaces after #, a missing rule:
    prefix, or trailing tokens) are treated as plain comments and no longer
    suppress diagnostics, matching yamllint exactly.

New, opt-in and non-breaking: YAML-in-Markdown linting ([files].markdown or
the --markdown flag) and a preferred # ryl … spelling for inline directives
(# yamllint … still works as a compatibility alias).


What's Changed

  • Lint YAML embedded in Markdown; add [files] source-kind config (closes #222) by @owenlamont in #237
  • Property tests for rule checkers + char-column fix (closes #239) by @owenlamont in #240
  • Markdown embedding follow-ups: --fix write-back + stdin + --markdown (closes #236) by @owenlamont in #241
  • Support inline rule-disable directives globally (closes #242) by @owenlamont in #243

Full Changelog: v0.10.2...v0.11.0