To check for problems in your script code during builds, you can enable the included version of JSLint. JSLint evaluates code for overall quality, including syntax, structure, and style conventions, which may help avoid runtime errors by finding issues that cause compiler errors.
For more information on the specific checks carried out by JSLint, see the JSLint instructions at www.jslint.com.
When JSLint is enabled, code is parsed during project builds. Any warnings generated are shown in the Problems view.
To enable JSLint during the build, do the following:
In the Eclipse software, click Window > Preferences.
In the category list, expand Lexmark, and then select JSLint > Enable JSLint.
If necessary, configure the checks for JSLint to carry out, and then click OK.
To identify LDD objects and indicate functions defined later in or outside of the script to JSLint, use the comment
.To identify the LDD top-level objects, include this comment in the script. For example,
/**jsLint caller,confirm,confirmTarget,context,credentials,printerIP,taskInfo */