Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-04-19 17:22:55 +0300
committerMichal Čihař <michal@cihar.com>2016-04-19 17:22:55 +0300
commit8b29917eca5778b61dff701a6082060c83d3e6c5 (patch)
treec73733ece1846314aa10ae9bedf718a60394392a /build.xml
parent3794b829e3137dc91c719ecab7881ffd9bc52e0c (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.xml14
1 files changed, 9 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index 324c518f67..445084cc57 100644
--- a/build.xml
+++ b/build.xml
@@ -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'