如何将JsHint与maven集成
说我关注了pom.xml
com.cj.jshintmojo jshint - Maven的插件 皮棉 2.1.9 maxparams:3,缩进,驼峰,eqeqeq,forin,IMMED,latedef,noarg,noempty, nonew,-W033,-W099
<globals>require,$,yourFunkyJavascriptModule</globals> <directories> <directory>src/main/javascript</directory> </directories> <excludes> <exclude>src/main/webapp/hackyScript.js</exclude> <exclude>src/main/webapp/myDirectoryForThirdyPartyStuff</exclude> </excludes> <reporter>jslint</reporter> <reportFile>target/jshint.xml</reportFile> <failOnError>false</failOnError> </configuration>
如果我在选项选项卡中使用所有字符串(如eqeqeq,forin,immed,latedef,noarg,noempty除了WXXX)那么它工作正常但如果我使用2个或更多连续的JsHint选项(如(-WXXX))则会出错(糟糕的选择WXXX)。
我需要JsHint警告的所有字符串值而不是WXXX