]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add --strict test for lines ending in [ or (
authorJoe Perches <joe@perches.com>
Fri, 17 Nov 2017 23:28:52 +0000 (15:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Nov 2017 00:10:02 +0000 (16:10 -0800)
commitd4b5cc646edf3a4a0df329e361880f93a89ec514
tree50bd9ee4f7fb35bdebb54e917bef568cbbb2b7b1
parent5795e9f9522001cce293fb02ecab6d0eb89bf1a4
checkpatch: add --strict test for lines ending in [ or (

Lines that end in an open bracket or open parenthesis are generally hard
to follow.  Lines following those ending with open parenthesis are also
rarely aligned to that open parenthesis.

Suggest not ending lines with '[' or '('

Link: http://lkml.kernel.org/r/8fd0b2b4a7482064254e37931eb9302a81d5aa2f.1508340786.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl