From 08eb74dd12b26e14ad0da4527f70f85ce2cde66c Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 10 Jan 2013 13:38:16 -0500
Subject: [PATCH] Created separate phpcs task; adjusted which files get
 style-checked (all modules, minus tests and configurations).

---
 build.xml | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/build.xml b/build.xml
index 4c98ebedafb..17fd59d44ea 100644
--- a/build.xml
+++ b/build.xml
@@ -40,16 +40,17 @@
     <mkdir dir="${builddir}/reports"/>
     <mkdir dir="${builddir}/reports/coverage"/>
 
-    <!-- PHP CodeSniffer -->
-    <exec command="phpcs --standard=PEAR --extensions=php --report=checkstyle ${srcdir}/module/VuFind/src &gt; ${builddir}/reports/checkstyle.xml" escape="false" />
-
-    <!-- Run PHPUnit -->
+    <!-- Call standard tasks -->
+    <phingcall target="phpcs"/>
     <phingcall target="phpunit"/>
-
-    <!-- PHP API Documentation -->
     <phingcall target="phpdoc"/>
   </target>
 
+  <!-- PHP CodeSniffer -->
+  <target name="phpcs">
+    <exec command="phpcs --standard=PEAR --ignore=*/config/*,*/tests/* --extensions=php --report=checkstyle ${srcdir}/module &gt; ${builddir}/reports/checkstyle.xml" escape="false" />
+  </target>
+
   <!-- PHP API Documentation -->
   <target name="phpdoc">
     <mkdir dir="${builddir}/apidocs"/>
-- 
GitLab