From eff61cb57df3f2ced1dd0d68d0920f7219cfd689 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Fri, 10 Jan 2014 23:45:17 -0800 Subject: [PATCH] Add coding standard test script --- tests/syntax.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/syntax.sh 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;"