Skip to content

Commit

Permalink
Added the jQuery global to jshint and added an xml output
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed Aug 21, 2012
1 parent 233608d commit 257f053
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -15,4 +15,5 @@ _notes/
ethumbs.db
Thumbs.db
/.project
jshint.out
jshint.out
jshint.out.xml
3 changes: 2 additions & 1 deletion build/build-tasks.properties
Expand Up @@ -15,4 +15,5 @@ cssurlembed.jar=${lib.dir}/cssembed-0.4.5.jar
jruby.jar=${lib.dir}/jruby.jar

#JSLint
jshint.jar=${lib.dir}/ant-jshint-0.3.1-deps.jar
jshint.jar=${lib.dir}/ant-jshint-0.3.1-deps.jar
jshint.globals.file=${tasks.basedir}/jshint.globals.properties
5 changes: 3 additions & 2 deletions build/build-tasks.xml
Expand Up @@ -91,10 +91,11 @@
</target>

<target name="-jshint">
<jshint dir="${src.dir}" fail="false">
<jshint dir="${src.dir}" fail="false" globalsFile="${jshint.globals.file}">
<report type="plain" destfile="${build.dir}/jshint.out" />
<report type="xml" destfile="${build.dir}/jshint.out.xml" />
<include name="**/*.js"/>
<exclude name="*.min.js"/>
<exclude name="**/*.min.js"/>
</jshint>
</target>
</project>
1 change: 1 addition & 0 deletions build/jshint.globals.properties
@@ -0,0 +1 @@
jQuery=true

0 comments on commit 257f053

Please sign in to comment.