diff --git a/build/phpmd.xml b/build/phpmd.xml
index cce41cc6..9fe10f01 100644
--- a/build/phpmd.xml
+++ b/build/phpmd.xml
@@ -7,7 +7,7 @@
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
Custom rule sets that checks your PHP code.
-
-
+
diff --git a/composer.json b/composer.json
index 44eec7e5..bf3f6976 100644
--- a/composer.json
+++ b/composer.json
@@ -68,6 +68,15 @@
"phpcbfsq": "./vendor/bin/phpcbf --standard=./build/phpcsrules_squiz.xml -q ./src ./tests",
"phpstan": "./vendor/bin/phpstan analyze -c ./build/phpstan.neon --autoload-file=vendor/autoload.php --no-interaction --no-progress --xdebug",
"phpstan_cs": "./vendor/bin/phpstan analyze -c ./build/phpstan.neon --autoload-file=vendor/autoload.php --no-interaction --no-progress --error-format=checkstyle --xdebug",
- "makedoc": "phing -f ./build.xml projectdoc"
+ "makedoc": "phing -f ./build.xml projectdoc",
+ "checkstyle": [
+ "Composer\\Config::disableProcessTimeout",
+ "vendor/bin/phploc --count-tests --log-csv build/logs/phploc.csv --log-xml build/logs/phploc.xml src tests",
+ "vendor/bin/pdepend --jdepend-xml=build/logs/jdepend.xml --jdepend-chart=build/pdepend/dependencies.svg --overview-pyramid=build/pdepend/overview-pyramid.svg src",
+ "vendor/bin/phpmd src xml build/phpmd.xml --reportfile build/logs/pmd.xml --exclude src/entities/",
+ "vendor/bin/phpcs --report=checkstyle --report-file=build/logs/checkstyle.xml --standard=build/phpcsrules.xml --extensions=php --ignore=autoload.php src tests",
+ "vendor/bin/phpstan analyze -c build/phpstan.neon --autoload-file=vendor/autoload.php --no-interaction --no-progress --error-format=checkstyle > build/logs/checkstyle_phpstan.xml",
+ "vendor/bin/phpcpd --log-pmd build/logs/pmd-cpd.xml --exclude src/entities/ src"
+ ]
}
}