Re: [PATCH v2] checkpatch: Check for space after "else" keyword

2018-08-05 Thread Joe Perches
On Sun, 2018-08-05 at 22:42 +0200, Michal Zylowski wrote: > Current checkpatch implementation permits notation like: > } else{ > in kernel code. > It looks like oversight and inconsistency in checkpatch rules (e.g. > instruction like 'do' is tested). > > Add regex for checking space after 'else' k

[PATCH v2] checkpatch: Check for space after "else" keyword

2018-08-05 Thread Michal Zylowski
Current checkpatch implementation permits notation like: } else{ in kernel code. It looks like oversight and inconsistency in checkpatch rules (e.g. instruction like 'do' is tested). Add regex for checking space after 'else' keyword and trigger error if space is not present. Signed-off-by: Michal