Skip to content
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

feat: Quick Fix for bare URLs #12836

Merged
merged 1 commit into from
May 24, 2024

Conversation

hamirmahal
Copy link
Contributor

closes #12835.

Please write a short comment explaining your change (or "none" for internal only changes)

changelog: [clippy::doc_markdown]: Quick Fix for bare URLs

@rustbot
Copy link
Collaborator

rustbot commented May 23, 2024

r? @y21

rustbot has assigned @y21.
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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 23, 2024
Copy link
Contributor Author

@hamirmahal hamirmahal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to try this out in an IDE with rust-analyzer but wasn't able to do so.

Copy link
Member

@J-ZhengLi J-ZhengLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to try this out in an IDE with rust-analyzer but wasn't able to do so.

not sure if there's a way 🤔, but you can put your test code in tests/ui/doc/doc-fixable.rs, then run TESTNAME='doc-fixable' cargo uibless to "try it out".

clippy_lints/src/doc/markdown.rs Outdated Show resolved Hide resolved
@y21
Copy link
Member

y21 commented May 23, 2024

I'm surprised that this didn't have to touch any tests and the checks are still passing. We should definitely have a test for this like @J-ZhengLi said :)

@hamirmahal hamirmahal requested review from y21 and J-ZhengLi May 24, 2024 07:21
Copy link
Member

@y21 y21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, can you squash your commits? :)
Then we can merge this

@hamirmahal hamirmahal force-pushed the feat/quick-fix-for-bare-urls branch from 2d45949 to 6f3e830 Compare May 24, 2024 21:28
@hamirmahal hamirmahal force-pushed the feat/quick-fix-for-bare-urls branch from 6f3e830 to 17cc0a3 Compare May 24, 2024 21:37
@hamirmahal
Copy link
Contributor Author

Looks good to me, can you squash your commits? :) Then we can merge this

Sure! I just squashed them after rebasing against the main branch.

@y21
Copy link
Member

y21 commented May 24, 2024

Thanks! @bors r+

@bors
Copy link
Collaborator

bors commented May 24, 2024

📌 Commit 17cc0a3 has been approved by y21

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented May 24, 2024

⌛ Testing commit 17cc0a3 with merge 674c641...

@hamirmahal
Copy link
Contributor Author

You're welcome!

@bors
Copy link
Collaborator

bors commented May 24, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: y21
Pushing 674c641 to master...

@bors bors merged commit 674c641 into rust-lang:master May 24, 2024
5 checks passed
@hamirmahal hamirmahal deleted the feat/quick-fix-for-bare-urls branch May 24, 2024 22:14
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.

bare URLs in clippy::doc_markdown lint should have a Quick Fix
5 participants