mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-25 17:48:41 +00:00
Add echo to build/inspection
This commit is contained in:
parent
678415a944
commit
899c750866
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
. ${BUILD_PATH}/config.sh
|
||||
|
||||
echo "Start html tags inspection\n"
|
||||
|
||||
# Html tag inspection
|
||||
TAG[0]="<\/html>"
|
||||
TAG[1]="<\/body>"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
. ${BUILD_PATH}/config.sh
|
||||
|
||||
echo "Start js security inspection\n"
|
||||
|
||||
# JS code inspection
|
||||
CODE[0]="onload"
|
||||
CODE[1]="onclick"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user