1

我想为 jshint 错误创建一个可靠的报告。我需要在配置中使用标签吗?

我尝试了以下但没有奏效

<plugin>
    <groupId>com.cj.jshintmojo</groupId>
    <artifactId>jshint-maven-plugin</artifactId>
    <version>2.4.1</version>
    <options>maxparams:3,indent,camelcase,eqeqeq,forin,immed,latedef,noarg,noempty,nonew</options>
    <executions>
        <execution>
            <goals>
                <goal>lint</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <globals>require,$,yourFunkyJavascriptModule</globals>
        <reporter>jslint</reporter>
        <reportFile>${basedir}/target/jshint.xml</reportFile>
        <failOnError>false</failOnError>
    </configuration>
</plugin>

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.6</version>     
                <configuration>
                    <reportsDirectories>
                        <reportsDirectory>${basedir}/target/</reportsDirectory>
                    </reportsDirectories>
                </configuration>
</plugin>

我还尝试在 jshintmojo 插件的标签中将 jslint 更改为 checkstyle。

有没有其他插件可以用来生成 jshint 报告?

4

0 回答 0