Ticket #2571 (new enhancement)
[patch] [ccla] syntax checking feature
| Reported by: | csawyer@… | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | future |
| Component: | Core | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by jburke) (diff)
Alter dojo.require() so that when code is pulled in from sources, we verify it against a syntax checker.. the beauty is then, your code STAYS clean because everytime you run it, it will get mad if you write bad syntax like I do. This is only true if you load dojo.syntax.*. Uses jslint.com's syntax checker currently. Other checkers could be used, but no others are supported currently.
it will only start checking after you have dojo.syntax.* loaded.
features:
allow stopping on error, or just warning on error. djConfig.syntaxWarn? Follow dojo JS guidelines as much as possible. allow it to skip dojo srcs, and only get upset with stuff in your custom namespace.
current implementation at: http://www.yuma.ca/tech/js/dojo/src/syntax/
demo/testcase: http://www.yuma.ca/tech/js/testsyntax.html