Skip to content

Commit

Permalink
Add PHP lint to build.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jun 12, 2013
1 parent e7069f8 commit 23141a0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.xml
Expand Up @@ -115,5 +115,16 @@
</exec>
</target>

<target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb"/>
<target name="lint" description="Perform syntax check of sourcecode files">
<apply executable="php" failonerror="true">
<arg value="-l" />

<fileset dir="${basedir}">
<include name="**/*.php" />
<modified />
</fileset>
</apply>
</target>

<target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb,lint,jshint"/>
</project>

0 comments on commit 23141a0

Please sign in to comment.