mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 02:20:31 +01:00
contrib/checkpatch: be a bit stricter about whitespace
In continations (that use spaces for alignment), don't allow the number
of leading tabs to change. Previously only removal of tabs was
disallowed, but addition doesn't make sense either, as only spaces
should be used for further alignemnt.
This catches situations like this:
|<-tab->all_work_and_no_play (makes,
|<-tab-> jack,
|<-tab-><-tab-> a dull boy);
(cherry picked from commit da312e6220)
This commit is contained in:
parent
744c821bbd
commit
8e11e4b98c
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ if (defined $indent) {
|
|||
complain ("Bad indentation")
|
||||
if $this_indent =~ /^$indent\t+ +/
|
||||
or (defined $tabs_before_spaces and defined $this_tabs_before_spaces
|
||||
and $this_tabs_before_spaces < $tabs_before_spaces);
|
||||
and $this_tabs_before_spaces != $tabs_before_spaces);
|
||||
}
|
||||
$indent = $this_indent;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue