diff --git a/tests/syntax.sh b/tests/syntax.sh new file mode 100644 index 0000000..3f37777 --- /dev/null +++ b/tests/syntax.sh @@ -0,0 +1,8 @@ +# FIXME: Use ruleset.xml +phpcs ../lib/Curl.class.php | \ + grep -v "| ERROR | Expected \"} else {\\\n\"; found \"}\\\n" | \ + grep -v "| ERROR | Missing class doc comment" | \ + grep -v "| ERROR | Missing file doc comment" | \ + grep -v "| ERROR | Missing function doc comment" | \ + grep -v "| ERROR | Opening brace should be on a new line" | \ + grep -v "| WARNING | Line exceeds 85 characters;"