function about( readme,txt ){/* _ _____ _ _ _ _ | |/ ____| | | | (_) | | | | (___ | |__| |_ _ __ | |_ _ | |\___ \ | __ | | '_ \| __| | |__| |____) | | | | | | | | | |_ \____/|_____/ |_| |_|_|_| |_|\__| webapp by dandavis. (c)2012 Paste some JavaScript code in this box to analyze your code using JSHINT. You can drag and drop a file here if that's better for you. //developers: you can also use this webapp as an embeded or pop-up tool for any existing project. there are many ways of passing code to this box upon pageload: 1. window.name window.open( "//danmml.com/jshint/", strCodeToCheck); 2. location.hash (location.href|iframe.src)="//danmml.com/jshint/#" + strCodeToCheck; 3. showModalDialog objReport=showModalDialog("//danmml.com/jshint/", strCodeToCheck); 4. postMessage frame.postMessage( strCodeToCheck, "*"); This app never transmits your code to any server; it runs solely in your browser: privacy's nice. ######################################################*/ return "this tool rocks"; /being bad on purpose here/// see code check at right ---->> }
autofix
X
Options...
JSHint Options
if automatic semicolon insertion should be tolerated
if bitwise operators should not be allowed
if advanced usage of assignments should be allowed
if the standard browser globals should be predefined
if identifiers should be required in camel case
if CouchDB globals should be predefined
if curly braces around all blocks should be required
if debugger statements should be allowed
if logging globals should be predefined (console, alert, etc.)
if Dojo Toolkit globals should be predefined
if === should be required
if == null comparisons should be tolerated
if ES5 syntax should be allowed
if es.next specific syntax should be allowed
if eval should be allowed
if ExpressionStatement should be allowed as Programs
if for in statements must filter
if only function scope should be used for scope tests
if global "use strict"; should be allowed (also enables 'strict')
if immediate invocations must be wrapped in parens
if the `__iterator__` property should be allowed
if jQuery globals should be predefined
if semicolons may be ommitted for the trailing statements inside of a one-line blocks.
if the use before definition should not be tolerated
if line breaks should not be checked
if line breaks should not be checked around commas
if functions should be allowed to be defined within loops
if MooTools globals should be predefined
allow multiline strings
if constructor names must be capitalized
if arguments.caller and arguments.callee should be disallowed
if the Node.js environment globals should be predefined
if empty blocks should be disallowed
if using `new` for side-effects should be disallowed
if non-standard (but widely adopted) globals should be predefined
if names should be checked
if only one var statement per function should be allowed
if one case switch statements should be allowed
if the scan should stop on first error
if increment/decrement should not be allowed
if the `__proto__` property should be allowed
if Prototype and Scriptaculous globals should be predefined
if unescaped first/last dash (-) inside brackets should be tolerated
if the . should not be allowed in regexp literals
if the Rhino environment globals should be predefined
if variables should be declared before used
if variables should be always used
if script-targeted URLs should be tolerated
if variable shadowing should be tolerated
if smarttabs should be tolerated(www.emacswiki.org/emacs/SmartTabs)
require the "use strict"; pragma
if all forms of subscript notation are tolerated
if `new function () { ... };` and `new Object;` should be tolerated
if trailing whitespace rules apply
if 'this' inside a non-constructor function is valid. This is a function scoped option only.
if with statements should be allowed
if strict whitespace rules apply
if Web Worker script symbols should be allowed
if the Windows Scripting Host environment globals should be predefined