ci: check the links in code comments
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Read .github/workflows/ci.yml and the markdown-links job, then review docs/doc-rules.md for the expected link behavior. Decide how to check relative Markdown links and heading anchors in comments of tracked non-Markdown files while matching remark-validate-links anchor rules. Done means CI reports broken links in those comments using the same anchor rule as the Markdown check; run the repository’s CI link check to verify.
Written by the indexing model from the issue text.
Description
Problem to solve
The Comments row in Where to write in docs/doc-rules.md tells a comment to link the design doc for design reasons across modules. The trace-decision skill starts from these links to go from code to its design section.
The link check in .github/workflows/ci.yml (job markdown-links) gives only the tracked *.md files to remark-validate-links. A link in a code comment, for example in .githooks/pre-push, is not checked. When a heading or a file of a design doc changes, the link in the comment breaks, and CI does not report it.
Proposal
Check the relative links to Markdown files, and their heading anchors, in the comments of the tracked files that are not Markdown. CI fails on a broken link, like the current Markdown check.
The check must use the same rule as remark-validate-links to make an anchor from a heading. Then one link is valid or broken in both checks.
More information
Item 4 of When to write in docs/doc-rules.md says: "If the compiler, project references, tests or CI can enforce a rule, let the tool do it."
Possible ways, not chosen yet:
- A script collects the links in comments and gives them to
remark-validate-linksin a generated Markdown file. - A link checker that reads any text file replaces or joins the current check.
- Dominant language
- Shell
- Stars
- 1
- Forks
- 0
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from c-w-z/commit-decision-record
-
type/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
c-w-z/commit-decision-record#90 · 1 comment ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
c-w-z/commit-decision-record#85 ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
c-w-z/commit-decision-record#84 ·
Maintainers usually reply within 1 day
-
type/feature
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
c-w-z/commit-decision-record#35 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
c-w-z/commit-decision-record#33 ·
Maintainers usually reply within 1 day
All issues in c-w-z/commit-decision-record
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
omacom/omarchy#21286 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ChurchCRM/docs.churchcrm.io#328 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
melodic-software/claude-code-plugins#20573 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
bmaltais/StartDrive#17 ·