We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e01b6 commit b64a13cCopy full SHA for b64a13c
scripts/checkpatch.pl
@@ -3884,6 +3884,13 @@ sub process {
3884
}
3885
3886
3887
+# check for consecutive empty /// lines in .rs files
3888
+ if ($realfile =~ /\.rs$/ &&
3889
+ $rawline =~ /^\+\s*\/\/\/$/ && $prevrawline =~ /^\+\s*\/\/\/$/) {
3890
+ WARN("RUST_DOC_EMPTY",
3891
+ "avoid using consecutive empty rustdoc comments\n" . $herecurr);
3892
+ }
3893
+
3894
# check for adding lines without a newline.
3895
if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file/) {
3896
if (WARN("MISSING_EOF_NEWLINE",
0 commit comments