Add echo to build/inspection

This commit is contained in:
Dennis Eichhorn 2018-03-04 19:09:27 +01:00
parent 678415a944
commit 899c750866
8 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,8 @@
. ${BUILD_PATH}/config.sh
echo "Start html attributes inspection\n"
# Find empty attributes
grep -rln "=\"\"" --include \*.tpl.php ${ROOT_PATH} > ${INSPECTION_PATH}/Modules/html/attributes_empty.log

View File

@ -2,6 +2,8 @@
. ${BUILD_PATH}/config.sh
echo "Start html tags inspection\n"
# Html tag inspection
TAG[0]="<\/html>"
TAG[1]="<\/body>"

View File

@ -2,6 +2,8 @@
. ${BUILD_PATH}/config.sh
echo "Start js security inspection\n"
# JS code inspection
CODE[0]="onload"
CODE[1]="onclick"

View File

@ -2,4 +2,6 @@
. ${BUILD_PATH}/config.sh
echo "Start json linting inspection\n"
find ${ROOT_PATH} -name "*.json" | xargs -L1 jsonlint -q > ${INSPECTION_PATH}/Modules/linting/linting_json.log

View File

@ -2,6 +2,8 @@
. ${BUILD_PATH}/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

View File

@ -2,6 +2,8 @@
. ${BUILD_PATH}/config.sh
echo "Start php security inspection\n"
# PHP code inspection
CODE[0]="file_get_content"
CODE[1]="fopen"

View File

@ -2,6 +2,8 @@
. ${BUILD_PATH}/config.sh
echo "Start php stats inspection\n"
php ${TOOLS_PATH}/phploc.phar ${ROOT_PATH}/phpOMS/ > ${INSPECTION_PATH}/Framework/phploc.log
php ${TOOLS_PATH}/phploc.phar ${ROOT_PATH}/Modules/ > ${INSPECTION_PATH}/Modules/phploc.log

View File

@ -2,5 +2,7 @@
. ${BUILD_PATH}/config.sh
echo "Start php style inspection\n"
php ${TOOLS_PATH}/phpcs.phar ${ROOT_PATH}/phpOMS --standard="${BUILD_PATH}/Config/phpcs.xml" -s --report=full --report-file=/Framework/phpcs.log
#php ${TOOLS_PATH}/phpmd.phar ${ROOT_PATH}/phpOMS text ${BUILD_PATH}/Config/phpmd.xml --exclude *tests* --minimumpriority 1