You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A full pass deletes description text that sits inside an existing header block after the copyright line #160
area: coreTouches core library / runtime source codepriority: highNeeds attention soon — not blocking, but don't let it sitstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Seen in CLDMV/rummage commit 9f523d31 (a repo-wide fix-headers pass over 756 files). In 8 test files the existing header block carried free-form description lines after the @Copyright line, inside the same /** … */ comment. The pass rewrote the header and dropped those lines — about 68 lines in total, e.g. packages/rummage-ext-storage-driver-google/tests/inherited-permissions-434.test.vitest.mjs lost 15. Everything outside the header block was byte-identical, so it is only the in-block trailing text that is lost.
Expected: text in the header comment that isn't a recognised header field is preserved (kept after the regenerated fields, or the header written as its own block above it). A pass must never delete content it doesn't manage.
Repro shape:
/** * @Project: … * … * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. * * What this test pins and why (several lines). */
After a pass the description lines are gone.
Related, same pass: a vendored third-party file (packages/rummage-ext-pdf/vendor/pdf.worker.mjs, Mozilla pdf.js) got a "Catalyzed Motivation … All rights reserved" header. That's a consumer config gap (vendor folders should be excluded), tracked on the rummage side; worth considering a default skip for vendor/ folders or for files carrying a foreign license notice.
The header block should only hold header fields. Anything else in it moves to its own comment block directly below the header, unchanged. strictHeaderBlock (default true) controls this; set it to false to keep the text inside the header after the fields. Text is never deleted either way.
area: coreTouches core library / runtime source codepriority: highNeeds attention soon — not blocking, but don't let it sitstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Activity
fix(headers): the HTML header's closing delimiter is stripped whether…
fix(headers): keep repeated field tags, text dash lines and directive…
fix(headers): a line wrapping a field's value is kept as text, and on…
fix(headers): a block moved out of the header is never taken back int…
Shinrai commentedon Oct 31, 2026
The header block should only hold header fields. Anything else in it moves to its own comment block directly below the header, unchanged.
strictHeaderBlock(defaulttrue) controls this; set it tofalseto keep the text inside the header after the fields. Text is never deleted either way.Fix is in #161.
fix(headers): text inside an existing header that isn't a header fiel…
docs: describe strictHeaderBlock as part of the #160 fix, not a feature
release: v2.2.3 - text inside an existing header that isn't a header…