Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 92f0229

Browse files
committed
added jshint
1 parent 02b2183 commit 92f0229

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

build.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<project name="Jumph" default="build">
33
<property name="toolsdir" value="bin/" />
44
<target name="build"
5-
depends="prepare,copy-parameters,bower,composer,lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci,phpunit,phpdox"
5+
depends="prepare,copy-parameters,bower,composer,jshint,lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci,phpunit,phpdox"
66
description=""/>
77

88
<target name="build-parallel"
@@ -68,6 +68,16 @@
6868
</exec>
6969
</target>
7070

71+
<target name="jshint" description="Run the JSHint tool on JavaScript files">
72+
<fileset dir="${basedir}/src" id="jsfiles.raw">
73+
<include name="**/*.js" />
74+
</fileset>
75+
<pathconvert pathsep=" " property="jsfiles.clean" refid="jsfiles.raw" />
76+
<exec executable="jshint" output="${basedir}/build/logs/jshint.xml">
77+
<arg line="--reporter=jslint ${jsfiles.clean}" />
78+
</exec>
79+
</target>
80+
7181
<target name="lint" description="Perform syntax check of sourcecode files">
7282
<apply executable="php" failonerror="true">
7383
<arg value="-l" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$(document).ready(function() {
2+
3+
}; //Error on purpose to check JSHint / JSLint

0 commit comments

Comments
 (0)