]> git.0d.be Git - empathy.git/commitdiff
check-whitespace.sh: check trailing tabs
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 24 Jun 2009 10:25:52 +0000 (11:25 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 24 Jun 2009 16:32:29 +0000 (17:32 +0100)
tools/check-whitespace.sh

index 84356f20b9e3e8e3974681709d7d96edefc048bf..489322f9ca0c97931ed3aa353ffdd17ed02d9a14 100644 (file)
@@ -8,6 +8,12 @@ then
   fail=1
 fi
 
+if grep -n '   $' "$@"
+then
+  echo "^^^ The above files contain unwanted trailing tabs"
+  fail=1
+fi
+
 # TODO: enable tab checking once all Empathy switched to TP coding style
 #if grep -n '  ' "$@"
 #then