phpmyadmin/test/ci-phplint
Liviu-Mihail Concioiu 25be09a799 Fail on lint error
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2025-09-22 17:15:39 +02:00

14 lines
245 B
Bash
Executable File

#!/bin/sh
FILES=`find . -name '*.php' -not -path './vendor/*'`
for FILE in $FILES ; do
if [ -f $FILE ] ; then
php -l $FILE
test_ret=$?
if [ $test_ret -ne 0 ] ; then
exit $test_ret
fi
fi
done