Duplicate frontmatter keys: check the mapping, not the lines
Open
bug
good first issue
- Dominant language
- Python
- Stars
- 21
- Forks
- 2
- Avg merge
- 6h 33m
- Merged PRs (30d)
- 91
Description
Follow-on from #164, which [#239](https://github.com/dmarx/luria/pull/239) closed.
## Prior work
#239 shipped `luria/frontmatter_shape.py`, which inspects the raw `---` block before `yaml.safe_load` and reports two things: a line opening at column 0 with `
Contributor guide
Research direction
Start with luria/frontmatter_shape.py and inspect how check_frontmatter and check_journals process frontmatter. Replace the raw line scan with duplicate-key detection through the YAML loader, then verify that nested and differently quoted duplicates are caught and that journal entries receive the same shape checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100