mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
added codestyle draft
This commit is contained in:
parent
87d605aaab
commit
4fd8a700bd
6
Inspection/Php/style.sh
Normal file
6
Inspection/Php/style.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
2
setup.sh
2
setup.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user