Catch funny line-ends in pre-commit hook.
Change-Id: I38836a9b3c9fb8ab7b71e157bba8a803eb4d3905
This commit is contained in:
parent
8b4b1d502c
commit
8f45f78e82
@ -68,6 +68,10 @@ sub check_whitespaces($)
|
|||||||
{
|
{
|
||||||
bad_line("trailing whitespace", $_ , $src_limited);
|
bad_line("trailing whitespace", $_ , $src_limited);
|
||||||
}
|
}
|
||||||
|
if (/\r$/)
|
||||||
|
{
|
||||||
|
bad_line("DOS lineends", $_ , $src_limited);
|
||||||
|
}
|
||||||
if (/\s* /)
|
if (/\s* /)
|
||||||
{
|
{
|
||||||
bad_line("indent with Tab", $_, $src_limited);
|
bad_line("indent with Tab", $_, $src_limited);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user