diff options
author | Michal Čihař <michal@cihar.com> | 2016-04-19 17:25:15 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-04-19 17:25:15 +0300 |
commit | c2419ee951272b3006224f5a7727955780918a5f (patch) | |
tree | 1ab63d55fcd58db73ecc0e2dc5781eba2c388112 /build.xml | |
parent | d019757f641217b5d14c6804ccb896f71d596a4f (diff) | |
parent | 8b29917eca5778b61dff701a6082060c83d3e6c5 (diff) |
Merge branch 'QA_4_6'
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -55,7 +55,7 @@ <arg line="${source_comma_sep} xml codesize,design,naming,unusedcode - --exclude test,build,bfShapeFiles,PMAStandard,vendor + --exclude test,build,bfShapeFiles,vendor --reportfile '${basedir}/build/logs/pmd.xml'" /> </exec> </target> @@ -64,7 +64,6 @@ <exec executable="phpcpd"> <arg line="--log-pmd '${basedir}/build/logs/pmd-cpd.xml' --exclude test - --exclude PMAStandard --exclude build --exclude vendor --exclude libraries/bfShapeFiles @@ -76,7 +75,6 @@ <exec executable="phploc"> <arg line="--log-csv '${basedir}/build/logs/phploc.csv' --exclude test - --exclude PMAStandard --exclude build --exclude vendor --exclude libraries/bfShapeFiles @@ -84,10 +82,16 @@ </exec> </target> - <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding third party libraries"> + <target name="phpcs-config" description="PHPCS configuration tweaking"> + <exec executable="phpcs"> + <arg line="--config-set installed_paths ${basedir}/vendor/phpmyadmin/coding-standard" /> + </exec> + </target> + + <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding third party libraries" depends="phpcs-config"> <exec executable="phpcs"> <arg line=" - --ignore=*/vendor/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*,*/bfShapeFiles/*,*/PMAStandard/* + --ignore=*/vendor/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*,*/bfShapeFiles/* --report=checkstyle --extensions=php --report-file='${basedir}/build/logs/checkstyle.xml' |