]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add test for repeated words
authorJoe Perches <joe@perches.com>
Wed, 12 Aug 2020 01:35:16 +0000 (18:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Aug 2020 17:58:00 +0000 (10:58 -0700)
commitcf2f6f7c1acf01cb0334fafdc32b9ea91d5e2ecf
tree04a237a630e0ad526c6d825c2c0b06b628d019de
parent6b3fc36029dee70c10f87a66b30a0508f4432aec
checkpatch: add test for repeated words

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 */

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/cda9b566ad67976e1acd62b053de50ee44a57250.camel@perches.com
Inspired-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl