Check for forbidden globals in Grunt build #255

jakub-g opened this Issue Nov 30, 2012 · 2 comments


None yet

2 participants

jakub-g commented Nov 30, 2012

There should be an error raised in Grunt build whenever window and document are used in the framework files (the same way as it is now in the Maven build).

jakub-g commented Dec 4, 2012

It looks that changing "browser" : true to false in jshint.json will do.

After this change, the current code base still passes the validation -- due to the way how we obtain global scope:

Aria.$global = (function () {
     return this;

but when introducing a reference to window or document, either the JSHint catches it and produces a warning (in most of the files), or the framework doesn't load (in case of bootstrap-included files) due to reference error in Node env.

@jakub-g jakub-g added a commit to jakub-g/ariatemplates that referenced this issue Dec 4, 2012
@jakub-g jakub-g fix #255 check for globals in Grunt build
Close #260.
jakub-g commented Dec 11, 2012

Actually we could move require AT in inside the task function normalizeskin, so JSHint can execute even in case of syntax errors in core AT files.

@piuccio piuccio pushed a commit that closed this issue Dec 11, 2012
@jakub-g jakub-g + Fabio Crisci fix #255 check for globals in Grunt build
Close #260.
@piuccio piuccio closed this in 763f622 Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment