Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a lint target to the build.

  • Loading branch information...
commit ac2f1b1d1cb490f7e9c55f98653b0be6c367f419 1 parent 91f060d
@realityking realityking authored
Showing with 53 additions and 1 deletion.
  1. +53 −1 build.xml
View
54 build.xml
@@ -2,7 +2,7 @@
<project name="joomla" default="build" basedir=".">
<property name="source" value="." />
- <property name="joomlasource" value="administrator,cli,components,includes,installation,libraries/cms,modules,plugins,templates" />
+ <property name="joomlasource" value="administrator,cli,components,includes,installation,language/en-GB,libraries/cms,modules,plugins,templates" />
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/build/coverage" />
@@ -58,5 +58,57 @@
</exec>
</target>
+ <target name="lint" description="Perform syntax check of sourcecode files">
+ <apply executable="php" failonerror="true">
+ <arg value="-l" />
+
+ <fileset dir="${basedir}/administrator">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+
+ <fileset dir="${basedir}/cli">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+
+ <fileset dir="${basedir}/components">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+
+ <fileset dir="${basedir}/installation">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+
+ <fileset dir="${basedir}/includes">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+
+ <fileset dir="${basedir}/language/en-GB">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+
+ <fileset dir="${basedir}/libraries">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+
+ <fileset dir="${basedir}/modules">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+
+ <fileset dir="${basedir}/templates">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+ </apply>
+ </target>
+
+
<target name="build" depends="clean,phpunit,parallelTasks" />
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.