add doc_link_with_quotes lint by cameron1024 · Pull Request #8385 · rust-lang/ru...
source link: https://github.com/rust-lang/rust-clippy/pull/8385
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
I'm not sure about wording, it seems OK to me but happy to change if other people have better ideas
closes #8383
changelog: add [doc_link_with_quotes
] lint
Collaborator
rust-highfive commented on Feb 1
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @llogiq (or someone else) soon. Please see the contribution instructions for more information. |
added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label
Contributor
llogiq left a comment
I think we should look at more cases to ensure the false positive rate is low. The best way would presumably to check if the link text contains a valid path, but that may be too complex.
Contributor
Author
cameron1024 commented on Feb 2
The particular case that motivated my example was looking for broken links, but I came across something with a broken link and quotes instead of backticks. Ideally the lint would catch these, but I guess that comes at the cost of false positives. Anecdotally, the use of Though if by "valid path" you mean a much simpler syntactic check (rather than checking if it points to an actual item), that sounds reasonable. i.e.:
Does that seem like a good way to go? |
The latest upstream changes (presumably #8411) made this pull request unmergeable. Please resolve the merge conflicts. |
Contributor
llogiq commented 5 days ago
So this has waited long enough, I fixed the conflicts. Thanks for your patience. @bors r+ |
Contributor
bors commented 5 days ago
Commit c9be57d has been approved by |
Contributor
bors commented 5 days ago
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
No milestone
Successfully merging this pull request may close these issues.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK