diff options
author | Joe Perches <joe@perches.com> | 2018-04-11 02:34:04 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-11 20:28:36 +0300 |
commit | 6a487211ec720658f3e3c39eecd0b6829eafa6d4 (patch) | |
tree | a219f8b988c3d4165db26fffc112e1d86ed73de7 /tools/thermal | |
parent | bc22d9a7d3aa76bc090d844e6aad18db9cc69237 (diff) | |
download | linux-6a487211ec720658f3e3c39eecd0b6829eafa6d4.tar.xz |
checkpatch: add test for assignment at start of line
Kernel style seems to prefer line wrapping an assignment with the
assignment operator on the previous line like:
<leading tabs> identifier =
expression;
over
<leading tabs> identifier
= expression;
somewhere around a 50:1 ratio
$ git grep -P "[^=]=\s*$" -- "*.[ch]" | wc -l
52008
$ git grep -P "^\s+[\*\/\+\|\%\-]?=[^=>]" | wc -l
1161
So add a --strict test for that condition.
Link: http://lkml.kernel.org/r/1522275726.2210.12.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/thermal')
0 files changed, 0 insertions, 0 deletions