linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v4] checkpatch: add support to check 'Fixes:' tag format
       [not found] <20200502185421.GB9082@udknight>
@ 2020-05-02 19:40 ` Markus Elfring
  2020-05-02 20:00   ` Joe Perches
  2020-05-03 11:45   ` [PATCH v4] " Wang YanQing
  0 siblings, 2 replies; 5+ messages in thread
From: Markus Elfring @ 2020-05-02 19:40 UTC (permalink / raw)
  To: Wang YanQing, Joe Perches, Andy Whitcroft, kernel-janitors,
	linux-doc
  Cc: linux-kernel, Alexei Starovoitov, Matteo Croce

> The check doesn't support below formats and it will emit diagnostics info for them:
> Fixes: ba35f8588f47 (“ipvlan: Defer multicast / broadcast processing to a work-queue”)
> Fixes: 03f6fc6de919 ('ASoC: rt5682: Add the soundwire support')

Will the tolerance (and support) grow for such quotation character alternatives?


> Note: this patch also fixes double quotation mark issue for normal git
>       commit description, and now it supports double quotation mark in
>       title line, for example:
>       Commit e33e2241e272 ("Revert "cfg80211: Use 5MHz bandwidth by default
>       when checking usable channels"")

Do you care to achieve a safe data format description also for this use case?


> Note: this patch also adds diagnostics info support for normal git commit
>       description format check.

Does this information indicate a need to split possible changes into
separate update steps?


> +				$diagnostics .= "Missing a pair of parentheses '()' or a pair of double quotation marks (\"\").\n";

Can such a message trigger any more thoughts and development ideas?


> +					$diagnostics .= "The title is too abbreviated, at least half of orignial commit title is necessary.\n";

* Please avoid a typo in this message.

* Which formula do you propose for the length calculation?

Regards,
Markus

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v4] checkpatch: add support to check 'Fixes:' tag format
  2020-05-02 19:40 ` [PATCH v4] checkpatch: add support to check 'Fixes:' tag format Markus Elfring
@ 2020-05-02 20:00   ` Joe Perches
  2020-05-02 20:07     ` [v4] " Markus Elfring
  2020-05-03 11:45   ` [PATCH v4] " Wang YanQing
  1 sibling, 1 reply; 5+ messages in thread
From: Joe Perches @ 2020-05-02 20:00 UTC (permalink / raw)
  To: Markus Elfring, Wang YanQing, Andy Whitcroft, kernel-janitors,
	linux-doc
  Cc: linux-kernel, Alexei Starovoitov, Matteo Croce

On Sat, 2020-05-02 at 21:40 +0200, Markus Elfring wrote:
> > The check doesn't support below formats and it will emit diagnostics info for them:
[]
> Will the tolerance (and support) grow for such quotation character alternatives?

No.

> Does this information indicate a need to split possible changes into
> separate update steps?

No.

> * Which formula do you propose for the length calculation?

None.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [v4] checkpatch: add support to check 'Fixes:' tag format
  2020-05-02 20:00   ` Joe Perches
@ 2020-05-02 20:07     ` Markus Elfring
  0 siblings, 0 replies; 5+ messages in thread
From: Markus Elfring @ 2020-05-02 20:07 UTC (permalink / raw)
  To: Joe Perches, Wang YanQing, Andy Whitcroft, kernel-janitors,
	linux-doc
  Cc: linux-kernel, Alexei Starovoitov, Matteo Croce

>> Will the tolerance (and support) grow for such quotation character alternatives?
>
> No.

Would you prefer to achieve a restrictive data format description?


>> * Which formula do you propose for the length calculation?
>
> None.

I imagine that such a view can increase the probability for confusion.

Regards,
Markus

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v4] checkpatch: add support to check 'Fixes:' tag format
  2020-05-02 19:40 ` [PATCH v4] checkpatch: add support to check 'Fixes:' tag format Markus Elfring
  2020-05-02 20:00   ` Joe Perches
@ 2020-05-03 11:45   ` Wang YanQing
  2020-05-03 12:32     ` [v4] " Markus Elfring
  1 sibling, 1 reply; 5+ messages in thread
From: Wang YanQing @ 2020-05-03 11:45 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Joe Perches, Andy Whitcroft, kernel-janitors, linux-doc,
	linux-kernel, Alexei Starovoitov, Matteo Croce

On Sat, May 02, 2020 at 09:40:24PM +0200, Markus Elfring wrote:
> 
> 
> > +				$diagnostics .= "Missing a pair of parentheses '()' or a pair of double quotation marks (\"\").\n";
> 
> Can such a message trigger any more thoughts and development ideas?

No, I don't think so. '(" ... ")' is the minimum interface between analyser
(checkpatch) and commit id description (normal commit id and 'Fixes:' tag)
about the title, it is very difficult if not impossible to guess the title
boundary and whether it is the *REAL* title that folllow the SHA1 without
this precondition, and it is more difficult to do it when we need to support
title which across lines in the normal commit id description.

At last I really doubt the benefit it brings deserves the complexity and the
current diagnostics info is enough clear for most situation.

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [v4] checkpatch: add support to check 'Fixes:' tag format
  2020-05-03 11:45   ` [PATCH v4] " Wang YanQing
@ 2020-05-03 12:32     ` Markus Elfring
  0 siblings, 0 replies; 5+ messages in thread
From: Markus Elfring @ 2020-05-03 12:32 UTC (permalink / raw)
  To: Wang YanQing, Joe Perches, Andy Whitcroft, kernel-janitors,
	linux-doc
  Cc: linux-kernel, Alexei Starovoitov, Matteo Croce

>>> +				$diagnostics .= "Missing a pair of parentheses '()' or a pair of double quotation marks (\"\").\n";
>>
>> Can such a message trigger any more thoughts and development ideas?
>
> No, I don't think so. '(" ... ")' is the minimum interface between analyser
> (checkpatch) and commit id description (normal commit id and 'Fixes:' tag)

* I am proposing to recheck the influence of quotation character alternatives
  also at this place.

* How do you think about to provide an information without the word “or”
  in error messages?


> about the title, it is very difficult if not impossible to guess the title
> boundary and whether it is the *REAL* title that folllow the SHA1 without
> this precondition,

I find this concern reasonable.


> and it is more difficult to do it when we need to support
> title which across lines in the normal commit id description.

I imagine that further software design options can be considered.


> At last I really doubt the benefit it brings deserves the complexity and the
> current diagnostics info is enough clear for most situation.

* Will a safer data format description trigger corresponding efforts?

* Will the structure of the commit title matter?

* Would you like to improve checks (and program organisation) besides
  the application of regular expressions?

Regards,
Markus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-03 12:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20200502185421.GB9082@udknight>
2020-05-02 19:40 ` [PATCH v4] checkpatch: add support to check 'Fixes:' tag format Markus Elfring
2020-05-02 20:00   ` Joe Perches
2020-05-02 20:07     ` [v4] " Markus Elfring
2020-05-03 11:45   ` [PATCH v4] " Wang YanQing
2020-05-03 12:32     ` [v4] " Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).