8000 fix(inkless:ai): skip lines that only gain link markup in the Vale runner by gqmelo · Pull Request #941 · aiven/inkless · GitHub
[go: up one dir, main page]

Skip to content

fix(inkless:ai): skip lines that only gain link markup in the Vale runner - #941

Open
gqmelo wants to merge 1 commit into
mainfrom
improve-markdown-links-vale
Open

gqmelo wants to merge 1 commit into
mainfrom
improve-markdown-links-vale

Conversation

@gqmelo
@gqmelo gqmelo commented Dec 4, 2026
Copy link
Copy Markdown
Collaborator

Adding reference-style links to an existing doc changes many lines whose
prose stays the same. The runner counted each one as added prose, so the
Inkless Vale check reported the old wording of every line that gained a
link, such as changelog entries that copy commit subjects.

The runner now compares each added Markdown line, with link markup
stripped, against the lines the same diff removes. If the text matches, the
line keeps its existing prose and the runner skips it. Link definition
lines are skipped too. New prose next to a link is still linted, and code
comments are linted as before.

Testing

  • Ran make vale on a branch that adds links to 39 docs: no alerts.
  • Appended new prose with a link to an existing line: Vale flagged it.

This PR changes how the Inkless Vale check picks the lines it lints. It is the first of a stack of three PRs that add reference links to the inkless docs.

🤖 Generated with Claude Code

@gqmelo
gqmelo marked this pull request as ready for review December 4, 2026 13:19
@gqmelo
gqmelo added this pull request to stack #944 December 4, 2026 13:20
…nner

Adding reference-style links to an existing doc changes many lines whose
prose stays the same. The runner counted each one as added prose, so the
`Inkless Vale` check reported the old wording of every line that gained a
link, such as changelog entries that copy commit subjects.

The runner now compares each added Markdown line, with link markup
stripped, against the lines the same diff removes. If the text matches, the
line keeps its existing prose and the runner skips it. Link definition
lines are skipped too. New prose next to a link is still linted, and code
comments are linted as before.

## Test plan

- Ran `make vale` on a branch that adds links to 39 docs: no alerts.
- Appended new prose with a link to an existing line: Vale flagged it.

Assisted-by: Claude Opus 5.5
@gqmelo
gqmelo force-pushed the improve-markdown-links-vale branch from 2544fb6 to 76d79d2 Compare December 4, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0