mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
13 lines
535 B
Bash
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 |