fix: yamllint must tolerate Renovate's one-space comment #40
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/yamllint-renovate-comments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Four open Renovate pull requests fail the yamllint hook on
.forgejo/workflows/validate.yml:
70:73 [comments] too few spaces before comment: expected 2
Column 73 of a 76-character line, where line 70 of this repo is 33
characters: the violation only exists in a line this repo does not
contain. Renovate writes digest-pinned actions as
with one space before the comment, and regenerates that line on every
action bump. Editing the file by hand is undone by the next pull
request, so the rule fails forever on content nothing here authors.
Only the spacing is relaxed. require-starting-space still holds, so
#commentremains an error.Verified against the four branches rather than a reconstruction:
actions-checkout-5.x, -6.x, -7.x and pin-dependencies each exit 0 under
this config and exit 2 under the previous one. Every tracked YAML file
in the repo is still clean.