@@ -1,3854 +0,0 @@
1-/*
2- * JSHint, by JSHint Community.
3- *
4- * Licensed under the same slightly modified MIT license that JSLint is.
5- * It stops evil-doers everywhere.
6- *
7- * JSHint is a derivative work of JSLint:
8- *
9- * Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
10- *
11- * Permission is hereby granted, free of charge, to any person obtaining
12- * a copy of this software and associated documentation files (the "Software"),
13- * to deal in the Software without restriction, including without limitation
14- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15- * and/or sell copies of the Software, and to permit persons to whom
16- * the Software is furnished to do so, subject to the following conditions:
17- *
18- * The above copyright notice and this permission notice shall be included
19- * in all copies or substantial portions of the Software.
20- *
21- * The Software shall be used for Good, not Evil.
22- *
23- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29- * DEALINGS IN THE SOFTWARE.
30- *
31- * JSHint was forked from 2010-12-16 edition of JSLint.
32- *
33- */
34-
35-/*
36- JSHINT is a global function. It takes two parameters.
37-
38- var myResult = JSHINT(source, option);
39-
40- The first parameter is either a string or an array of strings. If it is a
41- string, it will be split on '\n' or '\r'. If it is an array of strings, it
42- is assumed that each string represents one line. The source can be a
43- JavaScript text or a JSON text.
44-
45- The second parameter is an optional object of options which control the
46- operation of JSHINT. Most of the options are booleans: They are all
47- optional and have a default value of false. One of the options, predef,
48- can be an array of names, which will be used to declare global variables,
49- or an object whose keys are used as global names, with a boolean value
50- that determines if they are assignable.
51-
52- If it checks out, JSHINT returns true. Otherwise, it returns false.
53-
54- If false, you can inspect JSHINT.errors to find out the problems.
55- JSHINT.errors is an array of objects containing these members:
56-
57- {
58- line : The line (relative to 0) at which the lint was found
59- character : The character (relative to 0) at which the lint was found
60- reason : The problem
61- evidence : The text line in which the problem occurred
62- raw : The raw message before the details were inserted
63- a : The first detail
64- b : The second detail
65- c : The third detail
66- d : The fourth detail
67- }
68-
69- If a fatal error was found, a null will be the last element of the
70- JSHINT.errors array.
71-
72- You can request a Function Report, which shows all of the functions
73- and the parameters and vars that they use. This can be used to find
74- implied global variables and other problems. The report is in HTML and
75- can be inserted in an HTML <body>.
76-
77- var myReport = JSHINT.report(limited);
78-
79- If limited is true, then the report will be limited to only errors.
80-
81- You can request a data structure which contains JSHint's results.
82-
83- var myData = JSHINT.data();
84-
85- It returns a structure with this form:
86-
87- {
88- errors: [
89- {
90- line: NUMBER,
91- character: NUMBER,
92- reason: STRING,
93- evidence: STRING
94- }
95- ],
96- functions: [
97- name: STRING,
98- line: NUMBER,
99- last: NUMBER,
100- param: [
101- STRING
102- ],
103- closure: [
104- STRING
105- ],
106- var: [
107- STRING
108- ],
109- exception: [
110- STRING
111- ],
112- outer: [
113- STRING
114- ],
115- unused: [
116- STRING
117- ],
118- global: [
119- STRING
120- ],
121- label: [
122- STRING
Cut short: this commit's diff is over 1000 lines.