🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# C.47 JslLintTask The `JslLintTask` uses the [Javascript Lint](http://www.javascriptlint.com) program to check the sytax on one or more JavaScript source code files. **NB:** the Javascript lint program must be in the system path! Table C.56:聽Attributes NameTypeDescriptionDefaultRequired`executable``String`Path to JSL executablejslNo`file``String`Path to source filen/aNo, unless no `fileset` elements are present`haltonfailure``Boolean`Stop the build process if the linting process encounters an error.`false`No`haltonwarning``Boolean`Stop the build process if the linting process encounters a warning.`false`No`showwarnings``Boolean`Sets the flag if warnings should be shown.`true`No`cachefile``String`If set, enables writing of last-modified times to `cachefile`, to speed up processing of files that rarely changenoneNo`conffile``String`Path to JSL config filenoneNo`tofile``String`File to write list of 'bad files' to.n/aNo C.47.1 Example ``` <jsllint file="path/to/source.js"/> ``` Checking syntax of one particular source file. ``` <jsllint> <fileset dir="src"> <include name="**/*.js"/> </fileset> </jsllint> ``` Check syntax of a fileset of source files. C.47.2 Supported Nested Tags - `fileset`