Add travis-ci script to detect tab characters in the code
parent
a47617c21f
commit
ab97a90c76
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
OUTPUT=$(grep -nRP '\t' --include=\*.{cpp,hpp,c,h} apps components)
|
||||||
|
|
||||||
|
if [[ $OUTPUT ]] ; then
|
||||||
|
echo "Error: Tab characters found!"
|
||||||
|
echo $OUTPUT
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue