Skip to content

fix(DocCheck): match LIFEOS/ as well as LifeOS/ so the main reference class is checked (#2191) - #2198

Open
Bowlerjim wants to merge 1 commit into
danielmiessler:mainfrom
Bowlerjim:fix/2191-doccheck-casing
Open

Bowlerjim wants to merge 1 commit into
danielmiessler:mainfrom
Bowlerjim:fix/2191-doccheck-casing

Conversation

@Bowlerjim

Copy link
Copy Markdown

Fixes #2191.

Three of the six PATH_PATTERNS spelled the tree LifeOS/, case-sensitive, while the shipped tree is LIFEOS/. That includes the @-import pattern, whose own comment example is @LIFEOS/USER/FILE.md. Every backticked LIFEOS/... reference and every @-import in CLAUDE.md was invisible to the checker.

This is the class fixed in ReferenceCheck.ts as #1541 (@tzioup); DocCheck.ts was left behind. Both casings are listed rather than swapped, since a legacy LifeOS/-cased reference is itself broken and should be reported, not skipped.

Verified on a doc carrying three deliberately broken refs (real casing, legacy casing, and a hooks/ control): before, refsChecked 2 with the LIFEOS/ ref never extracted; after, refsChecked 3 and all three reported missing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PuS77R8a6Lhp7jK6dnwdTh

… class is checked (danielmiessler#2191)

Three of the six PATH_PATTERNS spelled the tree `LifeOS/`, case-sensitive,
while the shipped tree is `LIFEOS/` — including the @-import pattern, whose
own comment example is `@LIFEOS/USER/FILE.md`. Every backticked
`LIFEOS/...` reference and every @-import in CLAUDE.md was therefore
invisible to the checker.

This is the class fixed in ReferenceCheck.ts as danielmiessler#1541 (@tzioup); DocCheck
was left behind. Both casings are listed rather than swapped, since a
legacy `LifeOS/`-cased reference is itself broken and should be reported,
not skipped.

Verified on a doc carrying three deliberately broken refs (real casing,
legacy casing, and a `hooks/` control): before, refsChecked 2 with the
`LIFEOS/` ref never extracted; after, refsChecked 3 and all three reported
missing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PuS77R8a6Lhp7jK6dnwdTh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant