Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version 2.3.3 (June 10, 2013)

  - Added getVersion() method and outputting value to console
  - Now allowing logFile config to accept a string (backwards compatibility to <v2.3)
  - Try/Catch surrounding error file generation
  - new unit tests
  • Loading branch information...
commit 8f03075a31d218506b5150dbd2efe397b6bfe197 1 parent c39f252
@arthurakay authored
View
6 CHANGELOG
@@ -1,6 +1,12 @@
===============
VERSION 2.x
===============
+Version 2.3.3 (June 10, 2013)
+ - Added getVersion() method and outputting value to console
+ - Now allowing logFile config to accept a string (backwards compatibility to <v2.3)
+ - Try/Catch surrounding error file generation
+ - new unit tests
+
Version 2.3.2 (June 6, 2013)
- Added support to log errors to stdout
- New example for logging errors to stdout
View
2  .../data-5abcc86425268b2253175185fa67076d.js → .../data-848fe00ae319e0afba493fa962b9f548.js
@@ -1 +1 @@
-Docs = {"data":{"commentsDomain":null,"message":"","showPrintButton":false,"tests":false,"search":[{"url":"#!/api/LintRoller.linters.Esprima","meta":{},"icon":"icon-class","fullName":"LintRoller.linters.Esprima","sort":1,"name":"Esprima"},{"url":"#!/api/LintRoller.linters.Esprima-cfg-options","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.Esprima.options","sort":3,"name":"options"},{"url":"#!/api/LintRoller.linters.Esprima-method-applyLintOptions","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.Esprima.applyLintOptions","sort":3,"name":"applyLintOptions"},{"url":"#!/api/LintRoller.linters.Esprima-method-runLinter","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.Esprima.runLinter","sort":3,"name":"runLinter"},{"url":"#!/api/LintRoller.linters.JSHint","meta":{},"icon":"icon-class","fullName":"LintRoller.linters.JSHint","sort":1,"name":"JSHint"},{"url":"#!/api/LintRoller.linters.JSHint-property-lib","meta":{},"icon":"icon-property","fullName":"LintRoller.linters.JSHint.lib","sort":3,"name":"lib"},{"url":"#!/api/LintRoller.linters.JSHint-cfg-options","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.JSHint.options","sort":3,"name":"options"},{"url":"#!/api/LintRoller.linters.JSHint-cfg-globals","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.JSHint.globals","sort":3,"name":"globals"},{"url":"#!/api/LintRoller.linters.JSHint-method-applyLintOptions","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.JSHint.applyLintOptions","sort":3,"name":"applyLintOptions"},{"url":"#!/api/LintRoller.linters.JSHint-method-runLinter","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.JSHint.runLinter","sort":3,"name":"runLinter"},{"url":"#!/api/LintRoller.linters.JSLint","meta":{},"icon":"icon-class","fullName":"LintRoller.linters.JSLint","sort":1,"name":"JSLint"},{"url":"#!/api/LintRoller.linters.JSLint-property-lib","meta":{},"icon":"icon-property","fullName":"LintRoller.linters.JSLint.lib","sort":3,"name":"lib"},{"url":"#!/api/LintRoller.linters.JSLint-cfg-options","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.JSLint.options","sort":3,"name":"options"},{"url":"#!/api/LintRoller.linters.JSLint-method-applyLintOptions","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.JSLint.applyLintOptions","sort":3,"name":"applyLintOptions"},{"url":"#!/api/LintRoller.linters.JSLint-method-runLinter","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.JSLint.runLinter","sort":3,"name":"runLinter"},{"url":"#!/api/LintRoller.linters.W3C_HTML","meta":{},"icon":"icon-class","fullName":"LintRoller.linters.W3C_HTML","sort":1,"name":"W3C_HTML"},{"url":"#!/api/LintRoller.linters.W3C_HTML-cfg-options","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.W3C_HTML.options","sort":3,"name":"options"},{"url":"#!/api/LintRoller.linters.W3C_HTML-method-applyLintOptions","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.W3C_HTML.applyLintOptions","sort":3,"name":"applyLintOptions"},{"url":"#!/api/LintRoller.linters.W3C_HTML-method-runLinter","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.W3C_HTML.runLinter","sort":3,"name":"runLinter"},{"url":"#!/api/LintRoller","meta":{"author":["Arthur Kay (http://www.akawebdesign.com)"]},"icon":"icon-singleton","fullName":"LintRoller","sort":1,"name":"LintRoller"},{"url":"#!/api/LintRoller-cfg-filepaths","meta":{},"icon":"icon-cfg","fullName":"LintRoller.filepaths","sort":3,"name":"filepaths"},{"url":"#!/api/LintRoller-cfg-exclusions","meta":{},"icon":"icon-cfg","fullName":"LintRoller.exclusions","sort":3,"name":"exclusions"},{"url":"#!/api/LintRoller-cfg-stdoutErrors","meta":{},"icon":"icon-cfg","fullName":"LintRoller.stdoutErrors","sort":3,"name":"stdoutErrors"},{"url":"#!/api/LintRoller-cfg-verbose","meta":{},"icon":"icon-cfg","fullName":"LintRoller.verbose","sort":3,"name":"verbose"},{"url":"#!/api/LintRoller-cfg-regex","meta":{},"icon":"icon-cfg","fullName":"LintRoller.regex","sort":3,"name":"regex"},{"url":"#!/api/LintRoller-cfg-defaultSuccessMessage","meta":{},"icon":"icon-cfg","fullName":"LintRoller.defaultSuccessMessage","sort":3,"name":"defaultSuccessMessage"},{"url":"#!/api/LintRoller-cfg-stopOnFirstError","meta":{},"icon":"icon-cfg","fullName":"LintRoller.stopOnFirstError","sort":3,"name":"stopOnFirstError"},{"url":"#!/api/LintRoller-cfg-linters","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters","sort":3,"name":"linters"},{"url":"#!/api/LintRoller-cfg-logFile","meta":{},"icon":"icon-cfg","fullName":"LintRoller.logFile","sort":3,"name":"logFile"},{"url":"#!/api/LintRoller-method-init","meta":{},"icon":"icon-method","fullName":"LintRoller.init","sort":3,"name":"init"},{"url":"#!/api/LintRoller-property-files","meta":{"private":true},"icon":"icon-property","fullName":"LintRoller.files","sort":3,"name":"files"},{"url":"#!/api/LintRoller-method-initConfigs","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.initConfigs","sort":3,"name":"initConfigs"},{"url":"#!/api/LintRoller-method-setLinters","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.setLinters","sort":3,"name":"setLinters"},{"url":"#!/api/LintRoller-method-announceErrors","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.announceErrors","sort":3,"name":"announceErrors"},{"url":"#!/api/LintRoller-method-announceSuccess","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.announceSuccess","sort":3,"name":"announceSuccess"},{"url":"#!/api/LintRoller-method-getFiles","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.getFiles","sort":3,"name":"getFiles"},{"url":"#!/api/LintRoller-method-parseTree","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.parseTree","sort":3,"name":"parseTree"},{"url":"#!/api/LintRoller-method-parseFile","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.parseFile","sort":3,"name":"parseFile"},{"url":"#!/api/LintRoller-method-lintFiles","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.lintFiles","sort":3,"name":"lintFiles"},{"url":"#!/api/LintRoller-method-logToStdOut","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.logToStdOut","sort":3,"name":"logToStdOut"},{"url":"#!/api/LintRoller-method-logToFile","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.logToFile","sort":3,"name":"logToFile"},{"url":"#!/api/LintRoller-method-log","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.log","sort":3,"name":"log"},{"url":"#!/api/LintRoller.util","meta":{},"icon":"icon-singleton","fullName":"LintRoller.util","sort":1,"name":"util"},{"url":"#!/api/LintRoller.util-method-init","meta":{"chainable":true,"private":true},"icon":"icon-method","fullName":"LintRoller.util.init","sort":3,"name":"init"},{"url":"#!/api/LintRoller.util-method-utilInit","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.utilInit","sort":3,"name":"utilInit"},{"url":"#!/api/LintRoller.util-method-removeBOM","meta":{},"icon":"icon-method","fullName":"LintRoller.util.removeBOM","sort":3,"name":"removeBOM"},{"url":"#!/api/LintRoller.util-method-replaceTabsWithSpaces","meta":{},"icon":"icon-method","fullName":"LintRoller.util.replaceTabsWithSpaces","sort":3,"name":"replaceTabsWithSpaces"},{"url":"#!/api/LintRoller.util-method-locateOffenders","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.locateOffenders","sort":3,"name":"locateOffenders"},{"url":"#!/api/LintRoller.util-method-fixOffendingFiles","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.fixOffendingFiles","sort":3,"name":"fixOffendingFiles"},{"url":"#!/api/LintRoller.util-method-fixBomFiles","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.fixBomFiles","sort":3,"name":"fixBomFiles"},{"url":"#!/api/LintRoller.util-method-findLintErrors","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.findLintErrors","sort":3,"name":"findLintErrors"}],"guides":[],"source":true,"touchExamplesUi":false,"classes":[{"extends":null,"icon":"icon-class","private":null,"name":"LintRoller.linters.Esprima"},{"extends":null,"icon":"icon-class","private":null,"name":"LintRoller.linters.JSHint"},{"extends":null,"icon":"icon-class","private":null,"name":"LintRoller.linters.JSLint"},{"extends":null,"icon":"icon-class","private":null,"name":"LintRoller.linters.W3C_HTML"},{"extends":null,"icon":"icon-singleton","private":null,"name":"LintRoller"},{"extends":null,"icon":"icon-singleton","private":null,"name":"LintRoller.util"}],"videos":[],"signatures":[{"key":"abstract","long":"abstract","short":"ABS"},{"key":"chainable","long":"chainable","short":"&gt;"},{"key":"deprecated","long":"deprecated","short":"DEP"},{"key":"new","long":"&#9733;","short":"&#9733;"},{"key":"preventable","long":"preventable","short":"PREV"},{"key":"private","long":"private","short":"PRI"},{"key":"protected","long":"protected","short":"PRO"},{"key":"readonly","long":"readonly","short":"R O"},{"key":"removed","long":"removed","short":"REM"},{"key":"required","long":"required","short":"REQ"},{"key":"static","long":"static","short":"STA"},{"key":"template","long":"template","short":"TMP"}],"guideSearch":{},"examples":[],"commentsUrl":null,"localStorageDb":"docs"}};
+Docs = {"data":{"commentsDomain":null,"message":"","showPrintButton":false,"tests":false,"search":[{"url":"#!/api/LintRoller.linters.Esprima","meta":{},"icon":"icon-class","fullName":"LintRoller.linters.Esprima","sort":1,"name":"Esprima"},{"url":"#!/api/LintRoller.linters.Esprima-cfg-options","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.Esprima.options","sort":3,"name":"options"},{"url":"#!/api/LintRoller.linters.Esprima-method-applyLintOptions","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.Esprima.applyLintOptions","sort":3,"name":"applyLintOptions"},{"url":"#!/api/LintRoller.linters.Esprima-method-runLinter","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.Esprima.runLinter","sort":3,"name":"runLinter"},{"url":"#!/api/LintRoller.linters.JSHint","meta":{},"icon":"icon-class","fullName":"LintRoller.linters.JSHint","sort":1,"name":"JSHint"},{"url":"#!/api/LintRoller.linters.JSHint-property-lib","meta":{},"icon":"icon-property","fullName":"LintRoller.linters.JSHint.lib","sort":3,"name":"lib"},{"url":"#!/api/LintRoller.linters.JSHint-cfg-options","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.JSHint.options","sort":3,"name":"options"},{"url":"#!/api/LintRoller.linters.JSHint-cfg-globals","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.JSHint.globals","sort":3,"name":"globals"},{"url":"#!/api/LintRoller.linters.JSHint-method-applyLintOptions","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.JSHint.applyLintOptions","sort":3,"name":"applyLintOptions"},{"url":"#!/api/LintRoller.linters.JSHint-method-runLinter","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.JSHint.runLinter","sort":3,"name":"runLinter"},{"url":"#!/api/LintRoller.linters.JSLint","meta":{},"icon":"icon-class","fullName":"LintRoller.linters.JSLint","sort":1,"name":"JSLint"},{"url":"#!/api/LintRoller.linters.JSLint-property-lib","meta":{},"icon":"icon-property","fullName":"LintRoller.linters.JSLint.lib","sort":3,"name":"lib"},{"url":"#!/api/LintRoller.linters.JSLint-cfg-options","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.JSLint.options","sort":3,"name":"options"},{"url":"#!/api/LintRoller.linters.JSLint-method-applyLintOptions","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.JSLint.applyLintOptions","sort":3,"name":"applyLintOptions"},{"url":"#!/api/LintRoller.linters.JSLint-method-runLinter","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.JSLint.runLinter","sort":3,"name":"runLinter"},{"url":"#!/api/LintRoller.linters.W3C_HTML","meta":{},"icon":"icon-class","fullName":"LintRoller.linters.W3C_HTML","sort":1,"name":"W3C_HTML"},{"url":"#!/api/LintRoller.linters.W3C_HTML-cfg-options","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters.W3C_HTML.options","sort":3,"name":"options"},{"url":"#!/api/LintRoller.linters.W3C_HTML-method-applyLintOptions","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.W3C_HTML.applyLintOptions","sort":3,"name":"applyLintOptions"},{"url":"#!/api/LintRoller.linters.W3C_HTML-method-runLinter","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.linters.W3C_HTML.runLinter","sort":3,"name":"runLinter"},{"url":"#!/api/LintRoller","meta":{"author":["Arthur Kay (http://www.akawebdesign.com)"]},"icon":"icon-singleton","fullName":"LintRoller","sort":1,"name":"LintRoller"},{"url":"#!/api/LintRoller-cfg-filepaths","meta":{},"icon":"icon-cfg","fullName":"LintRoller.filepaths","sort":3,"name":"filepaths"},{"url":"#!/api/LintRoller-cfg-exclusions","meta":{},"icon":"icon-cfg","fullName":"LintRoller.exclusions","sort":3,"name":"exclusions"},{"url":"#!/api/LintRoller-cfg-stdoutErrors","meta":{},"icon":"icon-cfg","fullName":"LintRoller.stdoutErrors","sort":3,"name":"stdoutErrors"},{"url":"#!/api/LintRoller-cfg-verbose","meta":{},"icon":"icon-cfg","fullName":"LintRoller.verbose","sort":3,"name":"verbose"},{"url":"#!/api/LintRoller-cfg-regex","meta":{},"icon":"icon-cfg","fullName":"LintRoller.regex","sort":3,"name":"regex"},{"url":"#!/api/LintRoller-cfg-defaultSuccessMessage","meta":{},"icon":"icon-cfg","fullName":"LintRoller.defaultSuccessMessage","sort":3,"name":"defaultSuccessMessage"},{"url":"#!/api/LintRoller-cfg-stopOnFirstError","meta":{},"icon":"icon-cfg","fullName":"LintRoller.stopOnFirstError","sort":3,"name":"stopOnFirstError"},{"url":"#!/api/LintRoller-cfg-linters","meta":{},"icon":"icon-cfg","fullName":"LintRoller.linters","sort":3,"name":"linters"},{"url":"#!/api/LintRoller-cfg-logFile","meta":{},"icon":"icon-cfg","fullName":"LintRoller.logFile","sort":3,"name":"logFile"},{"url":"#!/api/LintRoller-method-init","meta":{},"icon":"icon-method","fullName":"LintRoller.init","sort":3,"name":"init"},{"url":"#!/api/LintRoller-property-files","meta":{"private":true},"icon":"icon-property","fullName":"LintRoller.files","sort":3,"name":"files"},{"url":"#!/api/LintRoller-method-getVersion","meta":{},"icon":"icon-method","fullName":"LintRoller.getVersion","sort":3,"name":"getVersion"},{"url":"#!/api/LintRoller-method-initConfigs","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.initConfigs","sort":3,"name":"initConfigs"},{"url":"#!/api/LintRoller-method-setLinters","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.setLinters","sort":3,"name":"setLinters"},{"url":"#!/api/LintRoller-method-announceErrors","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.announceErrors","sort":3,"name":"announceErrors"},{"url":"#!/api/LintRoller-method-announceSuccess","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.announceSuccess","sort":3,"name":"announceSuccess"},{"url":"#!/api/LintRoller-method-getFiles","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.getFiles","sort":3,"name":"getFiles"},{"url":"#!/api/LintRoller-method-parseTree","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.parseTree","sort":3,"name":"parseTree"},{"url":"#!/api/LintRoller-method-parseFile","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.parseFile","sort":3,"name":"parseFile"},{"url":"#!/api/LintRoller-method-lintFiles","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.lintFiles","sort":3,"name":"lintFiles"},{"url":"#!/api/LintRoller-method-logToStdOut","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.logToStdOut","sort":3,"name":"logToStdOut"},{"url":"#!/api/LintRoller-method-logToFile","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.logToFile","sort":3,"name":"logToFile"},{"url":"#!/api/LintRoller-method-log","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.log","sort":3,"name":"log"},{"url":"#!/api/LintRoller.util","meta":{},"icon":"icon-singleton","fullName":"LintRoller.util","sort":1,"name":"util"},{"url":"#!/api/LintRoller.util-method-init","meta":{"chainable":true,"private":true},"icon":"icon-method","fullName":"LintRoller.util.init","sort":3,"name":"init"},{"url":"#!/api/LintRoller.util-method-utilInit","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.utilInit","sort":3,"name":"utilInit"},{"url":"#!/api/LintRoller.util-method-removeBOM","meta":{},"icon":"icon-method","fullName":"LintRoller.util.removeBOM","sort":3,"name":"removeBOM"},{"url":"#!/api/LintRoller.util-method-replaceTabsWithSpaces","meta":{},"icon":"icon-method","fullName":"LintRoller.util.replaceTabsWithSpaces","sort":3,"name":"replaceTabsWithSpaces"},{"url":"#!/api/LintRoller.util-method-locateOffenders","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.locateOffenders","sort":3,"name":"locateOffenders"},{"url":"#!/api/LintRoller.util-method-fixOffendingFiles","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.fixOffendingFiles","sort":3,"name":"fixOffendingFiles"},{"url":"#!/api/LintRoller.util-method-fixBomFiles","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.fixBomFiles","sort":3,"name":"fixBomFiles"},{"url":"#!/api/LintRoller.util-method-findLintErrors","meta":{"private":true},"icon":"icon-method","fullName":"LintRoller.util.findLintErrors","sort":3,"name":"findLintErrors"}],"guides":[],"source":true,"touchExamplesUi":false,"classes":[{"extends":null,"icon":"icon-class","private":null,"name":"LintRoller.linters.Esprima"},{"extends":null,"icon":"icon-class","private":null,"name":"LintRoller.linters.JSHint"},{"extends":null,"icon":"icon-class","private":null,"name":"LintRoller.linters.JSLint"},{"extends":null,"icon":"icon-class","private":null,"name":"LintRoller.linters.W3C_HTML"},{"extends":null,"icon":"icon-singleton","private":null,"name":"LintRoller"},{"extends":null,"icon":"icon-singleton","private":null,"name":"LintRoller.util"}],"videos":[],"signatures":[{"key":"abstract","long":"abstract","short":"ABS"},{"key":"chainable","long":"chainable","short":"&gt;"},{"key":"deprecated","long":"deprecated","short":"DEP"},{"key":"new","long":"&#9733;","short":"&#9733;"},{"key":"preventable","long":"preventable","short":"PREV"},{"key":"private","long":"private","short":"PRI"},{"key":"protected","long":"protected","short":"PRO"},{"key":"readonly","long":"readonly","short":"R O"},{"key":"removed","long":"removed","short":"REM"},{"key":"required","long":"required","short":"REQ"},{"key":"static","long":"static","short":"STA"},{"key":"template","long":"template","short":"TMP"}],"guideSearch":{},"examples":[],"commentsUrl":null,"localStorageDb":"docs"}};
View
4 docs/index.html
@@ -12,7 +12,7 @@
<link rel="stylesheet" href="resources/css/app-c8e1f59f40e720cb5379f7041379119a.css" type="text/css" />
<script type="text/javascript" src="extjs/ext-all.js"></script>
- <script type="text/javascript" src="data-5abcc86425268b2253175185fa67076d.js"></script>
+ <script type="text/javascript" src="data-848fe00ae319e0afba493fa962b9f548.js"></script>
<script type="text/javascript" src="app-0b00cb36fe5624b12d5a495c4289e5d9.js"></script>
@@ -52,7 +52,7 @@
- <div id='footer-content' style='display: none'>Generated on Thu 06 Jun 2013 11:46:03 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 4.10.0.</div>
+ <div id='footer-content' style='display: none'>Generated on Mon 10 Jun 2013 10:58:41 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 4.10.0.</div>
View
2  docs/output/LintRoller.js
@@ -1 +1 @@
-Ext.data.JsonP.LintRoller({"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.3.2</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-defaultSuccessMessage' 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-defaultSuccessMessage' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-defaultSuccessMessage' class='name expandable'>defaultSuccessMessage</a><span> : String</span></div><div class='description'><div class='short'>Output message when no lint errors are found ...</div><div class='long'><p>Output message when no lint errors are found</p>\n<p>Defaults to: <code>'\\nSuccessfully linted your code!\\n\\n'</code></p></div></div></div><div id='cfg-exclusions' 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-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> : Object</span></div><div class='description'><div class='short'>An object containing:\n\n\n\"name\": the relative filepath to where error messages will be logged\n\"type\": the type of outp...</div><div class='long'><p>An object containing:</p>\n\n<ul>\n<li>\"name\": the relative filepath to where error messages will be logged</li>\n<li>\"type\": the type of output (\"text\", \"json\", or \"xml\")</li>\n</ul>\n\n\n<p> Set to null to disable logging errors to a file</p>\n<p>Defaults to: <code>{name: 'error_log.txt', type: 'text'}</code></p></div></div></div><div id='cfg-regex' 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-regex' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-regex' class='name expandable'>regex</a><span> : RegExp</span></div><div class='description'><div class='short'>Regular Expression for matching files to lint ...</div><div class='long'><p>Regular Expression for matching files to lint</p>\n<p>Defaults to: <code>/\\.(js|html)$/i</code></p></div></div></div><div id='cfg-stdoutErrors' 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-stdoutErrors' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-stdoutErrors' class='name expandable'>stdoutErrors</a><span> : Boolean</span></div><div class='description'><div class='short'>True to log errors directly into stdout ...</div><div class='long'><p>True to log errors directly into stdout</p>\n<p>Defaults to: <code>false</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'>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'>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'>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'>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'>msg, 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'>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-logToStdOut' 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-logToStdOut' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-logToStdOut' class='name expandable'>logToStdOut</a>( <span class='pre'>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-parseFile' 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-parseFile' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-parseFile' class='name expandable'>parseFile</a>( <span class='pre'>currPath, fileName</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'>currPath</span> : Object<div class='sub-desc'>\n</div></li><li><span class='pre'>fileName</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'>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'>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>","singleton":true,"override":null,"mixins":[],"html_meta":{"author":null},"alternateClassNames":[],"tagname":"class","component":false,"extends":null,"aliases":{},"uses":[],"inheritdoc":null,"subclasses":[],"statics":{"event":[],"css_var":[],"css_mixin":[],"cfg":[],"property":[],"method":[]},"members":{"event":[],"css_var":[],"css_mixin":[],"cfg":[{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"defaultSuccessMessage","id":"cfg-defaultSuccessMessage"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"exclusions","id":"cfg-exclusions"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"filepaths","id":"cfg-filepaths"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"linters","id":"cfg-linters"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"logFile","id":"cfg-logFile"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"regex","id":"cfg-regex"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"stdoutErrors","id":"cfg-stdoutErrors"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"stopOnFirstError","id":"cfg-stopOnFirstError"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"verbose","id":"cfg-verbose"}],"property":[{"owner":"LintRoller","tagname":"property","meta":{"private":true},"name":"files","id":"property-files"}],"method":[{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"announceErrors","id":"method-announceErrors"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"announceSuccess","id":"method-announceSuccess"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"getFiles","id":"method-getFiles"},{"owner":"LintRoller","tagname":"method","meta":{},"name":"init","id":"method-init"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"initConfigs","id":"method-initConfigs"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"lintFiles","id":"method-lintFiles"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"log","id":"method-log"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"logToFile","id":"method-logToFile"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"logToStdOut","id":"method-logToStdOut"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"parseFile","id":"method-parseFile"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"parseTree","id":"method-parseTree"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"setLinters","id":"method-setLinters"}]},"meta":{"author":["Arthur Kay (http://www.akawebdesign.com)"]},"mixedInto":[],"requires":[],"private":null,"superclasses":[],"linenr":23,"name":"LintRoller","enum":null,"parentMixins":[],"id":"class-LintRoller","files":[{"href":"LintRoller.html#LintRoller","filename":"LintRoller.js"}],"inheritable":null});
+Ext.data.JsonP.LintRoller({"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.3.3</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-defaultSuccessMessage' 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-defaultSuccessMessage' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-defaultSuccessMessage' class='name expandable'>defaultSuccessMessage</a><span> : String</span></div><div class='description'><div class='short'>Output message when no lint errors are found ...</div><div class='long'><p>Output message when no lint errors are found</p>\n<p>Defaults to: <code>'\\nSuccessfully linted your code!\\n\\n'</code></p></div></div></div><div id='cfg-exclusions' 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-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> : Object</span></div><div class='description'><div class='short'>An object containing:\n\n\n\"name\": the relative filepath to where error messages will be logged\n\"type\": the type of outp...</div><div class='long'><p>An object containing:</p>\n\n<ul>\n<li>\"name\": the relative filepath to where error messages will be logged</li>\n<li>\"type\": the type of output (\"text\", \"json\", or \"xml\")</li>\n</ul>\n\n\n<p> Set to null to disable logging errors to a file.</p>\n\n<p> You can optionally just provide a string as the filepath to a log file - the \"type\" will simply default to \"text\".</p>\n<p>Defaults to: <code>{name: 'error_log.txt', type: 'text'}</code></p></div></div></div><div id='cfg-regex' 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-regex' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-regex' class='name expandable'>regex</a><span> : RegExp</span></div><div class='description'><div class='short'>Regular Expression for matching files to lint ...</div><div class='long'><p>Regular Expression for matching files to lint</p>\n<p>Defaults to: <code>/\\.(js|html)$/i</code></p></div></div></div><div id='cfg-stdoutErrors' 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-stdoutErrors' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-cfg-stdoutErrors' class='name expandable'>stdoutErrors</a><span> : Boolean</span></div><div class='description'><div class='short'>True to log errors directly into stdout ...</div><div class='long'><p>True to log errors directly into stdout</p>\n<p>Defaults to: <code>false</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'>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'>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-getVersion' 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-getVersion' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-getVersion' class='name expandable'>getVersion</a>( <span class='pre'></span> )</div><div class='description'><div class='short'> ...</div><div class='long'>\n</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'>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'>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'>msg, 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'>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-logToStdOut' 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-logToStdOut' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-logToStdOut' class='name expandable'>logToStdOut</a>( <span class='pre'>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-parseFile' 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-parseFile' target='_blank' class='view-source'>view source</a></div><a href='#!/api/LintRoller-method-parseFile' class='name expandable'>parseFile</a>( <span class='pre'>currPath, fileName</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'>currPath</span> : Object<div class='sub-desc'>\n</div></li><li><span class='pre'>fileName</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'>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'>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>","singleton":true,"override":null,"mixins":[],"html_meta":{"author":null},"alternateClassNames":[],"tagname":"class","component":false,"extends":null,"aliases":{},"uses":[],"inheritdoc":null,"subclasses":[],"statics":{"event":[],"css_var":[],"css_mixin":[],"cfg":[],"property":[],"method":[]},"members":{"event":[],"css_var":[],"css_mixin":[],"cfg":[{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"defaultSuccessMessage","id":"cfg-defaultSuccessMessage"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"exclusions","id":"cfg-exclusions"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"filepaths","id":"cfg-filepaths"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"linters","id":"cfg-linters"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"logFile","id":"cfg-logFile"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"regex","id":"cfg-regex"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"stdoutErrors","id":"cfg-stdoutErrors"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"stopOnFirstError","id":"cfg-stopOnFirstError"},{"owner":"LintRoller","tagname":"cfg","meta":{},"name":"verbose","id":"cfg-verbose"}],"property":[{"owner":"LintRoller","tagname":"property","meta":{"private":true},"name":"files","id":"property-files"}],"method":[{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"announceErrors","id":"method-announceErrors"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"announceSuccess","id":"method-announceSuccess"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"getFiles","id":"method-getFiles"},{"owner":"LintRoller","tagname":"method","meta":{},"name":"getVersion","id":"method-getVersion"},{"owner":"LintRoller","tagname":"method","meta":{},"name":"init","id":"method-init"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"initConfigs","id":"method-initConfigs"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"lintFiles","id":"method-lintFiles"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"log","id":"method-log"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"logToFile","id":"method-logToFile"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"logToStdOut","id":"method-logToStdOut"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"parseFile","id":"method-parseFile"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"parseTree","id":"method-parseTree"},{"owner":"LintRoller","tagname":"method","meta":{"private":true},"name":"setLinters","id":"method-setLinters"}]},"meta":{"author":["Arthur Kay (http://www.akawebdesign.com)"]},"mixedInto":[],"requires":[],"private":null,"superclasses":[],"linenr":23,"name":"LintRoller","enum":null,"parentMixins":[],"id":"class-LintRoller","files":[{"href":"LintRoller.html#LintRoller","filename":"LintRoller.js"}],"inheritable":null});
View
49 docs/source/LintRoller.html
@@ -41,11 +41,14 @@
</span> * @class LintRoller
* @author Arthur Kay (http://www.akawebdesign.com)
* @singleton
- * @version 2.3.2
+ * @version 2.3.3
*
* GitHub Project: http://arthurakay.github.com/LintRoller/
*/
&quot;use strict&quot;;
+
+var version = '2.3.3';
+
var LintRoller = {
<span id='LintRoller-cfg-filepaths'> /**
</span> * @cfg {Array} filepaths
@@ -100,7 +103,9 @@
* - &quot;name&quot;: the relative filepath to where error messages will be logged
* - &quot;type&quot;: the type of output (&quot;text&quot;, &quot;json&quot;, or &quot;xml&quot;)
*
- * Set to null to disable logging errors to a file
+ * Set to null to disable logging errors to a file.
+ *
+ * You can optionally just provide a string as the filepath to a log file - the &quot;type&quot; will simply default to &quot;text&quot;.
*/
logFile : {
name : 'error_log.txt',
@@ -111,6 +116,8 @@
</span> * Call this method to de-lint your JavaScript codebase.
*/
init : function (config) {
+ this.log('*** LintRoller v' + this.getVersion() + ' ***\n', true);
+
//APPLY CONFIG OPTIONS
this.initConfigs(config);
@@ -126,6 +133,13 @@
*/
files : [],
+<span id='LintRoller-method-getVersion'> /**
+</span> * @method
+ */
+ getVersion : function () {
+ return version;
+ },
+
<span id='LintRoller-method-initConfigs'> /**
</span> * @private
*/
@@ -142,13 +156,21 @@
this.setLinters(config[i]);
}
else if (i === 'logFile') {
- if (config[i] === null) {
+ var logFile = config[i];
+
+ if (logFile === null) {
delete this.logFile;
}
else {
- //TODO: hard-coding this for now... may revisit later
- this.logFile.name = config[i].name;
- this.logFile.type = config[i].type;
+ if (typeof logFile === 'string') {
+ this.logFile.name = logFile;
+ //type will remain &quot;text&quot; by default
+ }
+ else {
+ //TODO: hard-coding object assignment this for now... may revisit later
+ this.logFile.name = logFile.name;
+ this.logFile.type = logFile.type;
+ }
}
}
else {
@@ -196,7 +218,6 @@
this.logToStdOut(errorList);
}
-
process.exit(1);
},
@@ -278,7 +299,7 @@
<span id='LintRoller-method-parseFile'> /**
</span> * @private
*/
- parseFile : function(currPath, fileName) {
+ parseFile : function (currPath, fileName) {
var spacer = ' ',
childPath;
@@ -370,7 +391,6 @@
this.log(output, true);
},
-
<span id='LintRoller-method-logToFile'> /**
</span> * @private
*/
@@ -396,7 +416,12 @@
break;
}
- this.fs.writeFileSync(this.logFile.name, output);
+ try {
+ this.fs.writeFileSync(this.logFile.name, output);
+ }
+ catch (err) {
+ this.log('\nAn error occurred while trying to generate new log file.', true);
+ }
},
formatTextOutput : function (errorList) {
@@ -442,7 +467,9 @@
},
clearLogFile : function () {
- if (!this.logFile) { return; }
+ if (!this.logFile) {
+ return;
+ }
try {
this.log('\nDeleting old log file...', true);
View
2  package.json
@@ -1,7 +1,7 @@
{
"name" : "lintroller",
"preferGlobal" : "true",
- "version" : "2.3.2",
+ "version" : "2.3.3",
"author" : "Arthur Kay <art@akawebdesign.com>",
"description" : "Lint your JavaScript and HTML code and output errors to a log file. Convenient for pre-commit hooks and build systems to maintain code quality.",
View
49 src/LintRoller.js
@@ -24,11 +24,14 @@
* @class LintRoller
* @author Arthur Kay (http://www.akawebdesign.com)
* @singleton
- * @version 2.3.2
+ * @version 2.3.3
*
* GitHub Project: http://arthurakay.github.com/LintRoller/
*/
"use strict";
+
+var version = '2.3.3';
+
var LintRoller = {
/**
* @cfg {Array} filepaths
@@ -83,7 +86,9 @@ var LintRoller = {
* - "name": the relative filepath to where error messages will be logged
* - "type": the type of output ("text", "json", or "xml")
*
- * Set to null to disable logging errors to a file
+ * Set to null to disable logging errors to a file.
+ *
+ * You can optionally just provide a string as the filepath to a log file - the "type" will simply default to "text".
*/
logFile : {
name : 'error_log.txt',
@@ -94,6 +99,8 @@ var LintRoller = {
* Call this method to de-lint your JavaScript codebase.
*/
init : function (config) {
+ this.log('*** LintRoller v' + this.getVersion() + ' ***\n', true);
+
//APPLY CONFIG OPTIONS
this.initConfigs(config);
@@ -110,6 +117,13 @@ var LintRoller = {
files : [],
/**
+ * @method
+ */
+ getVersion : function () {
+ return version;
+ },
+
+ /**
* @private
*/
initConfigs : function (config) {
@@ -125,13 +139,21 @@ var LintRoller = {
this.setLinters(config[i]);
}
else if (i === 'logFile') {
- if (config[i] === null) {
+ var logFile = config[i];
+
+ if (logFile === null) {
delete this.logFile;
}
else {
- //TODO: hard-coding this for now... may revisit later
- this.logFile.name = config[i].name;
- this.logFile.type = config[i].type;
+ if (typeof logFile === 'string') {
+ this.logFile.name = logFile;
+ //type will remain "text" by default
+ }
+ else {
+ //TODO: hard-coding object assignment this for now... may revisit later
+ this.logFile.name = logFile.name;
+ this.logFile.type = logFile.type;
+ }
}
}
else {
@@ -179,7 +201,6 @@ var LintRoller = {
this.logToStdOut(errorList);
}
-
process.exit(1);
},
@@ -261,7 +282,7 @@ var LintRoller = {
/**
* @private
*/
- parseFile : function(currPath, fileName) {
+ parseFile : function (currPath, fileName) {
var spacer = ' ',
childPath;
@@ -353,7 +374,6 @@ var LintRoller = {
this.log(output, true);
},
-
/**
* @private
*/
@@ -379,7 +399,12 @@ var LintRoller = {
break;
}
- this.fs.writeFileSync(this.logFile.name, output);
+ try {
+ this.fs.writeFileSync(this.logFile.name, output);
+ }
+ catch (err) {
+ this.log('\nAn error occurred while trying to generate new log file.', true);
+ }
},
formatTextOutput : function (errorList) {
@@ -425,7 +450,9 @@ var LintRoller = {
},
clearLogFile : function () {
- if (!this.logFile) { return; }
+ if (!this.logFile) {
+ return;
+ }
try {
this.log('\nDeleting old log file...', true);
View
34 tests/specs/LintRoller.js
@@ -23,6 +23,13 @@ describe('LintRoller', function () {
//TODO: can a useful test be written?
});
+ describe('getVersion()', function () {
+ it('should return a string version number', function () {
+ expect(typeof LintRoller.getVersion).toEqual('function');
+ expect(typeof LintRoller.getVersion()).toEqual('string');
+ });
+ });
+
describe('initConfigs()', function () {
afterEach(function () {
@@ -69,6 +76,29 @@ describe('LintRoller', function () {
expect(LintRoller.logFile.foo).toEqual(undefined);
});
+ it('should allow the "logFile" config to be a string instead of an object', function () {
+ expect(typeof LintRoller.logFile).toEqual('object');
+
+ LintRoller.initConfigs({
+ logFile : 'foo.txt'
+ });
+
+ expect(LintRoller.logFile.name).toEqual('foo.txt');
+
+ //default should remain the same
+ expect(LintRoller.logFile.type).toEqual('text');
+ });
+
+ it('should allow the "logFile" config to be null, which deletes logFile entirely', function () {
+ expect(typeof LintRoller.logFile).toEqual('object');
+
+ LintRoller.initConfigs({
+ logFile : null
+ });
+
+ expect(LintRoller.logFile).toEqual(undefined);
+ });
+
});
describe('setLinters()', function () {
@@ -108,6 +138,10 @@ describe('LintRoller', function () {
//TODO: can a useful test be written?
});
+ describe('logToStdOut()', function () {
+ //TODO: can a useful test be written?
+ });
+
describe('formatTextOutput()', function () {
});
View
65 tests/specs/linters/jsHint.js
@@ -0,0 +1,65 @@
+"use strict";
+
+describe('LintRoller - jsHint module', function () {
+ var JSHINT = require('../../../src/linters/jshint');
+
+ //SETUP / TEARDOWN
+ beforeEach(function () {
+
+ });
+
+ afterEach(function () {
+
+ });
+
+ //SPECS
+
+ it('should pass this sanity test', function () {
+ expect(JSHINT).toNotEqual(undefined);
+ });
+
+ describe('applyLintOptions()', function () {
+
+ //SETUP / TEARDOWN
+ beforeEach(function () {
+ JSHINT.options = {};
+ JSHINT.globals = {};
+ });
+
+ afterEach(function () {
+
+ });
+
+ var options = {
+ strict : true,
+ node : true,
+
+ globals : {
+ 'describe' : true,
+ 'beforeEach' : true,
+ 'afterEach' : true,
+ 'it' : true,
+ 'expect' : true,
+ 'spyOn' : true
+ }
+ };
+
+ it('should apply normal JSHint configs', function () {
+ expect(JSHINT.options.node).toEqual(undefined);
+
+ JSHINT.applyLintOptions(options);
+
+ expect(JSHINT.options.node).toEqual(true);
+ });
+
+ it('should apply "globals" to a different internal object', function() {
+ expect(JSHINT.globals).toEqual({});
+
+ JSHINT.applyLintOptions(options);
+
+ expect(JSHINT.globals).toEqual(options.globals);
+ });
+
+ });
+
+});
Please sign in to comment.
Something went wrong with that request. Please try again.