[daisy] [JIRA] Commented: (DSY-442) Perform javascript syntax checking ( before submitting document-tasks, in workflow definitions, with the daisy-js task)

Paul Focke (JIRA) issues at cocoondev.org
Fri Apr 6 02:10:20 CDT 2007


    [ http://issues.cocoondev.org//browse/DSY-442?page=comments#action_13109 ] 

Paul Focke commented on DSY-442:
--------------------------------

If we would use jslint to do client side syntax checking then we must take the typical Daisy global variables  into account. I had a quick peek into the jslint source [1] and it has support for standard js, Rhino or Yahoo widget global variables. If we want to add support for Daisy global variables then that means adding these to the source. From as far as I can see there are no hooks in place to easily add lists of global variables.

[1] http://www.jslint.com/fulljslint.js

> Perform javascript syntax checking ( before submitting document-tasks, in workflow definitions, with the daisy-js task)
> -----------------------------------------------------------------------------------------------------------------------
>
>          Key: DSY-442
>          URL: http://issues.cocoondev.org//browse/DSY-442
>      Project: Daisy
>         Type: Feature Wish
>     Reporter: Marc Portier
>     Priority: Minor

>
> Currently the round trip for seeing stupid syntax errors in the javascript used in Daisy at diferent locations is rather lengthy.
> This could be improved by using a syntac checker like jslint [1]
> * for the document tasks this could even be done ajax-like in the client to optimise the roundtrip
> * daisy-js could get a -check option
> * workflow definition javascript could be checked during th workflow validation process.
> NOTE: since we don't want to be dependant on the quality and up-to-dateness of this external jslint project, this feature should be optional (checkbox) so to allow submission of 'unchecked' but good-anyway (newer) javascript syntax.
> [1] http://www.jslint.com/lint.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list