diff options
author | Zarubin Stas <zarubin@zsv.org.ua> | 2011-07-06 15:45:20 +0400 |
---|---|---|
committer | Zarubin Stas <zarubin@zsv.org.ua> | 2011-07-06 15:45:20 +0400 |
commit | 161a63a85e175a3b563846d8ffae99c9d6c07ddd (patch) | |
tree | faf271c08f946587bce126f3ae3edc16824a88f1 /build.xml | |
parent | b00f268ccae0a670693268865bf93dfbd3d71a9b (diff) |
Filter external libraries for phpcpd and phpcs
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -44,7 +44,11 @@ <target name="phpcpd" description="Generate pmd-cpd.xml using PHPCPD"> <exec executable="phpcpd"> - <arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml ${source}" /> + <arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml + --exclude test + --exclude libraries/PHPExcel + --exclude libraries/tcpdf + ${source}" /> </exec> </target> @@ -54,9 +58,11 @@ </exec> </target> - <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer"> - <exec executable="phpcs" output="/dev/null"> - <arg line="--report=checkstyle + <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding test, PHPExcel, tcpdf directories"> + <exec executable="phpcs"> + <arg line="-v + --ignore=*/PHPExcel/*,*/php-gettext/*,*/tcpdf/* + --report=checkstyle --report-file=${basedir}/build/logs/checkstyle.xml --standard=PEAR ${source}" /> |