Skip to content

fix: add check for image with embedded link#16773

Open
Francisco-Andre-Martins wants to merge 1 commit intorust-lang:masterfrom
Francisco-Andre-Martins:fix/#16439-false-positive-missing-punctuation
Open

fix: add check for image with embedded link#16773
Francisco-Andre-Martins wants to merge 1 commit intorust-lang:masterfrom
Francisco-Andre-Martins:fix/#16439-false-positive-missing-punctuation

Conversation

@Francisco-Andre-Martins
Copy link
Copy Markdown

@Francisco-Andre-Martins Francisco-Andre-Martins commented Mar 28, 2026

This fix adds an aditional check, by checking if the previous element was an image, and ignoring the lack of punctuation for a subsequent link. An aditional test was added to account for this case.

Closes #16439

changelog: [doc_paragraphs_missing_punctuation]: fixed false positive on images with embedded link and added a test for such a case

This fix adds an aditional check, by checking if the previous
element was an image, and ignoring the lack of punctuation
for a subsequent link. An aditional test was added to account
for this case.

Closes rust-lang#16439
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 28, 2026

Some changes occurred in clippy_lints/src/doc

cc @notriddle

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Mar 28, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 28, 2026

r? @llogiq

rustbot has assigned @llogiq.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 7 candidates
  • 7 candidates expanded to 7 candidates
  • Random selection from Jarcho, dswij, llogiq, samueltardieu

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 28, 2026

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

@github-actions
Copy link
Copy Markdown

Lintcheck changes for 71e4ac9

Lint Added Removed Changed
clippy::doc_paragraphs_missing_punctuation 0 16 9

This comment will be updated if you push new changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc_paragraphs_missing_punctuation fires when embedding linked images

4 participants