fix: yamllint must tolerate Renovate's one-space comment #40

Merged
ivuorinen merged 1 commit from fix/yamllint-renovate-comments into main 2026-09-24 01:08:27 +00:00
Owner

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

  • uses: actions/checkout@<40-char sha> # v5

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
#comment remains 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.

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 - uses: actions/checkout@<40-char sha> # v5 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 `#comment` remains 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.
fix: yamllint must tolerate Renovate's one-space comment
All checks were successful
validate / hooks (pull_request) Successful in 1m17s
validate / render (pull_request) Successful in 35s
dbe3a87ec2
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

  - uses: actions/checkout@<40-char sha> # v5

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
`#comment` remains 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.
ivuorinen deleted branch fix/yamllint-renovate-comments 2026-09-24 01:08:27 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ivuorinen/turingpi-cluster!40
No description provided.