diff --git a/Inspection/Html/attributes.sh b/Inspection/Html/attributes.sh index bb91efa..f71ae92 100644 --- a/Inspection/Html/attributes.sh +++ b/Inspection/Html/attributes.sh @@ -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 diff --git a/Inspection/Html/tags.sh b/Inspection/Html/tags.sh index e3129bc..784ebeb 100644 --- a/Inspection/Html/tags.sh +++ b/Inspection/Html/tags.sh @@ -2,6 +2,8 @@ . ${BUILD_PATH}/config.sh +echo "Start html tags inspection\n" + # Html tag inspection TAG[0]="<\/html>" TAG[1]="<\/body>" diff --git a/Inspection/Js/security.sh b/Inspection/Js/security.sh index 800e0c8..407f577 100644 --- a/Inspection/Js/security.sh +++ b/Inspection/Js/security.sh @@ -2,6 +2,8 @@ . ${BUILD_PATH}/config.sh +echo "Start js security inspection\n" + # JS code inspection CODE[0]="onload" CODE[1]="onclick" diff --git a/Inspection/Json/linting.sh b/Inspection/Json/linting.sh index 61dbf53..a1c631f 100644 --- a/Inspection/Json/linting.sh +++ b/Inspection/Json/linting.sh @@ -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 \ No newline at end of file diff --git a/Inspection/Php/linting.sh b/Inspection/Php/linting.sh index a42ec12..5def321 100644 --- a/Inspection/Php/linting.sh +++ b/Inspection/Php/linting.sh @@ -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 diff --git a/Inspection/Php/security.sh b/Inspection/Php/security.sh index 2e85298..8ee42c2 100644 --- a/Inspection/Php/security.sh +++ b/Inspection/Php/security.sh @@ -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" diff --git a/Inspection/Php/stats.sh b/Inspection/Php/stats.sh index 31d0aa4..3eeef73 100644 --- a/Inspection/Php/stats.sh +++ b/Inspection/Php/stats.sh @@ -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 diff --git a/Inspection/Php/style.sh b/Inspection/Php/style.sh index 0310be0..96ec76f 100644 --- a/Inspection/Php/style.sh +++ b/Inspection/Php/style.sh @@ -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 \ No newline at end of file