False positive: glob patterns reported as broken links
False positive: glob patterns reported as broken links
Current behavior: a backtick span containing glob metacharacters is treated as a literal file path and reported as references.broken-link when no such file exists.
Concrete example (from a real skill documenting a house convention):
1. **Harness**: a fixed-work `examples/<name>.rs` or `tests/bench_*.rs` with a
`#[global_allocator]` counting allocator ...
tracemantle 1.6.1 reports:
line 35 ✗ error references.broken-link Referenced file does not exist: 'tests/bench_*.rs'.
tests/bench_*.rs is a glob describing a naming convention ("name your bench like this"), not a reference to a specific file. There is no file that could ever satisfy this check, and rewording the convention to dodge the linter would make the docs worse.
Suggested fix: if a candidate reference contains glob metacharacters (*, ?, [), do not report it as a broken link — either skip it or expand the glob and check that at least one match exists. The former is simpler and matches author intent (it's a pattern, not a pointer).
Happy to PR this if you agree with the skip-globs direction.
Agreed, skip rather than match. A span with , ?, [, or { is a pattern, not a pointer, and matching would still fail your example since no bench_.rs exists in the skill. Skip those spans entirely: not resolved, not broken, and don’t let them flip the “references complete” flag either way. Make sure URL-looking spans are still filtered before this check so ? in a query string isn’t what triggers it. PR welcome, with a test for each metacharacter and the README count updated.