Permalink
Browse files

Add phpcs target

  • Loading branch information...
1 parent 751f0f9 commit e0d4913a68f99ed6b77a6314e9325196eabfdb5d @mbabker mbabker committed Feb 19, 2012
Showing with 14 additions and 3 deletions.
  1. +12 −1 build.xml
  2. +1 −1 media/css/default.css
  3. +1 −1 tmpl/top.php
View
@@ -12,7 +12,7 @@
<target
name="dev_head"
description="Builds test packages based on the development head"
- depends="rebuild-packages,build-temp"
+ depends="phpcs,rebuild-packages,build-temp"
>
<delete quiet="yes" includeemptydirs="true">
<fileset dir=".">
@@ -81,4 +81,15 @@
<echo msg="Creating packages dir" />
<mkdir dir="packages" />
</target>
+ <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
+ <echo msg="Running phpcs with Joomla! Platform standards" />
+ <exec executable="phpcs">
+ <arg value="--report=checkstyle" />
+ <arg value="--report-file=${repo.dir}/build/checkstyle.xml" />
+ <arg value="--standard=${platform.dir}/build/phpcs/Joomla" />
+ <!-- Ignore staging directories -->
+ <arg value="--ignore=${repo.dir}/packages,${repo.dir}/releases" />
+ <arg path="${repo.dir}" />
+ </exec>
+ </target>
</project>
View
@@ -17,4 +17,4 @@
.yetanothersocial-container div {
min-width: 100px;
-}
+}
View
@@ -56,4 +56,4 @@
</div>
<div class="clear">&nbsp;</div>
-<?php echo $article->text; ?>
+<?php echo $article->text;

0 comments on commit e0d4913

Please sign in to comment.