diff --git a/Inspection/Html/attributes.sh b/Inspection/Html/attributes.sh index 750a5ee..44137e9 100644 --- a/Inspection/Html/attributes.sh +++ b/Inspection/Html/attributes.sh @@ -1,6 +1,6 @@ #!/bin/bash -. ../../config.sh +. config.sh # 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 83450f2..5667379 100644 --- a/Inspection/Html/tags.sh +++ b/Inspection/Html/tags.sh @@ -1,6 +1,6 @@ #!/bin/bash -. ../../config.sh +. config.sh # Html tag inspection TAG[0]="<\/html>" diff --git a/Inspection/Json/linting.sh b/Inspection/Json/linting.sh index 567b054..4bcd1f9 100644 --- a/Inspection/Json/linting.sh +++ b/Inspection/Json/linting.sh @@ -1,5 +1,5 @@ #!/bin/bash -. ../../config.sh +. config.sh 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 c2d5d00..0c44350 100644 --- a/Inspection/Php/linting.sh +++ b/Inspection/Php/linting.sh @@ -1,6 +1,6 @@ #!/bin/bash -. ../../config.sh +. config.sh 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 a34af55..4e8418b 100644 --- a/Inspection/Php/security.sh +++ b/Inspection/Php/security.sh @@ -1,6 +1,6 @@ #!/bin/bash -. ../../config.sh +. config.sh # PHP code inspection CODE[0]="file_get_content" diff --git a/Inspection/Php/stats.sh b/Inspection/Php/stats.sh index df9ca3f..d507d2b 100644 --- a/Inspection/Php/stats.sh +++ b/Inspection/Php/stats.sh @@ -1,6 +1,6 @@ #!/bin/bash -. ../../config.sh +. config.sh 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/tests.sh b/Inspection/Php/tests.sh index c768bcc..7b7f763 100644 --- a/Inspection/Php/tests.sh +++ b/Inspection/Php/tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -. ../../config.sh +. config.sh php ${TOOLS_PATH}/phpunit.phar --configuration ${TEST_PATH}/PHPUnit/phpunit_default.xml > ${INSPECTION_PATH}/logs/phpunit.log #phpdbg -qrr phpunit.phar --configuration Tests/PHPUnit/phpunit_default.xml diff --git a/Inspection/Php/tools.sh b/Inspection/Php/tools.sh index a20249f..5d49735 100644 --- a/Inspection/Php/tools.sh +++ b/Inspection/Php/tools.sh @@ -1,6 +1,6 @@ #!/bin/bash -. ../../config.sh +. config.sh php ${TOOLS_PATH}/phpcs.phar --report-file=${INSPECTION_PATH}/Framework/phpcs/phpcs.log --ignore=${ROOT_PATH}/phpOMS/Localization --standard=${INSPECTION_PATH}/Configs/phpcs.xml ${ROOT_PATH}/phpOMS php ${TOOLS_PATH}/phpcs.phar --report-file=${INSPECTION_PATH}/Modules/phpcs/phpcs.log --standard=${INSPECTION_PATH}/Configs/phpcs.xml ${ROOT_PATH}/Modules