Using Jenkins and Php Code Sniffer -


i'm trying use php code sniffer plugin in jenkins. generates checkstyle.xml file there no errors inside, , know should have.

here's containt of checkstyle.xml :

<?xml version="1.0" encoding="utf-8"?> <checkstyle version="1.5.0rc2"> </checkstyle> 

my build.xml file jenkins :

<target name="phpcs" >   <exec executable="phpcs">     <arg line="--report=checkstyle   --report-file=${project.basedir}/build/logs/checkstyle.xml  --standard=zend  ${project.basedir}/*.php" />   </exec>  </target> 

and when in command line, have different result. command :

phpcs --report=checkstyle --report-file=checkstyle.xml --standard=zend *.php 

it generates same checkstyle.xml no errors, , phpcs-checkstyle.tmp contains errors.

how can have results errors in checkstyle.xml file ?

thanks.

i think problem suffering bug: http://pear.php.net/bugs/bug.php?id=19930

the bug occurs in rc version using.

reverting current stable version (1.4.5) should things working again you.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -