lkml.org 
[lkml]   [2020]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] checkpatch: Add test for repeated words
From
Date
On 7/27/20 12:33 AM, Joe Perches wrote:
> Try to avoid adding repeated words either on the
> same line or consecutive comment lines in a block
>
> e.g.:
>
> duplicated word in comment block
>
> /*
> * this is a comment block where the last word of the previous
> * previous line is also the first word of the next line
> */
>
> and simple duplication
>
> /* test this this again */
>
> Inspired-by: Randy Dunlap (rdunlap@infradead.org>
> Signed-off-by: Joe Perches <joe@perches.com>

Thanks for adding this check, Joe.

> ---
> scripts/checkpatch.pl | 38 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)


--
~Randy

\
 
 \ /
  Last update: 2020-07-28 02:05    [W:0.066 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site