Skip to content
Browse files

Added Esprima support (though waiting on confirmation of my implement…

…ation)

Updated JSDuck config/script
Fixed JSHint error on LintRoller
Updated examples and documentation.
  • Loading branch information...
1 parent 0197d17 commit 4aa9e1a5bba952f32b1b7ddb757f409c612d01c8 @arthurakay committed Dec 18, 2012
View
2 docs/data.js
@@ -1 +1 @@
-Docs = {"data":{"search":[{"meta":{"author":["Arthur Kay (http://www.akawebdesign.com)"]},"fullName":"LintRoller","url":"#!/api/LintRoller","sort":1,"icon":"icon-singleton","name":"LintRoller"},{"meta":{"private":true},"fullName":"LintRoller.files","url":"#!/api/LintRoller-property-files","sort":3,"icon":"icon-property","name":"files"},{"meta":{"private":true},"fullName":"LintRoller.announceErrors","url":"#!/api/LintRoller-method-announceErrors","sort":3,"icon":"icon-method","name":"announceErrors"},{"meta":{"private":true},"fullName":"LintRoller.announceSuccess","url":"#!/api/LintRoller-method-announceSuccess","sort":3,"icon":"icon-method","name":"announceSuccess"},{"meta":{"private":true},"fullName":"LintRoller.getFiles","url":"#!/api/LintRoller-method-getFiles","sort":3,"icon":"icon-method","name":"getFiles"},{"meta":{},"fullName":"LintRoller.init","url":"#!/api/LintRoller-method-init","sort":3,"icon":"icon-method","name":"init"},{"meta":{"private":true},"fullName":"LintRoller.initConfigs","url":"#!/api/LintRoller-method-initConfigs","sort":3,"icon":"icon-method","name":"initConfigs"},{"meta":{"private":true},"fullName":"LintRoller.lintFiles","url":"#!/api/LintRoller-method-lintFiles","sort":3,"icon":"icon-method","name":"lintFiles"},{"meta":{"private":true},"fullName":"LintRoller.log","url":"#!/api/LintRoller-method-log","sort":3,"icon":"icon-method","name":"log"},{"meta":{"private":true},"fullName":"LintRoller.logToFile","url":"#!/api/LintRoller-method-logToFile","sort":3,"icon":"icon-method","name":"logToFile"},{"meta":{"private":true},"fullName":"LintRoller.parseTree","url":"#!/api/LintRoller-method-parseTree","sort":3,"icon":"icon-method","name":"parseTree"},{"meta":{"private":true},"fullName":"LintRoller.setLinters","url":"#!/api/LintRoller-method-setLinters","sort":3,"icon":"icon-method","name":"setLinters"},{"meta":{},"fullName":"LintRoller.exclusions","url":"#!/api/LintRoller-cfg-exclusions","sort":3,"icon":"icon-cfg","name":"exclusions"},{"meta":{},"fullName":"LintRoller.filepaths","url":"#!/api/LintRoller-cfg-filepaths","sort":3,"icon":"icon-cfg","name":"filepaths"},{"meta":{},"fullName":"LintRoller.linters","url":"#!/api/LintRoller-cfg-linters","sort":3,"icon":"icon-cfg","name":"linters"},{"meta":{},"fullName":"LintRoller.logFile","url":"#!/api/LintRoller-cfg-logFile","sort":3,"icon":"icon-cfg","name":"logFile"},{"meta":{},"fullName":"LintRoller.stopOnFirstError","url":"#!/api/LintRoller-cfg-stopOnFirstError","sort":3,"icon":"icon-cfg","name":"stopOnFirstError"},{"meta":{},"fullName":"LintRoller.verbose","url":"#!/api/LintRoller-cfg-verbose","sort":3,"icon":"icon-cfg","name":"verbose"},{"meta":{},"fullName":"LintRoller.util","url":"#!/api/LintRoller.util","sort":1,"icon":"icon-singleton","name":"util"},{"meta":{"private":true},"fullName":"LintRoller.util.findLintErrors","url":"#!/api/LintRoller.util-method-findLintErrors","sort":3,"icon":"icon-method","name":"findLintErrors"},{"meta":{"private":true},"fullName":"LintRoller.util.fixOffendingFiles","url":"#!/api/LintRoller.util-method-fixOffendingFiles","sort":3,"icon":"icon-method","name":"fixOffendingFiles"},{"meta":{"private":true},"fullName":"LintRoller.util.init","url":"#!/api/LintRoller.util-method-init","sort":3,"icon":"icon-method","name":"init"},{"meta":{"private":true},"fullName":"LintRoller.util.locateOffenders","url":"#!/api/LintRoller.util-method-locateOffenders","sort":3,"icon":"icon-method","name":"locateOffenders"},{"meta":{},"fullName":"LintRoller.util.replaceTabsWithSpaces","url":"#!/api/LintRoller.util-method-replaceTabsWithSpaces","sort":3,"icon":"icon-method","name":"replaceTabsWithSpaces"},{"meta":{},"fullName":"LintRoller.linters.JSLint","url":"#!/api/LintRoller.linters.JSLint","sort":1,"icon":"icon-class","name":"JSLint"},{"meta":{},"fullName":"LintRoller.linters.JSLint.lib","url":"#!/api/LintRoller.linters.JSLint-property-lib","sort":3,"icon":"icon-property","name":"lib"},{"meta":{"private":true},"fullName":"LintRoller.linters.JSLint.applyLintOptions","url":"#!/api/LintRoller.linters.JSLint-method-applyLintOptions","sort":3,"icon":"icon-method","name":"applyLintOptions"},{"meta":{"private":true},"fullName":"LintRoller.linters.JSLint.runLinter","url":"#!/api/LintRoller.linters.JSLint-method-runLinter","sort":3,"icon":"icon-method","name":"runLinter"},{"meta":{},"fullName":"LintRoller.linters.JSLint.options","url":"#!/api/LintRoller.linters.JSLint-cfg-options","sort":3,"icon":"icon-cfg","name":"options"},{"meta":{},"fullName":"LintRoller.linters.JSHint","url":"#!/api/LintRoller.linters.JSHint","sort":1,"icon":"icon-class","name":"JSHint"},{"meta":{},"fullName":"LintRoller.linters.JSHint.lib","url":"#!/api/LintRoller.linters.JSHint-property-lib","sort":3,"icon":"icon-property","name":"lib"},{"meta":{"private":true},"fullName":"LintRoller.linters.JSHint.applyLintOptions","url":"#!/api/LintRoller.linters.JSHint-method-applyLintOptions","sort":3,"icon":"icon-method","name":"applyLintOptions"},{"meta":{"private":true},"fullName":"LintRoller.linters.JSHint.runLinter","url":"#!/api/LintRoller.linters.JSHint-method-runLinter","sort":3,"icon":"icon-method","name":"runLinter"},{"meta":{},"fullName":"LintRoller.linters.JSHint.options","url":"#!/api/LintRoller.linters.JSHint-cfg-options","sort":3,"icon":"icon-cfg","name":"options"}],"showPrintButton":false,"examples":[],"guides":[],"source":true,"stats":[],"touchExamplesUi":false,"tests":false,"videos":[],"classes":[{"private":null,"extends":null,"icon":"icon-singleton","name":"LintRoller"},{"private":null,"extends":null,"icon":"icon-singleton","name":"LintRoller.util"},{"private":null,"extends":null,"icon":"icon-class","name":"LintRoller.linters.JSLint"},{"private":null,"extends":null,"icon":"icon-class","name":"LintRoller.linters.JSHint"}],"signatures":[{"key":"abstract","short":"ABS","long":"abstract"},{"key":"deprecated","short":"DEP","long":"deprecated"},{"key":"preventable","short":"PREV","long":"preventable"},{"key":"private","short":"PRI","long":"private"},{"key":"protected","short":"PRO","long":"protected"},{"key":"readonly","short":"R O","long":"readonly"},{"key":"removed","short":"REM","long":"removed"},{"key":"required","short":"REQ","long":"required"},{"key":"static","short":"STA","long":"static"},{"key":"template","short":"TMP","long":"template"}],"localStorageDb":"docs"}};
+Docs = {"data":{"search":[{"meta":{},"fullName":"LintRoller.linters.Esprima","url":"#!/api/LintRoller.linters.Esprima","sort":1,"icon":"icon-class","name":"Esprima"},{"meta":{"private":true},"fullName":"LintRoller.linters.Esprima.applyLintOptions","url":"#!/api/LintRoller.linters.Esprima-method-applyLintOptions","sort":3,"icon":"icon-method","name":"applyLintOptions"},{"meta":{"private":true},"fullName":"LintRoller.linters.Esprima.runLinter","url":"#!/api/LintRoller.linters.Esprima-method-runLinter","sort":3,"icon":"icon-method","name":"runLinter"},{"meta":{},"fullName":"LintRoller.linters.Esprima.options","url":"#!/api/LintRoller.linters.Esprima-cfg-options","sort":3,"icon":"icon-cfg","name":"options"},{"meta":{},"fullName":"LintRoller.linters.JSHint","url":"#!/api/LintRoller.linters.JSHint","sort":1,"icon":"icon-class","name":"JSHint"},{"meta":{},"fullName":"LintRoller.linters.JSHint.lib","url":"#!/api/LintRoller.linters.JSHint-property-lib","sort":3,"icon":"icon-property","name":"lib"},{"meta":{"private":true},"fullName":"LintRoller.linters.JSHint.applyLintOptions","url":"#!/api/LintRoller.linters.JSHint-method-applyLintOptions","sort":3,"icon":"icon-method","name":"applyLintOptions"},{"meta":{"private":true},"fullName":"LintRoller.linters.JSHint.runLinter","url":"#!/api/LintRoller.linters.JSHint-method-runLinter","sort":3,"icon":"icon-method","name":"runLinter"},{"meta":{},"fullName":"LintRoller.linters.JSHint.options","url":"#!/api/LintRoller.linters.JSHint-cfg-options","sort":3,"icon":"icon-cfg","name":"options"},{"meta":{},"fullName":"LintRoller.linters.JSLint","url":"#!/api/LintRoller.linters.JSLint","sort":1,"icon":"icon-class","name":"JSLint"},{"meta":{},"fullName":"LintRoller.linters.JSLint.lib","url":"#!/api/LintRoller.linters.JSLint-property-lib","sort":3,"icon":"icon-property","name":"lib"},{"meta":{"private":true},"fullName":"LintRoller.linters.JSLint.applyLintOptions","url":"#!/api/LintRoller.linters.JSLint-method-applyLintOptions","sort":3,"icon":"icon-method","name":"applyLintOptions"},{"meta":{"private":true},"fullName":"LintRoller.linters.JSLint.runLinter","url":"#!/api/LintRoller.linters.JSLint-method-runLinter","sort":3,"icon":"icon-method","name":"runLinter"},{"meta":{},"fullName":"LintRoller.linters.JSLint.options","url":"#!/api/LintRoller.linters.JSLint-cfg-options","sort":3,"icon":"icon-cfg","name":"options"},{"meta":{"author":["Arthur Kay (http://www.akawebdesign.com)"]},"fullName":"LintRoller","url":"#!/api/LintRoller","sort":1,"icon":"icon-singleton","name":"LintRoller"},{"meta":{"private":true},"fullName":"LintRoller.files","url":"#!/api/LintRoller-property-files","sort":3,"icon":"icon-property","name":"files"},{"meta":{"private":true},"fullName":"LintRoller.announceErrors","url":"#!/api/LintRoller-method-announceErrors","sort":3,"icon":"icon-method","name":"announceErrors"},{"meta":{"private":true},"fullName":"LintRoller.announceSuccess","url":"#!/api/LintRoller-method-announceSuccess","sort":3,"icon":"icon-method","name":"announceSuccess"},{"meta":{"private":true},"fullName":"LintRoller.getFiles","url":"#!/api/LintRoller-method-getFiles","sort":3,"icon":"icon-method","name":"getFiles"},{"meta":{},"fullName":"LintRoller.init","url":"#!/api/LintRoller-method-init","sort":3,"icon":"icon-method","name":"init"},{"meta":{"private":true},"fullName":"LintRoller.initConfigs","url":"#!/api/LintRoller-method-initConfigs","sort":3,"icon":"icon-method","name":"initConfigs"},{"meta":{"private":true},"fullName":"LintRoller.lintFiles","url":"#!/api/LintRoller-method-lintFiles","sort":3,"icon":"icon-method","name":"lintFiles"},{"meta":{"private":true},"fullName":"LintRoller.log","url":"#!/api/LintRoller-method-log","sort":3,"icon":"icon-method","name":"log"},{"meta":{"private":true},"fullName":"LintRoller.logToFile","url":"#!/api/LintRoller-method-logToFile","sort":3,"icon":"icon-method","name":"logToFile"},{"meta":{"private":true},"fullName":"LintRoller.parseTree","url":"#!/api/LintRoller-method-parseTree","sort":3,"icon":"icon-method","name":"parseTree"},{"meta":{"private":true},"fullName":"LintRoller.setLinters","url":"#!/api/LintRoller-method-setLinters","sort":3,"icon":"icon-method","name":"setLinters"},{"meta":{},"fullName":"LintRoller.exclusions","url":"#!/api/LintRoller-cfg-exclusions","sort":3,"icon":"icon-cfg","name":"exclusions"},{"meta":{},"fullName":"LintRoller.filepaths","url":"#!/api/LintRoller-cfg-filepaths","sort":3,"icon":"icon-cfg","name":"filepaths"},{"meta":{},"fullName":"LintRoller.linters","url":"#!/api/LintRoller-cfg-linters","sort":3,"icon":"icon-cfg","name":"linters"},{"meta":{},"fullName":"LintRoller.logFile","url":"#!/api/LintRoller-cfg-logFile","sort":3,"icon":"icon-cfg","name":"logFile"},{"meta":{},"fullName":"LintRoller.stopOnFirstError","url":"#!/api/LintRoller-cfg-stopOnFirstError","sort":3,"icon":"icon-cfg","name":"stopOnFirstError"},{"meta":{},"fullName":"LintRoller.verbose","url":"#!/api/LintRoller-cfg-verbose","sort":3,"icon":"icon-cfg","name":"verbose"},{"meta":{},"fullName":"LintRoller.util","url":"#!/api/LintRoller.util","sort":1,"icon":"icon-singleton","name":"util"},{"meta":{"private":true},"fullName":"LintRoller.util.findLintErrors","url":"#!/api/LintRoller.util-method-findLintErrors","sort":3,"icon":"icon-method","name":"findLintErrors"},{"meta":{"private":true},"fullName":"LintRoller.util.fixOffendingFiles","url":"#!/api/LintRoller.util-method-fixOffendingFiles","sort":3,"icon":"icon-method","name":"fixOffendingFiles"},{"meta":{"private":true},"fullName":"LintRoller.util.init","url":"#!/api/LintRoller.util-method-init","sort":3,"icon":"icon-method","name":"init"},{"meta":{"private":true},"fullName":"LintRoller.util.locateOffenders","url":"#!/api/LintRoller.util-method-locateOffenders","sort":3,"icon":"icon-method","name":"locateOffenders"},{"meta":{},"fullName":"LintRoller.util.replaceTabsWithSpaces","url":"#!/api/LintRoller.util-method-replaceTabsWithSpaces","sort":3,"icon":"icon-method","name":"replaceTabsWithSpaces"}],"showPrintButton":false,"examples":[],"guides":[],"source":true,"stats":[],"touchExamplesUi":false,"tests":false,"videos":[],"classes":[{"private":null,"extends":null,"icon":"icon-class","name":"LintRoller.linters.Esprima"},{"private":null,"extends":null,"icon":"icon-class","name":"LintRoller.linters.JSHint"},{"private":null,"extends":null,"icon":"icon-class","name":"LintRoller.linters.JSLint"},{"private":null,"extends":null,"icon":"icon-singleton","name":"LintRoller"},{"private":null,"extends":null,"icon":"icon-singleton","name":"LintRoller.util"}],"signatures":[{"key":"abstract","short":"ABS","long":"abstract"},{"key":"deprecated","short":"DEP","long":"deprecated"},{"key":"preventable","short":"PREV","long":"preventable"},{"key":"private","short":"PRI","long":"private"},{"key":"protected","short":"PRO","long":"protected"},{"key":"readonly","short":"R O","long":"readonly"},{"key":"removed","short":"REM","long":"removed"},{"key":"required","short":"REQ","long":"required"},{"key":"static","short":"STA","long":"static"},{"key":"template","short":"TMP","long":"template"}],"localStorageDb":"docs"}};
View
1 docs/index.html
@@ -31,6 +31,7 @@
<div class='left-column'>
<h3>linters</h3>
<div class='links'>
+<a href="#!/api/LintRoller.linters.Esprima" rel="LintRoller.linters.Esprima" class="docClass">LintRoller.linters.Esprima</a>
<a href="#!/api/LintRoller.linters.JSHint" rel="LintRoller.linters.JSHint" class="docClass">LintRoller.linters.JSHint</a>
<a href="#!/api/LintRoller.linters.JSLint" rel="LintRoller.linters.JSLint" class="docClass">LintRoller.linters.JSLint</a>
</div>
View
2 docs/output/LintRoller.js
@@ -1 +1 @@
-Ext.data.JsonP.LintRoller({"mixedInto":[],"mixins":[],"code_type":"assignment","inheritable":false,"parentMixins":[],"meta":{"author":["Arthur Kay (http://www.akawebdesign.com)"]},"uses":[],"aliases":{},"superclasses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/LintRoller.html#LintRoller' target='_blank'>LintRoller.js</a></div></pre><div class='doc-contents'><p>@version 2.2.0</p>\n\n<p>GitHub Project: http://arthurakay.github.com/LintRoller/</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-exclusions' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-exclusions' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-exclusions' class='name expandable'>exclusions</a><span> : Array</span></div><div class='description'><div class='short'>REQUIRED. ...</div><div class='long'><p>REQUIRED. An array of relative filepaths to the folders containing JS files that should NOT be linted</p>\n</div></div></div><div id='cfg-filepaths' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-filepaths' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-filepaths' class='name expandable'>filepaths</a><span> : Array</span></div><div class='description'><div class='short'>REQUIRED. ...</div><div class='long'><p>REQUIRED. An array of relative filepaths to the folders containing JS files</p>\n</div></div></div><div id='cfg-linters' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-linters' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-linters' class='name expandable'>linters</a><span> : Array</span></div><div class='description'><div class='short'>An array of lint module config objects. ...</div><div class='long'><p>An array of lint module config objects. See the classes under <a href=\"#!/api/LintRoller-cfg-linters\" rel=\"LintRoller-cfg-linters\" class=\"docClass\">LintRoller.linters</a> for more information.</p>\n<p>Defaults to: <code>[]</code></p></div></div></div><div id='cfg-logFile' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-logFile' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-logFile' class='name expandable'>logFile</a><span> : String</span></div><div class='description'><div class='short'>A relative filepath to where error messages will be logged. ...</div><div class='long'><p>A relative filepath to where error messages will be logged.</p>\n<p>Defaults to: <code>&quot;error_log.txt&quot;</code></p></div></div></div><div id='cfg-stopOnFirstError' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-stopOnFirstError' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-stopOnFirstError' class='name expandable'>stopOnFirstError</a><span> : Boolean</span></div><div class='description'><div class='short'>True to stop linting your code when the first error is encountered. ...</div><div class='long'><p>True to stop linting your code when the first error is encountered.</p>\n<p>Defaults to: <code>true</code></p></div></div></div><div id='cfg-verbose' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-verbose' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-verbose' class='name expandable'>verbose</a><span> : Boolean</span></div><div class='description'><div class='short'>True to show verbose ouput in the terminal. ...</div><div class='long'><p>True to show verbose ouput in the terminal.</p>\n<p>Defaults to: <code>true</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-property'>Properties</h3><div class='subsection'><div id='property-files' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-property-files' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-property-files' class='name expandable'>files</a><span> : Array</span><strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<p>Defaults to: <code>[]</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-announceErrors' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-announceErrors' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-announceErrors' class='name expandable'>announceErrors</a>( <span class='pre'>Object errorList</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>errorList</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-announceSuccess' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-announceSuccess' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-announceSuccess' class='name expandable'>announceSuccess</a>( <span class='pre'></span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n</div></div></div><div id='method-getFiles' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-getFiles' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-getFiles' class='name expandable'>getFiles</a>( <span class='pre'>Object path</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>path</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-init' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-init' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-init' class='name expandable'>init</a>( <span class='pre'>Object config</span> )</div><div class='description'><div class='short'>Call this method to de-lint your JavaScript codebase. ...</div><div class='long'><p>Call this method to de-lint your JavaScript codebase.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>config</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-initConfigs' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-initConfigs' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-initConfigs' class='name expandable'>initConfigs</a>( <span class='pre'>Object config</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>config</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-lintFiles' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-lintFiles' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-lintFiles' class='name expandable'>lintFiles</a>( <span class='pre'></span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n</div></div></div><div id='method-log' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-log' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-log' class='name expandable'>log</a>( <span class='pre'>Object msg, Object override</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>msg</span> : Object<div class='sub-desc'>\n</div></li><li><span class='pre'>override</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-logToFile' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-logToFile' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-logToFile' class='name expandable'>logToFile</a>( <span class='pre'>Object errorList</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>errorList</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-parseTree' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-parseTree' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-parseTree' class='name expandable'>parseTree</a>( <span class='pre'>Object pathConfig</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>pathConfig</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-setLinters' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-setLinters' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-setLinters' class='name expandable'>setLinters</a>( <span class='pre'>Object linters</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>linters</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","subclasses":[],"members":{"event":[],"property":[{"meta":{"private":true},"owner":"LintRoller","tagname":"property","name":"files","id":"property-files"}],"css_var":[],"method":[{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"announceErrors","id":"method-announceErrors"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"announceSuccess","id":"method-announceSuccess"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"getFiles","id":"method-getFiles"},{"meta":{},"owner":"LintRoller","tagname":"method","name":"init","id":"method-init"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"initConfigs","id":"method-initConfigs"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"lintFiles","id":"method-lintFiles"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"log","id":"method-log"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"logToFile","id":"method-logToFile"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"parseTree","id":"method-parseTree"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"setLinters","id":"method-setLinters"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"exclusions","id":"cfg-exclusions"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"filepaths","id":"cfg-filepaths"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"linters","id":"cfg-linters"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"logFile","id":"cfg-logFile"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"stopOnFirstError","id":"cfg-stopOnFirstError"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"verbose","id":"cfg-verbose"}]},"html_meta":{"author":null},"tagname":"class","extends":null,"name":"LintRoller","alternateClassNames":[],"inheritdoc":null,"component":false,"singleton":true,"id":"class-LintRoller","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[],"files":[{"href":"LintRoller.html#LintRoller","filename":"LintRoller.js"}]});
+Ext.data.JsonP.LintRoller({"mixedInto":[],"mixins":[],"code_type":"assignment","inheritable":false,"parentMixins":[],"meta":{"author":["Arthur Kay (http://www.akawebdesign.com)"]},"uses":[],"aliases":{},"superclasses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/LintRoller.html#LintRoller' target='_blank'>LintRoller.js</a></div></pre><div class='doc-contents'><p>@version 2.2.1</p>\n\n<p>GitHub Project: http://arthurakay.github.com/LintRoller/</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-exclusions' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-exclusions' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-exclusions' class='name expandable'>exclusions</a><span> : Array</span></div><div class='description'><div class='short'>REQUIRED. ...</div><div class='long'><p>REQUIRED. An array of relative filepaths to the folders containing JS files that should NOT be linted</p>\n</div></div></div><div id='cfg-filepaths' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-filepaths' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-filepaths' class='name expandable'>filepaths</a><span> : Array</span></div><div class='description'><div class='short'>REQUIRED. ...</div><div class='long'><p>REQUIRED. An array of relative filepaths to the folders containing JS files</p>\n</div></div></div><div id='cfg-linters' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-linters' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-linters' class='name expandable'>linters</a><span> : Array</span></div><div class='description'><div class='short'>An array of lint module config objects. ...</div><div class='long'><p>An array of lint module config objects. See the classes under <a href=\"#!/api/LintRoller-cfg-linters\" rel=\"LintRoller-cfg-linters\" class=\"docClass\">LintRoller.linters</a> for more information.</p>\n<p>Defaults to: <code>[]</code></p></div></div></div><div id='cfg-logFile' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-logFile' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-logFile' class='name expandable'>logFile</a><span> : String</span></div><div class='description'><div class='short'>A relative filepath to where error messages will be logged. ...</div><div class='long'><p>A relative filepath to where error messages will be logged.</p>\n<p>Defaults to: <code>&quot;error_log.txt&quot;</code></p></div></div></div><div id='cfg-stopOnFirstError' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-stopOnFirstError' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-stopOnFirstError' class='name expandable'>stopOnFirstError</a><span> : Boolean</span></div><div class='description'><div class='short'>True to stop linting your code when the first error is encountered. ...</div><div class='long'><p>True to stop linting your code when the first error is encountered.</p>\n<p>Defaults to: <code>true</code></p></div></div></div><div id='cfg-verbose' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-cfg-verbose' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-verbose' class='name expandable'>verbose</a><span> : Boolean</span></div><div class='description'><div class='short'>True to show verbose ouput in the terminal. ...</div><div class='long'><p>True to show verbose ouput in the terminal.</p>\n<p>Defaults to: <code>true</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-property'>Properties</h3><div class='subsection'><div id='property-files' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-property-files' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-property-files' class='name expandable'>files</a><span> : Array</span><strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<p>Defaults to: <code>[]</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-announceErrors' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-announceErrors' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-announceErrors' class='name expandable'>announceErrors</a>( <span class='pre'>Object errorList</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>errorList</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-announceSuccess' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-announceSuccess' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-announceSuccess' class='name expandable'>announceSuccess</a>( <span class='pre'></span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n</div></div></div><div id='method-getFiles' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-getFiles' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-getFiles' class='name expandable'>getFiles</a>( <span class='pre'>Object path</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>path</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-init' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-init' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-init' class='name expandable'>init</a>( <span class='pre'>Object config</span> )</div><div class='description'><div class='short'>Call this method to de-lint your JavaScript codebase. ...</div><div class='long'><p>Call this method to de-lint your JavaScript codebase.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>config</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-initConfigs' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-initConfigs' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-initConfigs' class='name expandable'>initConfigs</a>( <span class='pre'>Object config</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>config</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-lintFiles' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-lintFiles' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-lintFiles' class='name expandable'>lintFiles</a>( <span class='pre'></span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n</div></div></div><div id='method-log' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-log' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-log' class='name expandable'>log</a>( <span class='pre'>Object msg, Object override</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>msg</span> : Object<div class='sub-desc'>\n</div></li><li><span class='pre'>override</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-logToFile' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-logToFile' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-logToFile' class='name expandable'>logToFile</a>( <span class='pre'>Object errorList</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>errorList</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-parseTree' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-parseTree' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-parseTree' class='name expandable'>parseTree</a>( <span class='pre'>Object pathConfig</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>pathConfig</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-setLinters' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller'>LintRoller</span><br/><a href='source/LintRoller.html#LintRoller-method-setLinters' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-setLinters' class='name expandable'>setLinters</a>( <span class='pre'>Object linters</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>linters</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","subclasses":[],"members":{"event":[],"property":[{"meta":{"private":true},"owner":"LintRoller","tagname":"property","name":"files","id":"property-files"}],"css_var":[],"method":[{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"announceErrors","id":"method-announceErrors"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"announceSuccess","id":"method-announceSuccess"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"getFiles","id":"method-getFiles"},{"meta":{},"owner":"LintRoller","tagname":"method","name":"init","id":"method-init"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"initConfigs","id":"method-initConfigs"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"lintFiles","id":"method-lintFiles"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"log","id":"method-log"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"logToFile","id":"method-logToFile"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"parseTree","id":"method-parseTree"},{"meta":{"private":true},"owner":"LintRoller","tagname":"method","name":"setLinters","id":"method-setLinters"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"exclusions","id":"cfg-exclusions"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"filepaths","id":"cfg-filepaths"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"linters","id":"cfg-linters"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"logFile","id":"cfg-logFile"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"stopOnFirstError","id":"cfg-stopOnFirstError"},{"meta":{},"owner":"LintRoller","tagname":"cfg","name":"verbose","id":"cfg-verbose"}]},"html_meta":{"author":null},"tagname":"class","extends":null,"name":"LintRoller","alternateClassNames":[],"inheritdoc":null,"component":false,"singleton":true,"id":"class-LintRoller","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[],"files":[{"href":"LintRoller.html#LintRoller","filename":"LintRoller.js"}]});
View
1 docs/output/LintRoller.linters.Esprima.js
@@ -0,0 +1 @@
+Ext.data.JsonP.LintRoller_linters_Esprima({"mixedInto":[],"mixins":[],"code_type":"assignment","inheritable":false,"parentMixins":[],"meta":{},"uses":[],"aliases":{},"superclasses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/esprima.html#LintRoller-linters-Esprima' target='_blank'>esprima.js</a></div></pre><div class='doc-contents'><p>Created automatically if a { type : 'esprima' } config is passed to the linters array.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-options' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.Esprima'>LintRoller.linters.Esprima</span><br/><a href='source/esprima.html#LintRoller-linters-Esprima-cfg-options' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.Esprima-cfg-options' class='name expandable'>options</a><span> : Object</span></div><div class='description'><div class='short'>An object containing lint validation options ...</div><div class='long'><p>An object containing lint validation options</p>\n<p>Defaults to: <code>{tolerant: true}</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-applyLintOptions' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.Esprima'>LintRoller.linters.Esprima</span><br/><a href='source/esprima.html#LintRoller-linters-Esprima-method-applyLintOptions' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.Esprima-method-applyLintOptions' class='name expandable'>applyLintOptions</a>( <span class='pre'>Object options</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>options</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-runLinter' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.Esprima'>LintRoller.linters.Esprima</span><br/><a href='source/esprima.html#LintRoller-linters-Esprima-method-runLinter' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.Esprima-method-runLinter' class='name expandable'>runLinter</a>( <span class='pre'>Object parentModule</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>parentModule</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","subclasses":[],"members":{"event":[],"property":[],"css_var":[],"method":[{"meta":{"private":true},"owner":"LintRoller.linters.Esprima","tagname":"method","name":"applyLintOptions","id":"method-applyLintOptions"},{"meta":{"private":true},"owner":"LintRoller.linters.Esprima","tagname":"method","name":"runLinter","id":"method-runLinter"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"LintRoller.linters.Esprima","tagname":"cfg","name":"options","id":"cfg-options"}]},"html_meta":{},"tagname":"class","extends":null,"name":"LintRoller.linters.Esprima","alternateClassNames":[],"inheritdoc":null,"component":false,"singleton":false,"id":"class-LintRoller.linters.Esprima","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[],"files":[{"href":"esprima.html#LintRoller-linters-Esprima","filename":"esprima.js"}]});
View
2 docs/output/LintRoller.linters.JSHint.js
@@ -1 +1 @@
-Ext.data.JsonP.LintRoller_linters_JSHint({"mixedInto":[],"mixins":[],"code_type":"assignment","inheritable":false,"parentMixins":[],"meta":{},"uses":[],"aliases":{},"superclasses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/jsHint.html#LintRoller-linters-JSHint' target='_blank'>jsHint.js</a></div></pre><div class='doc-contents'><p>Created automatically if a { type : 'jsHint' } config is passed to the linters array.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-options' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSHint'>LintRoller.linters.JSHint</span><br/><a href='source/jsHint.html#LintRoller-linters-JSHint-cfg-options' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSHint-cfg-options' class='name expandable'>options</a><span> : Object</span></div><div class='description'><div class='short'>An object containing lint validation options ...</div><div class='long'><p>An object containing lint validation options</p>\n<p>Defaults to: <code>{}</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-property'>Properties</h3><div class='subsection'><div id='property-lib' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSHint'>LintRoller.linters.JSHint</span><br/><a href='source/jsHint.html#LintRoller-linters-JSHint-property-lib' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSHint-property-lib' class='name not-expandable'>lib</a><span> : Object</span></div><div class='description'><div class='short'><p>JSHint</p>\n</div><div class='long'><p>JSHint</p>\n</div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-applyLintOptions' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSHint'>LintRoller.linters.JSHint</span><br/><a href='source/jsHint.html#LintRoller-linters-JSHint-method-applyLintOptions' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSHint-method-applyLintOptions' class='name expandable'>applyLintOptions</a>( <span class='pre'>Object options</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>options</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-runLinter' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSHint'>LintRoller.linters.JSHint</span><br/><a href='source/jsHint.html#LintRoller-linters-JSHint-method-runLinter' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSHint-method-runLinter' class='name expandable'>runLinter</a>( <span class='pre'>Object parentModule</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>parentModule</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","subclasses":[],"members":{"event":[],"property":[{"meta":{},"owner":"LintRoller.linters.JSHint","tagname":"property","name":"lib","id":"property-lib"}],"css_var":[],"method":[{"meta":{"private":true},"owner":"LintRoller.linters.JSHint","tagname":"method","name":"applyLintOptions","id":"method-applyLintOptions"},{"meta":{"private":true},"owner":"LintRoller.linters.JSHint","tagname":"method","name":"runLinter","id":"method-runLinter"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"LintRoller.linters.JSHint","tagname":"cfg","name":"options","id":"cfg-options"}]},"html_meta":{},"tagname":"class","extends":null,"name":"LintRoller.linters.JSHint","alternateClassNames":[],"inheritdoc":null,"component":false,"singleton":false,"id":"class-LintRoller.linters.JSHint","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[],"files":[{"href":"jsHint.html#LintRoller-linters-JSHint","filename":"jsHint.js"}]});
+Ext.data.JsonP.LintRoller_linters_JSHint({"mixedInto":[],"mixins":[],"code_type":"assignment","inheritable":false,"parentMixins":[],"meta":{},"uses":[],"aliases":{},"superclasses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/jshint.html#LintRoller-linters-JSHint' target='_blank'>jshint.js</a></div></pre><div class='doc-contents'><p>Created automatically if a { type : 'jsHint' } config is passed to the linters array.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-options' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSHint'>LintRoller.linters.JSHint</span><br/><a href='source/jshint.html#LintRoller-linters-JSHint-cfg-options' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSHint-cfg-options' class='name expandable'>options</a><span> : Object</span></div><div class='description'><div class='short'>An object containing lint validation options ...</div><div class='long'><p>An object containing lint validation options</p>\n<p>Defaults to: <code>{}</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-property'>Properties</h3><div class='subsection'><div id='property-lib' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSHint'>LintRoller.linters.JSHint</span><br/><a href='source/jshint.html#LintRoller-linters-JSHint-property-lib' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSHint-property-lib' class='name not-expandable'>lib</a><span> : Object</span></div><div class='description'><div class='short'><p>JSHint</p>\n</div><div class='long'><p>JSHint</p>\n</div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-applyLintOptions' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSHint'>LintRoller.linters.JSHint</span><br/><a href='source/jshint.html#LintRoller-linters-JSHint-method-applyLintOptions' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSHint-method-applyLintOptions' class='name expandable'>applyLintOptions</a>( <span class='pre'>Object options</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>options</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-runLinter' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSHint'>LintRoller.linters.JSHint</span><br/><a href='source/jshint.html#LintRoller-linters-JSHint-method-runLinter' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSHint-method-runLinter' class='name expandable'>runLinter</a>( <span class='pre'>Object parentModule</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>parentModule</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","subclasses":[],"members":{"event":[],"property":[{"meta":{},"owner":"LintRoller.linters.JSHint","tagname":"property","name":"lib","id":"property-lib"}],"css_var":[],"method":[{"meta":{"private":true},"owner":"LintRoller.linters.JSHint","tagname":"method","name":"applyLintOptions","id":"method-applyLintOptions"},{"meta":{"private":true},"owner":"LintRoller.linters.JSHint","tagname":"method","name":"runLinter","id":"method-runLinter"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"LintRoller.linters.JSHint","tagname":"cfg","name":"options","id":"cfg-options"}]},"html_meta":{},"tagname":"class","extends":null,"name":"LintRoller.linters.JSHint","alternateClassNames":[],"inheritdoc":null,"component":false,"singleton":false,"id":"class-LintRoller.linters.JSHint","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[],"files":[{"href":"jshint.html#LintRoller-linters-JSHint","filename":"jshint.js"}]});
View
2 docs/output/LintRoller.linters.JSLint.js
@@ -1 +1 @@
-Ext.data.JsonP.LintRoller_linters_JSLint({"mixedInto":[],"mixins":[],"code_type":"assignment","inheritable":false,"parentMixins":[],"meta":{},"uses":[],"aliases":{},"superclasses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/jsLint.html#LintRoller-linters-JSLint' target='_blank'>jsLint.js</a></div></pre><div class='doc-contents'><p>Created automatically if a { type : 'jsLint' } config is passed to the linters array.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-options' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSLint'>LintRoller.linters.JSLint</span><br/><a href='source/jsLint.html#LintRoller-linters-JSLint-cfg-options' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSLint-cfg-options' class='name expandable'>options</a><span> : Object</span></div><div class='description'><div class='short'>An object containing lint validation options ...</div><div class='long'><p>An object containing lint validation options</p>\n<p>Defaults to: <code>{nomen: true, plusplus: true, sloppy: true, vars: true, white: true, undef: true, node: true, browser: true, stupid: true}</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-property'>Properties</h3><div class='subsection'><div id='property-lib' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSLint'>LintRoller.linters.JSLint</span><br/><a href='source/jsLint.html#LintRoller-linters-JSLint-property-lib' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSLint-property-lib' class='name not-expandable'>lib</a><span> : Object</span></div><div class='description'><div class='short'><p>JSLint</p>\n</div><div class='long'><p>JSLint</p>\n</div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-applyLintOptions' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSLint'>LintRoller.linters.JSLint</span><br/><a href='source/jsLint.html#LintRoller-linters-JSLint-method-applyLintOptions' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSLint-method-applyLintOptions' class='name expandable'>applyLintOptions</a>( <span class='pre'>Object options</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>options</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-runLinter' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSLint'>LintRoller.linters.JSLint</span><br/><a href='source/jsLint.html#LintRoller-linters-JSLint-method-runLinter' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSLint-method-runLinter' class='name expandable'>runLinter</a>( <span class='pre'>Object parentModule</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>parentModule</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","subclasses":[],"members":{"event":[],"property":[{"meta":{},"owner":"LintRoller.linters.JSLint","tagname":"property","name":"lib","id":"property-lib"}],"css_var":[],"method":[{"meta":{"private":true},"owner":"LintRoller.linters.JSLint","tagname":"method","name":"applyLintOptions","id":"method-applyLintOptions"},{"meta":{"private":true},"owner":"LintRoller.linters.JSLint","tagname":"method","name":"runLinter","id":"method-runLinter"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"LintRoller.linters.JSLint","tagname":"cfg","name":"options","id":"cfg-options"}]},"html_meta":{},"tagname":"class","extends":null,"name":"LintRoller.linters.JSLint","alternateClassNames":[],"inheritdoc":null,"component":false,"singleton":false,"id":"class-LintRoller.linters.JSLint","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[],"files":[{"href":"jsLint.html#LintRoller-linters-JSLint","filename":"jsLint.js"}]});
+Ext.data.JsonP.LintRoller_linters_JSLint({"mixedInto":[],"mixins":[],"code_type":"assignment","inheritable":false,"parentMixins":[],"meta":{},"uses":[],"aliases":{},"superclasses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/jslint.html#LintRoller-linters-JSLint' target='_blank'>jslint.js</a></div></pre><div class='doc-contents'><p>Created automatically if a { type : 'jsLint' } config is passed to the linters array.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-options' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSLint'>LintRoller.linters.JSLint</span><br/><a href='source/jslint.html#LintRoller-linters-JSLint-cfg-options' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSLint-cfg-options' class='name expandable'>options</a><span> : Object</span></div><div class='description'><div class='short'>An object containing lint validation options ...</div><div class='long'><p>An object containing lint validation options</p>\n<p>Defaults to: <code>{nomen: true, plusplus: true, sloppy: true, vars: true, white: true, undef: true, node: true, browser: true, stupid: true}</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-property'>Properties</h3><div class='subsection'><div id='property-lib' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSLint'>LintRoller.linters.JSLint</span><br/><a href='source/jslint.html#LintRoller-linters-JSLint-property-lib' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSLint-property-lib' class='name not-expandable'>lib</a><span> : Object</span></div><div class='description'><div class='short'><p>JSLint</p>\n</div><div class='long'><p>JSLint</p>\n</div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-applyLintOptions' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSLint'>LintRoller.linters.JSLint</span><br/><a href='source/jslint.html#LintRoller-linters-JSLint-method-applyLintOptions' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSLint-method-applyLintOptions' class='name expandable'>applyLintOptions</a>( <span class='pre'>Object options</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>options</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-runLinter' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='LintRoller.linters.JSLint'>LintRoller.linters.JSLint</span><br/><a href='source/jslint.html#LintRoller-linters-JSLint-method-runLinter' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller.linters.JSLint-method-runLinter' class='name expandable'>runLinter</a>( <span class='pre'>Object parentModule</span> )<strong class='private signature'>private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>parentModule</span> : Object<div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","subclasses":[],"members":{"event":[],"property":[{"meta":{},"owner":"LintRoller.linters.JSLint","tagname":"property","name":"lib","id":"property-lib"}],"css_var":[],"method":[{"meta":{"private":true},"owner":"LintRoller.linters.JSLint","tagname":"method","name":"applyLintOptions","id":"method-applyLintOptions"},{"meta":{"private":true},"owner":"LintRoller.linters.JSLint","tagname":"method","name":"runLinter","id":"method-runLinter"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"LintRoller.linters.JSLint","tagname":"cfg","name":"options","id":"cfg-options"}]},"html_meta":{},"tagname":"class","extends":null,"name":"LintRoller.linters.JSLint","alternateClassNames":[],"inheritdoc":null,"component":false,"singleton":false,"id":"class-LintRoller.linters.JSLint","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[],"files":[{"href":"jslint.html#LintRoller-linters-JSLint","filename":"jslint.js"}]});
View
21 docs/source/LintRoller.html
@@ -41,7 +41,7 @@
</span> * @class LintRoller
* @author Arthur Kay (http://www.akawebdesign.com)
* @singleton
- * @version 2.2.0
+ * @version 2.2.1
*
* GitHub Project: http://arthurakay.github.com/LintRoller/
*/
@@ -113,16 +113,12 @@
for (i in config) {
if (config.hasOwnProperty(i)) {
- switch (i) {
- case 'linters':
- this.setLinters(config[i]);
- break;
-
- default:
- this[i] = config[i];
- break;
+ if (i === 'linters') {
+ this.setLinters(config[i]);
+ }
+ else {
+ this[i] = config[i];
}
-
}
}
},
@@ -132,13 +128,13 @@
*/
setLinters : function (linters) {
if (!(linters instanceof Array) || linters.length === 0) {
- process.exit(1);
+ process.exit(1);
}
var i = 0,
linter, linterCfg;
- for (i; i&lt;linters.length; i++) {
+ for (i; i &lt; linters.length; i++) {
linterCfg = linters[i];
this.log('Initializing linter: ' + linterCfg.type, true);
@@ -150,7 +146,6 @@
}
},
-
<span id='LintRoller-method-announceErrors'> /**
</span> * @private
*/
View
125 docs/source/esprima.html
@@ -0,0 +1,125 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js">var ESPRIMA = require('esprima');
+
+<span id='LintRoller-linters-Esprima'>/**
+</span> * @class LintRoller.linters.Esprima
+ *
+ * Created automatically if a { type : 'esprima' } config is passed to the linters array.
+ */
+var linter = {
+
+ lib : ESPRIMA,
+
+<span id='LintRoller-linters-Esprima-cfg-options'> /**
+</span> * @cfg
+ * An object containing lint validation options
+ */
+ options : {
+ tolerant: true
+ },
+
+<span id='LintRoller-linters-Esprima-method-applyLintOptions'> /**
+</span> * @private
+ */
+ applyLintOptions : function (options) {
+ var i;
+
+ if (!options) {
+ return false;
+ }
+
+ for (i in options) {
+ if (options.hasOwnProperty(i)) {
+ this.options[i] = options[i];
+ }
+ }
+ },
+
+<span id='LintRoller-linters-Esprima-method-runLinter'> /**
+</span> * @private
+ */
+ runLinter : function (parentModule) {
+ var j = 0,
+ errorList = ['=============== Running Esprima... ===============\n\n'],
+ file, js;
+
+ parentModule.log('Running Esprima against code...', false);
+
+ for (j; j &lt; parentModule.files.length; j++) {
+
+ file = parentModule.files[j];
+ js = parentModule.fs.readFileSync(file, 'utf8');
+
+ var i = 0,
+ result, totalErrors, error;
+
+ try {
+ result = ESPRIMA.parse(js, this.options);
+
+ if (result.errors) {
+ totalErrors = result.errors.length;
+
+ for (i; i &lt; totalErrors; i++) {
+ error = result.errors[i];
+
+ if (error) {
+ errorList.push(
+ file,
+ ' Line #: ' + error.lineNumber,
+ ' Char #: ' + error.column,
+ ' Reason: ' + error.message,
+ '',
+ ''
+ );
+
+ if (parentModule.stopOnFirstError) {
+ break;
+ }
+ }
+ }
+
+ if (parentModule.stopOnFirstError &amp;&amp; errorList.length &gt; 0) {
+ parentModule.announceErrors(errorList);
+ }
+ }
+ }
+ catch (caughtError) {
+ errorList.push(
+ file,
+ ' Line #: ' + caughtError.lineNumber,
+ ' Char #: ' + caughtError.column,
+ ' Reason: ' + caughtError.message,
+ '',
+ ''
+ );
+
+ if (parentModule.stopOnFirstError) {
+ parentModule.announceErrors(errorList);
+ }
+ }
+ }
+
+ return errorList;
+ }
+
+};
+
+module.exports = linter;</pre>
+</body>
+</html>
View
2 generate_docs.sh
@@ -4,4 +4,4 @@ echo 'Removing old duckumentation...'
rm -rf docs
echo 'Hatching new duckumentation...'
-jsduck --config=jsduck.json
+jsduck --config=jsduck.json src
View
6 hooks/pre-commit.js
@@ -19,6 +19,12 @@ var config = {
linters : [
{
type : 'jsLint'
+ },
+ {
+ type : 'jsHint'
+ },
+ {
+ type : 'esprima'
}
]
};
View
9 jsduck.json
@@ -1,11 +1,4 @@
{
"--title" : "LintRoller API Docs",
- "--output" : "docs",
-
- "--" : [
- "src/LintRoller.js",
- "src/util.js",
- "src/jsLint.js",
- "src/jsHint.js"
- ]
+ "--output" : "docs"
}
View
21 src/LintRoller.js
@@ -24,7 +24,7 @@
* @class LintRoller
* @author Arthur Kay (http://www.akawebdesign.com)
* @singleton
- * @version 2.2.0
+ * @version 2.2.1
*
* GitHub Project: http://arthurakay.github.com/LintRoller/
*/
@@ -96,16 +96,12 @@ LintRoller = {
for (i in config) {
if (config.hasOwnProperty(i)) {
- switch (i) {
- case 'linters':
- this.setLinters(config[i]);
- break;
-
- default:
- this[i] = config[i];
- break;
+ if (i === 'linters') {
+ this.setLinters(config[i]);
+ }
+ else {
+ this[i] = config[i];
}
-
}
}
},
@@ -115,13 +111,13 @@ LintRoller = {
*/
setLinters : function (linters) {
if (!(linters instanceof Array) || linters.length === 0) {
- process.exit(1);
+ process.exit(1);
}
var i = 0,
linter, linterCfg;
- for (i; i<linters.length; i++) {
+ for (i; i < linters.length; i++) {
linterCfg = linters[i];
this.log('Initializing linter: ' + linterCfg.type, true);
@@ -133,7 +129,6 @@ LintRoller = {
}
},
-
/**
* @private
*/
View
70 src/esprima.js
@@ -1,14 +1,20 @@
var ESPRIMA = require('esprima');
+/**
+ * @class LintRoller.linters.Esprima
+ *
+ * Created automatically if a { type : 'esprima' } config is passed to the linters array.
+ */
var linter = {
lib : ESPRIMA,
/**
* @cfg
+ * An object containing lint validation options
*/
options : {
- //tolerant: true
+ tolerant: true
},
/**
@@ -44,31 +50,49 @@ var linter = {
js = parentModule.fs.readFileSync(file, 'utf8');
var i = 0,
- result = this.lib.parse(js, this.options),
- totalErrors = (result.errors) ? result.errors.length : 0,
- error;
-
- if (!result) {
- for (i; i < totalErrors; i++) {
- error = result.errors[i];
-
- if (error) {
- errorList.push(
- file,
- ' Line #: ' + error.lineNumber,
- //' Char #: ' + error.character,
- ' Reason: ' + error.message,
- '',
- ''
- );
-
- if (parentModule.stopOnFirstError) {
- break;
+ result, totalErrors, error;
+
+ try {
+ result = ESPRIMA.parse(js, this.options);
+
+ if (result.errors) {
+ totalErrors = result.errors.length;
+
+ for (i; i < totalErrors; i++) {
+ error = result.errors[i];
+
+ if (error) {
+ errorList.push(
+ file,
+ ' Line #: ' + error.lineNumber,
+ ' Char #: ' + error.column,
+ ' Reason: ' + error.message,
+ '',
+ ''
+ );
+
+ if (parentModule.stopOnFirstError) {
+ break;
+ }
}
}
- }
- if (parentModule.stopOnFirstError && errorList.length > 0) {
+ if (parentModule.stopOnFirstError && errorList.length > 0) {
+ parentModule.announceErrors(errorList);
+ }
+ }
+ }
+ catch (caughtError) {
+ errorList.push(
+ file,
+ ' Line #: ' + caughtError.lineNumber,
+ ' Char #: ' + caughtError.column,
+ ' Reason: ' + caughtError.message,
+ '',
+ ''
+ );
+
+ if (parentModule.stopOnFirstError) {
parentModule.announceErrors(errorList);
}
}

0 comments on commit 4aa9e1a

Please sign in to comment.
Something went wrong with that request. Please try again.