From b994eeb15fdcbd329e1c60373b190f3621b5900e Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Fri, 28 Sep 2012 16:13:31 +0200
Subject: [PATCH] try to exclude with another method

---
 dev/codesniffer/jenkins_ruleset.xml | 17 +++++++++++++++++
 quickbuild.xml                      |  1 -
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/dev/codesniffer/jenkins_ruleset.xml b/dev/codesniffer/jenkins_ruleset.xml
index f414b6270af..556bd7acfa9 100755
--- a/dev/codesniffer/jenkins_ruleset.xml
+++ b/dev/codesniffer/jenkins_ruleset.xml
@@ -2,6 +2,23 @@
 <!DOCTYPE ruleset SYSTEM "ruleset.dtd">
 <ruleset name="Dolibarr">
 	<description>Dolibarr coding standard.</description>
+	
+	<!--
+    You can hard-code ignore patterns directly into your
+    custom standard so you don't have to specify the
+    patterns on the command line.
+    
+    The following two tags are equivalent to the command line
+    argument: --ignore=*/tests/*,*/data/*
+	-->
+	<exclude-pattern>*/conf/*</exclude-pattern>
+	<exclude-pattern>*/filemanagerdol/*</exclude-pattern>
+	<exclude-pattern>*/includes/*</exclude-pattern>
+	<exclude-pattern>*/PEAR/*</exclude-pattern>
+	<exclude-pattern>*/NET/*</exclude-pattern>
+	<exclude-pattern>*/HTTP/*</exclude-pattern>
+	<exclude-pattern>*/zendgdata/*</exclude-pattern>
+	<exclude-pattern>*/reportico/*</exclude-pattern>
 
 	<!-- List of all tests -->
 
diff --git a/quickbuild.xml b/quickbuild.xml
index 1982ff150e5..94b2b0d18f2 100644
--- a/quickbuild.xml
+++ b/quickbuild.xml
@@ -69,7 +69,6 @@
  <target name="phpcs">
  	<exec executable="phpcs" dir="${basedir}">
 		<arg line=" --standard=${basedir}/dev/codesniffer/jenkins_ruleset.xml
-					--ignore=**/conf/*,**/filemanagerdol/*,**/includes/*,**/PEAR/*,**/NET/*,**/HTTP/*,**/zendgdata/*,**/reportico/*
 					--report=checkstyle
 					--report-file=${basedir}/hudson/logs/checkstyle.xml
 					-v
-- 
GitLab