diff --git a/sanityCheck b/sanityCheck index d00bf7319e6a53623f37d4b9aeeb8ab5487932b7..8126908d564558783a489524bc38bdef72cad816 100755 --- a/sanityCheck +++ b/sanityCheck @@ -11,7 +11,8 @@ ENDC='\033[0m' myprint() { while read data; do - echo -e "[$1]$WARNING" $data + echo -n -e "[$1]$WARNING" + echo "$data" done } @@ -53,6 +54,8 @@ $GREP "\$slaves\[\$i\]\. " -- 'src/*' | myprint "MissingPropertyAfterSlaves" $GREP "\$PC.refreshmentType[^ =]" -- 'src/*' | myprint "ShouldBeRefreshment" # Check, e.g., <<//if>> $GREP "<</[a-zA-Z]*[^a-zA-Z<>]\+[a-zA-Z]*>>" -- 'src/*' | myprint "DoubleSlash" +# Check, e.g. <<else $foo==4 +$GREP "<<else >\?[^>]" -- 'src/*' | myprint "ShouldBeElseIf" # Check, e.g., =to $GREP "=to" -- 'src/*' | myprint "EqualAndTo" # Check doing $slaves.foo instead of $slaves[i].foo