ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# C.46 JsHintTask This task runs [JSHint](http://www.jshint.com/), a tool that helps to detect errors and potential problems in JavaScript code. JSHint 2.5.6+ is supported, although latest JSHint is recommended. Table C.55:聽Attributes NameTypeDescriptionDefaultRequired`file``String`Single file to perform check on.n/aNo, unless no `fileset` elements are present`haltOnError``boolean`Should the build fail when there are errors in the JS code?falseNo`haltOnWarning``boolean`Should the build fail when there are warnings in the JS code?falseNo`reporter``String`JSHint reporter.checkstyleNo`checkstyleReportPath``String`Path where the the report in Checkstyle format should be saved.n/aNo`config``String`JSHint config path.n/aNo C.46.1 Example ``` <jshint haltonerror="false" haltOnWarning="false" reporter="jslint" checkstyleReportPath="${project.basedir}/build/checkstyle-jshint.xml"> <fileset dir="${project.basedir}/public_html/www/js"> <include name="**/**.js"/> <exclude name="js-cache/**"/> </fileset> </jshint> ``` C.46.2 Supported Nested Tags - `fileset`