Doesn't check javascript files with .jsp extension

122 views
Skip to first unread message

shwetha gattu

unread,
Sep 25, 2012, 6:54:46 PM9/25/12
to closure-lin...@googlegroups.com
 gjslint depot/ebay/liveforum4/skins/standard/scripts/blog-calendar.js 
The above command checks for errors present in the js file but if I use a jsp file to check for javascript errors it doesn't work

Andy Perelson

unread,
Sep 25, 2012, 9:25:51 PM9/25/12
to closure-lin...@googlegroups.com
You can use the --additional_extensions flag (comma separated list) to specify additional extensions that gjslint should treat as js files.

Andy

shwetha gattu

unread,
Sep 26, 2012, 12:54:51 PM9/26/12
to closure-lin...@googlegroups.com
Hi Andy,
Thanks for the reply.
I tried this and it doesn't check the file. Am I missing anything

 gjslint --nojsdoc --additional_extensions jsp -r depot/ebay/liveforum4/skins/standard/scripts/deferredJS.jsp
0 files checked, no errors found.

Thanks,
Shwetha

shwetha gattu

unread,
Sep 26, 2012, 1:01:20 PM9/26/12
to closure-lin...@googlegroups.com
Nevermind my previous post the below syntax worked
 gjslint --nojsdoc --additional_extensions jsp  depot/ebay/liveforum4/skins/standard/scripts/deferredJS.jsp


On Tuesday, September 25, 2012 6:26:12 PM UTC-7, ajp wrote:
Reply all
Reply to author
Forward
0 new messages