Permalink
Browse files

Added target for phpcs using the Imbo standard

  • Loading branch information...
1 parent df7559b commit edeaa1b4552035f574b98e36815f82c6e3dd0df2 @christeredvartsen committed Feb 14, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 build.xml.dist
View
@@ -66,5 +66,11 @@
</exec>
</target>
- <target name="build" depends="clean,lint,phpunit,docblox,phploc,phpcb,phpcpd,pdepend,phpmd"/>
+ <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
+ <exec executable="phpcs" output="/dev/null">
+ <arg line="--report=checkstyle --report-file=${build}/logs/checkstyle.xml --standard=Imbo ${source}"/>
+ </exec>
+ </target>
+
+ <target name="build" depends="clean,lint,phpunit,docblox,phploc,phpcb,phpcpd,pdepend,phpmd,phpcs"/>
</project>

0 comments on commit edeaa1b

Please sign in to comment.