当我使用 maven-checkstyle-plugin 时,它总是对我的 src/main/resource 文件夹中的文件执行检查。我已经<excludes>
在我的 pom 文件中设置了指令,但它显然没有效果。在控制台上我看到:
[DEBUG] (f) excludes = **/env/*,/**/env/*,**/resources,/**/resources,**/resources/*,**/resources/**/*,/**/resources/**/*
[DEBUG] (f) includeTestSourceDirectory = false
[DEBUG] (f) includes = **\/*.java
[DEBUG] (f) sourceDirectory = /opt/Whitney/workspace/XXX/src/main/java
[DEBUG] (f) testSourceDirectory = /opt/Whitney/workspace/XXX/src/test/java
[DEBUG] -- end configuration --
[DEBUG] Added '/opt/Whitney/workspace/XXX/src/main/resources' as a source directory.
此跟踪表明它忽略了我的排除指令。<includes>
此外,即使我的指令要求,属性文件也会被 checkstyle 检查**\/*.java
如何防止 checkstyle 在我的资源文件夹中查找?