Build/Inspection/Php/linting.sh
2018-03-29 22:46:12 +02:00

13 lines
535 B
Bash

#!/bin/bash
. $(dirname "$0")/../../config.sh
echo "Start php linting inspection\n"
find ${ROOT_PATH}/phpOMS -name "*.php" | xargs -L1 php -l > ${INSPECTION_PATH}/logs/temp.log
sed '/^No syntax.*/ d' < ${INSPECTION_PATH}/logs/temp.log > ${INSPECTION_PATH}/Framework/linting/linting_php.log
find ${ROOT_PATH}/Modules -name "*.php" | xargs -L1 php -l > ${INSPECTION_PATH}/logs/temp.log
sed '/^No syntax.*/ d' < ${INSPECTION_PATH}/logs/temp.log > ${INSPECTION_PATH}/Modules/linting/linting_php.log
rm ${INSPECTION_PATH}/logs/temp.log