test(docs): validate reviewer surface links#85
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8272e96bc7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if absolute_root.is_file(): | ||
| candidates = (absolute_root,) if absolute_root.suffix.lower() == ".md" else () | ||
| else: | ||
| candidates = sorted(absolute_root.rglob("*.md")) |
There was a problem hiding this comment.
Restrict link checks to reviewer files
Because this walks every *.md on disk under tools/sbom-diff-and-risk and projects, the validator now includes local/generated directories as well as checked-in docs. In a common local setup where a developer creates a project-local .venv or other generated tree under one of these roots, the documented python scripts/validate-reviewer-routes.py command can fail on third-party or generated README links that are not part of the reviewer surface. Consider deriving the list from tracked files or excluding hidden/build/virtualenv directories.
Useful? React with 👍 / 👎.
Summary
Validation
Privacy