dmarx / dmarx/luria

Duplicate frontmatter keys: check the mapping, not the lines

Open
#240 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.