Maven Mojo是否向后使用jslint nomen标志?

Maven Mojo是否向后使用jslint nomen标志?,maven,jslint,mojo,Maven,Jslint,Mojo,在我用于项目的pom.xml文件中,我为jsLint设置了以下内容: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jslint-maven-plugin</artifactId> <version>1.0.1</version> <executions> <execut

在我用于项目的pom.xml文件中,我为jsLint设置了以下内容:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jslint-maven-plugin</artifactId>
    <version>1.0.1</version>
    <executions>
            <execution>
                    <goals>
                            <goal>jslint</goal>
                            <goal>test-jslint</goal>
                    </goals>
            </execution>
    </executions>
    <configuration>

            <excludes>
                    <exclude>**/vendor/*</exclude>
            </excludes>
    </configuration>
</plugin>
在该文件中,我有一个名为:

Api.prototype._call = function (query) {...};
我这样称呼它:

Api.prototype.product = function (options) {
            ...
            return this._call(query);
        };
现在来看看奇怪的事情……

如果使用
mvn clean install
编译此文件,则会收到以下错误消息:

api.js:45:29:Unexpected dangling '_' in '_call'.
但是如果我将nomen的标志恢复为
nomen:false
mvn不会抱怨


另一方面,这导致IntelliJ用红色标记代码的
\u调用部分,因为它是烧嘴jsLint。

它看起来确实像“jsLint maven插件”插件中的一个bug

如果不应检查名称的首字母或尾随字母,则“say nomen”为“
true
”。您还可以使用验证

“jslint maven plugin”源代码似乎是反向的:如果你在中搜索“nomen”,你会看到他们将它映射到一个名为
disallowDanglingUnderbarInIdentifiers
——与
nomen
的意思相反的东西。(我不完全确定这是如何转换为覆盖JS文件中的配置设置的,但这似乎很可疑)

如果有什么安慰的话,看起来你可以使用插件

api.js:45:29:Unexpected dangling '_' in '_call'.