From 8fcafe89146f792e11d47f8691bd88d4e2b44d7f Mon Sep 17 00:00:00 2001 From: Bryan Fawcett Date: Sat, 12 Sep 2026 03:31:07 +0800 Subject: [PATCH] ci: resync .yamllint.yaml with nyuchi/.github MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The canonical file gained an ignore for test/fixtures/. Rails fixtures are ERB templates, not YAML documents — they only become valid YAML after Rails renders them, so yamllint reports a hard syntax error on them and always will. Nothing changes for this repo, which has no Rails fixtures. This is about the file being identical everywhere, which is the whole point of having it. Co-Authored-By: Claude Opus 5 (1M context) --- .yamllint.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.yamllint.yaml b/.yamllint.yaml index dc117fc..61cc7b6 100644 --- a/.yamllint.yaml +++ b/.yamllint.yaml @@ -24,6 +24,19 @@ ignore: | **/package-lock.json **/yarn.lock + # Rails fixtures are ERB TEMPLATES, not YAML documents. campfire's + # test/fixtures/users.yml opens with + # <% password_digest = BCrypt::Password.create("secret123456") %> + # and only becomes valid YAML after Rails renders it, so yamllint + # reports a hard syntax error and always will. The ActionText fixtures + # alongside them are HTML blobs that tests assert on byte-for-byte, so + # rewrapping their long lines would be a test change, not a formatting + # change. Seven files in that repo are ERB-templated YAML; the others + # only parse because their ERB happens to sit inside quoted scalars, + # which is luck rather than correctness. + test/fixtures/ + **/test/fixtures/ + rules: # 140-char limit. Workflow files have legitimately long shell URLs # (the actionlint download script, action references) and issue-