I'm trying to validate some scripts with CSE, but unfortunately I'm unable to even do some basic configuration and need some help with that. Take this one-line test script as an example:
Code: Select all
var elem = document.getElementById("meow");
Then I went to Options->Validator Engine Options->Options->JavaScript->JSHint and entered "qwerty" into the "Options" Edit-Control. Suddenly, JSHint is perfectly fine with the script in question, no more warnings about "implied globals" and "unused variables". Huh?!?
Same with JSLint: Just enter "abcdefg" into the Options-Box and the remaining message vanishes as well.
Alternatively, try this script:
Code: Select all
var elem = document.getElementById("meow");
var n = 0;
++n
So how I configure the script validators?
Rene