The linter can do a much better job of detecting problems if it knows which globals a piece of code uses. If you see warnings like
ERROR: foo.js:10+6 - 11: Undocumented global foo for (var i = 0; i < n; ++i) {then it's possible you're unintentionally introducing a global into the local scope.
If you meant to use a global, just put a comment at the top of the file listing the globals you depend upon.
/** @provides foo */
As always, to turn this off, put the error message name
UNDOCUMENTED_GLOBAL
in the