[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d13c59eb55ad4822878eac47dd2ad339a95f5cb9.camel@perches.com>
Date: Sat, 07 Sep 2024 08:33:00 -0700
From: Joe Perches <joe@...ches.com>
To: Patrick Miller <paddymills@...ton.me>
Cc: a.hindborg@...sung.com, alex.gaynor@...il.com, aliceryhl@...gle.com,
apw@...onical.com, benno.lossin@...ton.me, bjorn3_gh@...tonmail.com,
boqun.feng@...il.com, dwaipayanray1@...il.com, gary@...yguo.net,
linux-kernel@...r.kernel.org, lukas.bulwahn@...il.com, ojeda@...nel.org,
rust-for-linux@...r.kernel.org, tmgross@...ch.edu, wedsonaf@...il.com
Subject: Re: [PATCH 2/2] checkpatch: warn on known non-plural rust doc
headers
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.
Powered by blists - more mailing lists