Re: [PATCH v2] certs/extract-cert: Fix checkpatch issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue Jun 6, 2023 at 4:38 PM EEST, Dan Carpenter wrote:
> On Tue, Jun 06, 2023 at 07:28:52PM +0700, Bagas Sanjaya wrote:
> > On Fri, Jun 02, 2023 at 10:59:02AM +0200, Franziska Naepelt wrote:
> > > The following issues are fixed:
> > > - WARNING: Missing or malformed SPDX-License-Identifier tag
> > > - ERROR: trailing statements should be on next line
> > > - WARNING: braces {} are not necessary for single statement blocks
> > > - ERROR: space required before the open parenthesis '('
> > > - ERROR: code indent should use tabs where possible
> > > - WARNING: please, no spaces at the start of a line
> > > - WARNING: Missing a blank line after declarations
> > 
> > Again, write the patch description in imperative mood (e.g. "Do foo").
> > 
>
> Why do you care about imperative tense?  Imperative tense doesn't
> matter.  What matters is that you can understand the issue and how it
> looks like to the user.  I was working with a group of foreign students
> and it was painful to see the contortions that they went through to make
> a commit message imperative.  It's like saying "Bake a cake", "Ok, now
> bake it while juggling."  The cake ends up worse.  And the commit
> message end up worse when we force nonsense rules like this.

How about a simple and stupid reason?

Usually I write commit message without caring about this. Then I rewrite
the commit message and 9/10 it gets shorter. Based on empirical
experience, imperative form has minimum amount of extra words.

I came up with this convention first when submitting patches to x86, and
over time it has started to make sense to me.

Especially for multi patch sets too verbose language tends to be super
tiring for non-native English speaker. One should optimize the language
in those: say *exactly* what is needed, and not more. If this not the
case, I tend to move these patch sets very last in my queue.

It's not a "punishment". It's more like that I really have to take the
time to read the prose...

BR, Jarkko




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux