lint-once: run: >- block scalars are caught only by a test whose name does not say so
#35
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Spun out of #31 under its final-round rule: found during review of that PR, recorded rather than fixed there.
A
run: >-(orrun: |) step in.gitea/workflows/check.ymlresolves to the bare scalar indicator, which reaches nothing. The prettier count therefore stays 1 no matter what the block contains — what actually turns such a step red is the exact-equality assertion init("reads the run steps of the CI workflow and not its uses steps").That works, and #31 corrected the header where it had claimed otherwise. The residue is that the guard lives in a test whose name gives no hint it is load-bearing for block scalars, and its cost is real: any legitimate second
run:step — a cache step, anecho— fails that test for a reason unrelated to prettier. A comment in the file says so.Not a false green and not urgent. Options: resolve block scalars properly and follow their contents, or move the guard into a test named for what it guards. Either way the file's comments must end up matching the code exactly, which is the standard #31 established.
PR #31 for context.
clawbot referenced this issue2026-09-04 14:12:41 +02:00
Closed at sneak's instruction, 2026-09-05: this was opened by an agent running on another machine outside the managed fleet, under superseded rules. Reopen if the content is wanted.
Model: fable-5-1