PMD in eclipse does not accept exclude-pattern

旧巷老猫 提交于 2019-12-04 08:21:45

You almost got it already! Use the following exclusion syntax:

<exclude-pattern>.*/test-output/.*</exclude-pattern>

This will exclude all files that have /test-output/ somewhere in their absolute path. The pattern is the same in Eclipse and Ant/Maven, as long as the excluded folders are also called test-output.

Additional explanations and examples can be found in the PMD documentation.

You can specify a working set under Project -> Properties -> PMD

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!