Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 283 lines (265 sloc) 10.774 kB
<html>
<head><title>JSLint, The JavaScript Code Quality Tool</title>
<link rel="icon" type="image/gif" href="http://www.JSLint.com/favicon.gif">
<style>
fieldset {
background-color: blanchedalmond;
border: 2px solid black;
color: black;
margin: 1em;
padding: 8px;
text-align: left;
}
legend {
background-color: thistle;
border: 2px solid black;
color: black;
padding: 8px;
}
i {
font-family: serif;
font-style: italic;
}
p {
padding-left: 10pt;
}
input[type="button"] {
background-color: navajowhite;
border: 2px solid black;
color: black;
}
input[type="button"]:hover {
background-color: lightsteelblue;
text-decoration: underline;
}
input[type="button"]:active {
background-color: indianred;
text-decoration: none;
}
input[type="text"] {
border: 1px dotted black;
text-align: center;
}
a:link {
color: darkblue;
}
a:visited {
color: purple;
}
a:hover {
color: blue;
}
a:active {
color: red;
}
body {
background-color: gainsboro;
padding-left: 5%;
padding-right: 5%;
text-align: center;
}
.leftcolumn {
float: left;
margin: 1em;
}
#errors {
margin: 1em;
border: 2px solid black;
padding: 1em;
background-color: mistyrose;
}
#errors p {
margin-left: 2em;
}
#errors p.evidence {
margin-left: 0;
font-family: monospace;
}
#functions {
background-color: white;
}
#members {
background-color: peachpuff;
}
#functions, #members {
border: 2px solid black;
font-family: monospace;
margin: 1em;
padding: 1em;
}
#functions div {
margin-left: 10em;
text-indent: -5em;
}
#functions div.function {
margin-left: 0;
text-indent: 0;
}
#JSLINT_OUTPUT {
text-align: left;
}
#JSLINT_INPUT{
border: 2px solid black;
color: black;
font-family: monospace;
height: 3in;
overflow: auto;
padding: 0.5em;
width: 100%;
}
#JSLINT_JSLINTSTRING {
background-color: peachpuff;
border: 2px solid black;
font-family: monospace;
margin: 1em;
padding: 1em;
}
#JSLINT_OPTIONS {
background-color: linen;
}
#JSLINT_TREE {
text-align: left;
}
</style></head>
<body>
<table border="0">
<tr>
<td><img src="jslint.gif" width="383" height="120" alt="JSLint"> </td>
<td valign="middle" align="left">
<p><big>The&nbsp;<a href="http://javascript.crockford.com/">JavaScript</a>&nbsp;Code Quality Tool</big></p>
<p id=JSLINT_EDITION></p>
<p>
<a href="http://www.JSLint.com/lint.html">Read the instructions.</a>&nbsp;
<a href="#JSLINT_OPTIONS">Set the options.</a>&nbsp;
<a href="http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb"
target="_blank">Enjoy&nbsp;<i>The Good Parts</i>.</a></p>
</td></tr></table>
<script src="fullwebjslint.js">
// fullwebjslint.js is the concatenation of
// json2.js + fulljslint.js + adsafe.js + intercept.js
</script>
<div id="JSLINT_">
<p style="background-color: transparent;"><textarea id="JSLINT_INPUT"></textarea></p>
<p>
<input type="button" name="jslint" value="JSLint">
&nbsp; &nbsp;
<input type="button" name="tree" value="Syntax Tree">
&nbsp; &nbsp;
<input type="button" name="clear" value="clear">
</p>
<br clear="all">
<div id="JSLINT_OUTPUT">
<div style="text-align: center;">Paste your program into the text box
above and click a&nbsp;<input type="button" name="jslint" value="JSLint">&nbsp;
button.</div>
<div style="text-align: center; margin: 1em; border: 2px solid black; padding: 1em; background-color: lightpink;">
WARNING:&nbsp;JSLint will hurt your feelings.
</div>
</div>
<pre id="JSLINT_TREE"></pre>
<br clear="all">
<p>
<input type="button" name="jslint" value="JSLint">
&nbsp; &nbsp;
<input type="button" name="tree" value="Syntax Tree">
&nbsp; &nbsp;
<input type="button" name="clear" value="clear">
</p>
<fieldset id="JSLINT_OPTIONS" style="background-color: linen;"><legend>Options</legend>
<div class="leftcolumn">
<input type="checkbox" id="JSLINT_WHITE" title="white" name=goodpart><label for="JSLINT_WHITE" title="white">Strict white space</label>
<br>
<input type="checkbox" id="JSLINT_ONEVAR" title="onevar" name=goodpart><label for="JSLINT_ONEVAR" title="onevar">Allow one&nbsp;<tt>var</tt>&nbsp;statement per function</label>
<br>
<input type="checkbox" id="JSLINT_UNDEF" title="undef" name=goodpart><label for="JSLINT_UNDEF" title="undef">Disallow undefined variables</label>
<br>
<input type="checkbox" id="JSLINT_NEWCAP" title="newcap" name=goodpart><label for="JSLINT_NEWCAP" title="newcap">Require Initial Caps for constructors</label>
<br>
<input type="checkbox" id="JSLINT_NOMEN" title="nomen" name=goodpart><label for="JSLINT_NOMEN" title="nomen">Disallow dangling&nbsp;<tt>_</tt>&nbsp;in identifiers</label>
<br>
<input type="checkbox" id="JSLINT_REGEXP" title="regexp" name=goodpart><label for="JSLINT_REGEXP" title="regexp">Disallow&nbsp;<tt>.</tt>&nbsp;and&nbsp;<tt>[^</tt>...<tt>]</tt>&nbsp;in&nbsp;/RegExp/</label>
<br>
<input type="checkbox" id="JSLINT_PLUSPLUS" title="plusplus" name=goodpart><label for="JSLINT_PLUSPLUS" title="plusplus">Disallow&nbsp;<tt>++</tt>&nbsp;and&nbsp;<tt>--</tt></label>
<br>
<input type="checkbox" id="JSLINT_BITWISE" title="bitwise" name=goodpart><label for="JSLINT_BITWISE" title="bitwise">Disallow bitwise operators</label>
<br>
<input type="checkbox" id="JSLINT_STRICT" title="strict"><label for="JSLINT_STRICT" title="strict">Require&nbsp;<tt>"use strict";</tt></label>
</div>
<div class="leftcolumn">
<input type="checkbox" id="JSLINT_PASSFAIL" title="passfail"><label for="JSLINT_PASSFAIL" title="passfail">Stop on first error</label>
<br>
<input type="checkbox" id="JSLINT_BROWSER" title="browser"><label for="JSLINT_BROWSER" title="browser">Assume a browser</label>
<br>
<input type="checkbox" id="JSLINT_DEVEL" title="devel"><label for="JSLINT_DEVEL" title="devel">Assume&nbsp;<code>console</code>,&nbsp;<code>alert</code>,&nbsp;...</label>
<br>
<input type="checkbox" id="JSLINT_RHINO" title="rhino"><label for="JSLINT_RHINO" title="rhino">Assume&nbsp;<a href="http://www.mozilla.org/rhino/">Rhino</a></label>
<br>
<input type="checkbox" id="JSLINT_WIDGET" title="widget"><label for="JSLINT_WIDGET" title="widget">Assume a&nbsp;<a href="http://widgets.yahoo.com/tools/">Yahoo Widget</a></label>
<br>
<input type="checkbox" id="JSLINT_WINDOWS" title="windows"><label for="JSLINT_WINDOWS" title="windows">Assume
Windows</label>
<br><br>
<input type="checkbox" id="JSLINT_SAFE" title="safe"><label for="JSLINT_SAFE" title="safe">Safe Subset</label>
<br>
<input type="checkbox" id="JSLINT_ADSAFE" title="adsafe"><label for="JSLINT_ADSAFE" title="adsafe"><a href="http://www.ADsafe.org">ADsafe</a></label>
</div>
<div class="leftcolumn">
<input type="checkbox" id="JSLINT_DEBUG" title="debug"><label for="JSLINT_DEBUG" title="debug">Tolerate&nbsp;<tt>debugger</tt>&nbsp;statements</label>
<br>
<input type="checkbox" id="JSLINT_EVIL" title="evil"><label for="JSLINT_EVIL" title="evil">Tolerate&nbsp;<tt>eval</tt></label>
<br>
<input type="checkbox" id="JSLINT_FORIN" title="forin"><label for="JSLINT_FORIN" title="forin">Tolerate&nbsp;<a href="http://yuiblog.com/blog/2006/09/26/for-in-intrigue/">unfiltered</a>&nbsp;<tt>for</tt> <tt>in</tt></label>
<br>
<input type="checkbox" id="JSLINT_SUB" title="sub"><label for="JSLINT_SUB" title="sub">Tolerate inefficient subscripting</label>
<br>
<input type="checkbox" id="JSLINT_CONTINUE" title="continue"><label for="JSLINT_CONTINUE" title="continue">Tolerate&nbsp;<tt>continue</tt></label>
<br>
<input type="checkbox" id="JSLINT_CSS" title="css"><label for="JSLINT_CSS" title="css">Tolerate CSS workarounds</label>
<br>
<input type="checkbox" id="JSLINT_CAP" title="cap"><label for="JSLINT_CAP" title="cap">Tolerate&nbsp;<tt>HTML</tt>&nbsp;case</label>
<br>
<input type="checkbox" id="JSLINT_ON" title="on"><label for="JSLINT_ON" title="on">Tolerate&nbsp;<tt>HTML</tt>&nbsp;event handlers</label>
<br>
<input type="checkbox" id="JSLINT_FRAGMENT" title="fragment"><label for="JSLINT_FRAGMENT" title="fragment">Tolerate&nbsp;<tt>HTML</tt>&nbsp;fragments</label>
<br>
<input type="checkbox" id="JSLINT_ESV" title="es5"><label for="JSLINT_ESV" title="es5">Tolerate ES5 syntax</label>
</div>
<div class="leftcolumn">
<input type="button" id="JSLINT_GOODPARTS" value="The Good Parts">
<br><br>
<input type="button" id="JSLINT_CLEARALL" value="Clear All Options">
</div>
<div class="leftcolumn">
<input id="JSLINT_INDENT" type="text" size="2" title="indent" value="" autocomplete=off> <label for="JSLINT_INDENT" title="indent">Indentation</label><br>
<input id="JSLINT_MAXLEN" type="text" size="2" title="maxlen" value="" autocomplete=off> <label for="JSLINT_MAXLEN" title="maxlen">Maximum line length</label><br>
<input id="JSLINT_MAXERR" type="text" size="2" title="maxerr" value="" autocomplete=off> <label for="JSLINT_MAXERR" title="maxerr">Maximum number of errors</label><br>
<label for="JSLINT_PREDEF">Predefined&nbsp;<small>(&nbsp;<code>,</code>&nbsp;separated)</small></label>&nbsp;<input id="JSLINT_PREDEF" type="text" size="72" autocomplete=off title=predef>
</div>
<br clear=all>
<p id=JSLINT_JSLINTSTRING></p>
</fieldset>
<p> Copyright 2002&nbsp;<a href="http://www.JSLint.com/lint.html">Douglas
Crockford.</a>&nbsp;<a target="_blank" href="http://www.crockford.com/">All
Rights Reserved Wrrrldwide and Beyond!</a> <br>
<a href="http://javascript.crockford.com/code.html" target="_blank">Code
Conventions for the JavaScript Programming Language.</a>
<a href="http://tech.groups.yahoo.com/group/jslint_com/" target="_blank">Join
the JSLint Group.</a> </p>
<script>
ADSAFE.id("JSLINT_");
</script>
<script src="fullinit_ui.js"></script>
<script>
ADSAFE.go("JSLINT_", function (dom, lib) {
"use strict";
lib.init_ui(dom);
});
</script>
</div>
<a href="http://www.JSLint.com/"><img src="jslintpill.gif" width="36" height="17" border="0"></a>
<a href="http://tech.groups.yahoo.com/group/jslint_com/"><img src="y.gif" width="31" height="17" border="0"></a>
<a href="https://github.com/douglascrockford/JSLint"><img src="github.gif" width="39" height="16" border="0"></a>
<a href="http://www.ADsafe.org/"><img src="adsafepill.gif" width="36" height="17" border="0"></a>
<a href="http://www.JSON.org/"><img src="jsonpill.gif" width="36" height="17" border="0"></a>
<a href="http://www.1and1.com/?k_id=10219574"><img src="1and1pill.gif" width="36" height="17" border="0"></a>
</body></html>
Jump to Line
Something went wrong with that request. Please try again.