title: Using Jenkins and Php Code Sniffer
body: <p>I'm trying to use the Php Code Sniffer plugin in Jenkins.
  It generates a checkstyle.xml file but there are no errors inside, and I know that I should have.</p>
  
  <p>Here's the containt of my checkstyle.xml : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;checkstyle version="1.5.0RC2"&gt;
  &lt;/checkstyle&gt;
  </code></pre>
  
  <p>My build.xml file for Jenkins is : </p>
  
  <pre><code>&lt;target name="phpcs" &gt;
    &lt;exec executable="phpcs"&gt;
      &lt;arg line="--report=checkstyle 
   --report-file=${project.basedir}/build/logs/checkstyle.xml
   --standard=Zend
   ${project.basedir}/*.php" /&gt;
    &lt;/exec&gt;
   &lt;/target&gt;
  </code></pre>
  
  <p>And when i do it in command line, I have a different result. 
  My command : </p>
  
  <pre><code>phpcs --report=checkstyle --report-file=checkstyle.xml --standard=Zend *.php
  </code></pre>
  
  <p>It generates the same checkstyle.xml with no errors, and a phpcs-checkstyle.tmp which contains the errors.</p>
  
  <p>How can I do to have the results with the errors in my checkstyle.xml file ?</p>
  
  <p>Thanks.</p>