Currently PMD examines one source file at a time, which limits the scope of its rules.
目前PMD只能一次检查一个源码文件,这就对它的规则作用区域有所限制。
The PMD plugin for Eclipse provides a feature called CPD (or Copy Paste Detector), which finds duplicated code.
Eclipse的PMD插件提供了一项叫做CPD(或复制粘贴探测器)的功能,用于寻找重复的代码。
Invoking PMD with a custom ruleset file in Ant requires providing a path to the custom file through the rulesetfiles attribute of the PMD task as shown in in Listing 2.
用Ant工具调用带有定制规则集文件的PMD需要通过PMD任务的rulesetfiles属性提供一条到该定制文件的路径,如清单2中所示。
应用推荐