-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
doc_link_with_quotes false postive for code inside code block #8961
Comments
rust-lang/rust-clippy#8961 error: possible intra-doc link using quotes instead of backticks --> src/ser.rs:76:1 | 76 | /// inner_map.insert(vec!['w', 'a', 't'], 0); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::doc-link-with-quotes` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes
rust-lang/rust-clippy#8961 error: possible intra-doc link using quotes instead of backticks --> serde_test/src/token.rs:277:5 | 277 | /// let vec = vec!['a', 'b', 'c']; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::doc-link-with-quotes` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes
Hmm this looks pretty bad, I'll have a look at this. I'm pretty new to clippy so I'm not sure how long it will take 😅 |
Hmm this looks pretty bad, I'll have a look at this. I'm pretty new to clippy though so I'm not sure how long it will take 😅 |
@cameron1024
If you do not tackle with this, it is ok and I am going to assign this to me😀 |
rust-clippy/clippy_lints/src/doc.rs Lines 470 to 473 in b3c94c0
|
@rustbot claim |
Sorry, came here because #9321 tagged as "good-first-issue" but this markdown parser seems too complex for me to understand how it should be implemented. |
That's fair, I'll close that one as a duplicate |
I've written some of the code in that module, I can take it. @rustbot claim |
rust-lang/rust-clippy#8961 error: possible intra-doc link using quotes instead of backticks --> serde_test/src/token.rs:277:5 | 277 | /// let vec = vec!['a', 'b', 'c']; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::doc-link-with-quotes` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes
Summary
The
doc_link_with_quotes
lint is documented as:However it is incorrectly triggering on code inside of code blocks.
Lint Name
doc_link_with_quotes
Reproducer
It is indeed a code block though.
Mentioning @cameron1024 since this lint was recently added in #8385.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: