Re: [PATCH 2/2] checkpatch: warn on known non-plural rust doc headers
From: Joe Perches
Date: Sat Sep 07 2024 - 11:33:37 EST
On Sat, 2024-09-07 at 14:22 +0000, Patrick Miller wrote:
> > > > +# check that document section headers are plural in rust files
> > > > + if ($realfile =~ /\.rs$/
> > > > + && $rawline =~ /^\+\s*\/\/\/\s+#+\s+(Example|Invariant|Guarantee|Panic)\s*$/) {
> > > > + WARN( "RUST_DOC_HEADER",
> > > > + "Rust doc headers should be plural\n" . $herecurr );
[]
> > There is no autoformatter for checkpatch/perl/etc.
> Can you elaborate on what you mean by this? I'm not following.
> Is there documentation you can point me to that I need to review?
> >
>
[]
> > Will fix this. Is there a code style document for the perl scripts?
No. It mostly follows the c style though.