From: Igor Stoppa <igor.stoppa@gmail.com>
To: Joe Perches <joe@perches.com>, Andy Whitcroft <apw@canonical.com>
Cc: igor.stoppa@huawei.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] checkpatch.pl: Improve WARNING on Kconfig help
Date: Wed, 19 Dec 2018 14:43:06 +0200 [thread overview]
Message-ID: <f05d1e5f-7514-07f1-dfc9-a4b95d7ff385@gmail.com> (raw)
In-Reply-To: <0fcf870749cae85490aa17cd637e2c933a792c90.camel@perches.com>
On 19/12/2018 14:29, Joe Perches wrote:
> On Wed, 2018-12-19 at 11:59 +0000, Andy Whitcroft wrote:
>> On Wed, Dec 19, 2018 at 02:44:36AM -0800, Joe Perches wrote:
>> To cover both cases perhaps:
>>
>> "please ensure that this config symbols is described fully (less than
>> $min_conf_desc_length lines is quite brief)"
>
> This is one of those checkpatch bleats I never
> really thought was appropriate as some or many
> Kconfig symbols are fully descriptive in even
> with only a single line.
>
> Also, it seems you are arguing for a checkpatch
> --verbose-help output style rather than the
> intentionally terse single line output that the
> script produces today.
If I have to use --verbose, to understand that the warning is about me
writing 3 lines when the script expects 4, I don't think it's
particularly user friendly.
Let's write "Expected 4+ lines" or something equally clear.
It will fit in a row and get the job done.
> That is something Al Viro once suggested in this thread:
> https://lore.kernel.org/patchwork/patch/775901/
>
> On Sat, 2017-04-01 at 05:08 +0100, Al Viro wrote:
>> On Fri, Mar 31, 2017 at 08:52:50PM -0700, Joe Perches wrote:
>>> checkpatch messages are single line.
>>
>> Too bad... Incidentally, being able to get more detailed explanation of
>> a warning might be a serious improvement, especially if it contains
>> the rationale. Hell, something like TeX handling of errors might be
>> a good idea - warning printed, offered actions include 'give more help',
>> 'continue', 'exit', 'from now on suppress this kind of warning', 'from
>> now on just dump this kind of warning into log and keep going', 'from
>> now on dump all warnings into log and keep going'.
It's all good in general, but here the word "paragraph" is being abused,
in the sense that it has been given an arbitrary meaning of "4 lines".
And the warning is even worse because it doesn't even acknowledge that I
wrote something, even if it's a meager 1 or 2 lines.
Which is even more confusing.
As user, if I'm running checkpatch.pl and I get a warning, I should
spend my time trying to decide if/how to fix it, not re-invoking it with
extra options or reading its sources.
--
igor
next prev parent reply other threads:[~2018-12-19 12:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-19 8:35 Igor Stoppa
2018-12-19 10:44 ` Joe Perches
2018-12-19 11:59 ` Andy Whitcroft
2018-12-19 12:29 ` Joe Perches
2018-12-19 12:43 ` Igor Stoppa [this message]
2018-12-19 18:55 ` Igor Stoppa
2018-12-19 19:17 ` Joe Perches
2018-12-19 19:39 ` Andi Kleen
2018-12-19 23:23 ` Igor Stoppa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f05d1e5f-7514-07f1-dfc9-a4b95d7ff385@gmail.com \
--to=igor.stoppa@gmail.com \
--cc=apw@canonical.com \
--cc=igor.stoppa@huawei.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome