diff options
author | Michal Čihař <michal@cihar.com> | 2016-04-19 17:22:55 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-04-19 17:22:55 +0300 |
commit | 8b29917eca5778b61dff701a6082060c83d3e6c5 (patch) | |
tree | c73733ece1846314aa10ae9bedf718a60394392a /build.xml | |
parent | 3794b829e3137dc91c719ecab7881ffd9bc52e0c (diff) |
Use coding standard from phpmyadmin/coding-standard
It is way cleaner to have the coding standard separte and use it when
checking.
Signed-off-by: Michal Čihař <michal@cihar.com>
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,tcpdf,php-gettext,bfShapeFiles,PMAStandard,phpseclib,recaptchalib.php,swekey.php,vendor,sql-parser + --exclude test,build,tcpdf,php-gettext,bfShapeFiles,phpseclib,recaptchalib.php,swekey.php,vendor,sql-parser --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/tcpdf @@ -82,7 +81,6 @@ <exec executable="phploc"> <arg line="--log-csv '${basedir}/build/logs/phploc.csv' --exclude test - --exclude PMAStandard --exclude build --exclude vendor --exclude libraries/tcpdf @@ -96,10 +94,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=*/php-gettext/*,*/vendor/*,*/tcpdf/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*,*/bfShapeFiles/*,*/PMAStandard/*,*/phpseclib/*,*/recaptcha/*,*/swekey/*,*/sql-parser/* + --ignore=*/php-gettext/*,*/vendor/*,*/tcpdf/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*,*/bfShapeFiles/*,*/phpseclib/*,*/recaptcha/*,*/swekey/*,*/sql-parser/* --report=checkstyle --extensions=php --report-file='${basedir}/build/logs/checkstyle.xml' |