Catch funny line-ends in pre-commit hook.

Change-Id: I38836a9b3c9fb8ab7b71e157bba8a803eb4d3905
This commit is contained in:
Thorsten Behrens 2015-06-13 10:40:47 +02:00
parent 8b4b1d502c
commit 8f45f78e82

View file

@ -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);