Catch funny line-ends in pre-commit hook.
Change-Id: I38836a9b3c9fb8ab7b71e157bba8a803eb4d3905
This commit is contained in:
parent
8b4b1d502c
commit
8f45f78e82
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,10 @@ sub check_whitespaces($)
|
|||
{
|
||||
bad_line("trailing whitespace", $_ , $src_limited);
|
||||
}
|
||||
if (/\r$/)
|
||||
{
|
||||
bad_line("DOS lineends", $_ , $src_limited);
|
||||
}
|
||||
if (/\s* /)
|
||||
{
|
||||
bad_line("indent with Tab", $_, $src_limited);
|
||||
|
|
Loading…
Reference in a new issue