You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clean consecutive empty /// lines and implement a checkpatch.pl check for it #1109
Clean up consecutive empty /// lines and implement a checkpatch.pl check for it. These should be two different patches.
At the time of writing, there are a couple instances at rust/kernel/rbtree.rs and rust/kernel/block/mq/request.rs.
Please note that the checkpatch.pl maintainers will need to agree to the change.
This requires submitting a proper patch to the LKML and the Rust for Linux mailing list. Please recall to test your changes (including generating the documentation if changed, running the Rust doctests if changed, etc.), to use a proper title for the commit, to sign your commit under the Developer's Certificate of Origin and to add a Suggested-by: tag and a Link: tag to this issue. Please see https://rust-for-linux.com/contributing for details.
Please take this issue only if you are new to the kernel development process and you would like to use it as a test to submit your first patch to the kernel. Please do not take it if you do not plan to make other contributions to the kernel.
This is already included in the regex that matches $rawline; it will only match lines in the diff that begin with a '+', implying that a line was added.
This is already included in the regex that matches $rawline; it will only match lines in the diff that begin with a '+', implying that a line was added.
Activity
hrideshmg commentedon Sep 8, 2024
Hi there! Would love to give this a go. Thanks for creating these for us beginners :)
docs: rust: clean up empty `\\\` lines and improve rustdoc formatting
ojeda commentedon Sep 10, 2024
You're welcome Hridesh!
https://lore.kernel.org/rust-for-linux/20240909161749.147076-1-hridesh699@gmail.com/
rust: kernel: clean up empty `///` lines
checkpatch: warn on empty rust doc comments
leonardotomascostadasilva commentedon Sep 15, 2024
Wouldn't it be interesting to add a check whether a line has actually been added or modified? This would reduce checking for non-relevant lines
Something like that?
hrideshmg commentedon Sep 16, 2024
This is already included in the regex that matches
$rawline; it will only match lines in the diff that begin with a '+', implying that a line was added.rust: kernel: clean up empty `///` lines
checkpatch: warn on empty rust doc comments
leonardotomascostadasilva commentedon Sep 20, 2024
Thanks for your feedback!
rust: kernel: clean up empty `///` lines
checkpatch: warn on empty rust doc comments