ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 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`