Skip to content

Stop doc_markdown requiring backticks on links to external websites #10357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

nindalf
Copy link
Contributor

@nindalf nindalf commented Feb 16, 2023

Fixes #10302

This lint currently checks that any link should be enclosed with backticks if the title looks like a lang item. This PR changes the lint to only run on internal links. External links, indicated by http or https, are skipped.

This PR also reorganises pulldown_cmark imports to bypass the clippy lint enforcing 100 line functions.


changelog: Stop doc_markdown requiring backticks on links to external websites

@rustbot
Copy link
Collaborator

rustbot commented Feb 16, 2023

r? @llogiq

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 16, 2023
@nindalf nindalf force-pushed the doc_markdown_relax branch 3 times, most recently from d8774e9 to ea92b49 Compare February 16, 2023 14:34
@llogiq
Copy link
Contributor

llogiq commented Feb 16, 2023

Thank you!

@bors r+

@bors
Copy link
Contributor

bors commented Feb 16, 2023

📌 Commit ea92b49 has been approved by llogiq

It is now in the queue for this repository.

bors added a commit that referenced this pull request Feb 16, 2023
Stop doc_markdown requiring backticks on links to external websites

Fixes #10302

This lint currently checks that any link should be enclosed with `backticks` if the title looks like a lang item. This PR changes the lint to only run on internal links. External links, indicated by `http` or `https`, are skipped.

---

changelog: Stop doc_markdown requiring backticks on links to external websites
@bors
Copy link
Contributor

bors commented Feb 16, 2023

⌛ Testing commit ea92b49 with merge 006c6d6...

@bors
Copy link
Contributor

bors commented Feb 16, 2023

💔 Test failed - checks-action_test

@nindalf nindalf marked this pull request as ready for review February 16, 2023 14:49
@llogiq
Copy link
Contributor

llogiq commented Feb 16, 2023

Sorry, I had missed that.

@bors retry

@llogiq
Copy link
Contributor

llogiq commented Feb 16, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Feb 16, 2023

📌 Commit 9c9dbc2 has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 16, 2023

⌛ Testing commit 9c9dbc2 with merge be74773...

@bors
Copy link
Contributor

bors commented Feb 16, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing be74773 to master...

@bors bors merged commit be74773 into rust-lang:master Feb 16, 2023
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.

clippy::doc_markdown fires on link with external URL
4 participants