added codestyle draft

This commit is contained in:
Dennis Eichhorn 2018-01-31 19:12:22 +01:00
parent 87d605aaab
commit 4fd8a700bd
3 changed files with 11 additions and 0 deletions

6
Inspection/Php/style.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
. config.sh
php ${TOOLS_PATH}/phpcs.phar ${ROOT_PATH}/phpOMS --colors --standard="${BUILD_PATH}/phpcs.xml" -s --report=full
php ${TOOLS_PATH}/phpmd.phar ${ROOT_PATH}/phpOMS text ${BUILD_PATH}/phpmd.xml --exclude *tests* --minimumpriority 1

View File

@ -21,6 +21,9 @@ php ${TOOLS_PATH}/phpunit.phar -v --configuration ${ROOT_PATH}/tests/phpunit_def
. Inspection/Php/linting.sh
. Inspection/Json/linting.sh
# Code style
. Inspection/Php/style.sh
# Custom html inspections
. Inspection/Html/tags.sh
. Inspection/Html/attributes.sh

View File

@ -71,6 +71,8 @@ if [ ! -d "$TOOLS_PATH" ]; then
wget -nc https://getcomposer.org/composer.phar
wget -nc https://phar.phpunit.de/phploc.phar
wget -nc https://phar.phpunit.de/phpunit.phar
wget -nc https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcs.phar
wget -nc http://static.phpmd.org/php/latest/phpmd.phar
wget -nc https://github.com/Halleck45/PhpMetrics/raw/master/build/phpmetrics.phar
wget -nc http://static.pdepend.org/php/latest/pdepend.phar
wget -nc http://dl.google.com/closure-compiler/compiler-latest.tar.gz