- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adding the lines:
/*jslint browser:true, devel:true, white:true, vars:true */
/*global $:false, intel:false */
To the top of the javascript files helps quiet down things a lot as you suggested in another post. I had previously been just adding to the global statement. Adding this to app_framework still lets JSHint flag a number of issues. I like to use any and all resources to flag potential semantic errors because I create enough real bugs in my code. Are their any plans to (1) add the directives to system files automatically (2) make fixes to the files for the hints that JSLint still finds?
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for your feedback. You can use similar kind of feature with comes by default with xdk which JShint bracket editor. We use thirdparty plugin for this https://github.com/cfjedimaster
Go to Develop Tab-> file-> Extension manger you can see that it is already added.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I understand correctly, you'd like us to add those jshint directives to js files like app_framework in order to reduce the noise you see when running jsHint, is that correct? Are you running jshint outside the XDK?
I can forward the info to our developers and see what we can do.
Also, as Amrita points out, if you're using the editor that comes with the XDK, it will use jshint to flag errors as you develop, which may be preferable to running jshint periodically outside the editor.
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using the editor in the XDK. My concern too is masking other issues. If you add these directives, several JSHint warnings pop up in app_framework.
A former boss scolded me for using JSlint and fixing all the things it flagged--but in the end, squirrally problem reports from users seemed to vanish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your feedback! Your request has been forwarded to our Engineering team.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page