Permalink
Browse files

Ignore autoload_static files for syntax check.

  • Loading branch information...
1 parent 05d7a14 commit 92382c1c7db7a325c1ae791f9eb9249ef3000784 @cdujeu cdujeu committed May 11, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 dist/scripts/tests/syntax.sh
@@ -1,7 +1,7 @@
#!/bin/bash
echo -e "\e[1;34mChecking syntax error\e[00m"
-output=$(find . -name '*.php' -exec php --syntax-check {} \; | grep -v 'No syntax errors detected in')
+output=$(find . -type f \( -name '*.php' ! -name 'autoload_static.php' \) -exec php --syntax-check {} \; | grep -v 'No syntax errors detected in')
if [[ $output ]]
then
echo -e '\e[00;31mPlease check files syntax\e[00m'

0 comments on commit 92382c1

Please sign in to comment.