diff --git a/tests/syntax.sh b/tests/syntax.sh index 6d597fc..a5a32f1 100644 --- a/tests/syntax.sh +++ b/tests/syntax.sh @@ -1,8 +1 @@ -# FIXME: Use ruleset.xml -phpcs ../src/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;" +phpcs --standard=PSR2 ../src/Curl.class.php