Skip to content

Instantly share code, notes, and snippets.

@NoodlesNZ NoodlesNZ/build.xml Secret
Created Mar 19, 2017

Embed
What would you like to do?
PHP Lint
<target name="lint"
unless="lint.done"
description="Perform syntax check of sourcecode files">
<apply executable="php" taskname="lint" failonerror="true">
<arg value="-l" />
<fileset dir="${basedir}/public_html">
<include name="**/*.php" />
<include name="**/*.html" />
<modified />
</fileset>
<fileset dir="${basedir}/tests">
<include name="**/*.php" />
<modified />
</fileset>
</apply>
<property name="lint.done" value="true"/>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.