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

Bruno Dumon (JIRA) issues at cocoondev.org
Thu Apr 5 09:59:20 CDT 2007


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

Bruno Dumon commented on DSY-442:
---------------------------------

Good idea, it brings up the following thoughts in me:
 * for the workflow definitions, we can as well ask Rhino to compile the script.
 * for the document tasks, many other errors besides syntax errors could occur, so having some feature to redo a task (with the option of taking only failed/unfinished documents) would also be a helpful addition (besides the syntax checking). If the syntax checking is done by a server round-trip, we could again consider using Rhino to test-compile the script before submitting the document task.

> 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