mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 03:38:40 +00:00
20 lines
917 B
Bash
20 lines
917 B
Bash
#!/bin/bash
|
|
|
|
. "${BUILD_PATH}/config.sh"
|
|
|
|
echo "#################################################"
|
|
echo "Start html syntax inspection"
|
|
echo "#################################################"
|
|
|
|
#
|
|
echo "Image alt missing:" > ${OUTPUT_PATH}/html_syntax.log
|
|
grep -rlnP '(\<img)((?!.*?alt=).)*(>)' --include \*.tpl.php ${INSPECTION_PATH} >> ${OUTPUT_PATH}/html_syntax.log
|
|
|
|
echo "Input type missing:" >> ${OUTPUT_PATH}/html_syntax.log
|
|
grep -rlnP '(<input)((?!.*?type=).)*(>)' --include \*.tpl.php ${INSPECTION_PATH} >> ${OUTPUT_PATH}/html_syntax.log
|
|
|
|
echo "Input name missing:" >> ${OUTPUT_PATH}/html_syntax.log
|
|
grep -rlnP '(<input|<select|<textarea)((?!.*?name=).)*(>)' --include \*.tpl.php ${INSPECTION_PATH} >> ${OUTPUT_PATH}/html_syntax.log
|
|
|
|
echo "Form id missing:" >> ${OUTPUT_PATH}/html_syntax.log
|
|
grep -rlnP '(\<form)((?!.*?(name|id)=).)*(>)' --include \*.tpl.php ${INSPECTION_PATH} >> ${OUTPUT_PATH}/html_syntax.log |