Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.76 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Jenkins with JSLint and Violations plugin
  2. <?xml version="1.0" encoding="UTF-8"?>
  3.        
  4. <taskdef name="jslint"
  5.        classname="com.googlecode.jslint4java.ant.JSLintTask"
  6.        classpath="jslint/jslint4java-2.0.2.jar" />
  7.  
  8. <property name="reports.dir" value="reports" />
  9.  
  10. <target name="clean" description="Removes output files created by other targets.">
  11.     <delete dir="${reports.dir}" failonerror="true" />
  12. </target>
  13.  
  14. <target name="jslint" depends="clean">
  15.     <mkdir dir="reports" />
  16.     <jslint options="white,undef,plusplus,newcap,vars,indent=4">
  17.         <predef>jQuery, setTimeout, history, window, document</predef>
  18.         <formatter type="xml" destfile="jslint_results.xml"/>
  19.         <fileset dir="" includes="**/*.js" excludes="lib/*.js" />
  20.     </jslint>
  21. </target>