This rule's default length threshold is 100 (meaning that if a scanned method has a length greater than 100 lines, PMD reports a rule violation), but you can lower that threshold if you like.
此规则的默认长度阈值是100(这意味着如果某个所扫描方法的长度超过100行,则PM d会报告出现一个违规),但是如果您喜欢的话,可以降低该阈值。
Currently PMD examines one source file at a time, which limits the scope of its rules.
目前PMD只能一次检查一个源码文件,这就对它的规则作用区域有所限制。
CPD: a freely available code duplication tool from the PMD team.
CPD:来自PMD小组的免费代码复制工具。
应用推荐