Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add rule to build jshint

  • Loading branch information...
commit 87b1635589c1c181a81df5061d8155754d767bda 1 parent acfc301
Michal Čihař nijel authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 build.xml
9 build.xml
View
@@ -4,6 +4,9 @@
<property name="source" value="."/>
<property name="source_comma_sep" value="."/>
+ <fileset dir="${source}" includes="js/*.js" id="jsfiles" />
+ <pathconvert pathsep=" " property="js-list" refid="jsfiles" />
+
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/build/api"/>
<delete dir="${basedir}/build/code-browser"/>
@@ -102,5 +105,11 @@
</exec>
</target>
+ <target name="jshint" description="Javascript checks">
+ <exec executable="jshint" output="${basedir}/build/logs/jslint.xml">
+ <arg line="--jslint-reporter ${js-list}" />
+ </exec>
+ </target>
+
<target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb"/>
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.