Skip to content

v3.0.7

Choose a tag to compare

@github-actions github-actions released this 02 Aug 12:32

Round twenty: one rule for three quote scanners (#2)

Six findings from review round twenty, plus two from CodeRabbit on the PR.

A hyphen inside a word reopened a quote, and that broke two things: it refused
keep: [rock-'n-roll, build] on every shipped binary (a regression from 3.0.6),
and in - rock-'n-roll # note it left the comment inside the value, so the
clean.keep pattern stopped matching and the directory it was written to protect
was deleted.

_strip_comment, _split_flow and _outside_quotes now share one rule, which is
told whether it is inside a flow collection: , and - are delimiters there
and ordinary characters in a plain block scalar.

Also: number patterns that matched nothing raised a bare ValueError with exit 1
where the man page promises 2; _outside_quotes was not escape-aware; a dry run
promised a quarantine expiry the apply would not do; and a dry-run git gc --auto was filed under "other, see the lines marked -".

The decision diagram and the modes diagram had both fallen behind the code.

What's Changed

  • Round twenty: one rule for three quote scanners by @sapn95 in #2

Full Changelog: v3.0.6...v3.0.7