Development record
lint's recordBodyStart (internal/core/lint/schema.go) skips only leading lines that START with `<!--`, so the second line of a multi-line leading comment is taken for the start of the body and recordTitle reads comment text as the record's title (a record opening with a two-line attribution comment is titled 'attribution line'). It keeps a private reading of HTML comments beside mdrecord's, the tree's one comment reader. One committed file has the shape today (internal/core/ahoy/defaults/claude-md-marker-block.md, not a record).
issueresolvedminoriss-2609251517210637
lint's recordBodyStart (internal/core/lint/schema.go) skips only leading lines that START with <!--, so the second line of a multi-line leading comment is taken for the start of the body and recordTitle reads comment text as the record's title (a record opening with a two-line attribution comment is titled 'attribution line'). It keeps a private reading of HTML comments beside mdrecord's, the tree's one comment reader. One committed file has the shape today (internal/core/ahoy/defaults/claude-md-marker-block.md, not a record).
Grounds
- pursued: recordTitle finds the body line past a multi-line comment with and without frontmatter, two comments on one line and a one-line comment (TestRecordBodyStartSkipsAMultiLineLeadingComment), FirstContent's cases hold (TestFirstContentSkipsBlanksAndComments) and the lint package passes; a comment line read as a title, or a lint regression over the committed record, would show it wrong
Frontmatter
| id | iss-2609251517210637 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2609251517210637-lint-s-recordbodystart-internal-core.md
open on GitHub ↗ · commit history ↗