It won't find every bug — you still need to do unit testing and acceptance testing — nor is PMD a substitute for a good debugger when you're hunting down a known bug.
PMD不可能找到每个bug,您仍然需要做单元测试和接受测试,在查找已知bug时,即使是PMD也无法替代一个好的调试器。
Keep in mind that there are many other tools available as Eclipse plugins, such as PMD and FindBugs to name a few, that can help you improve the quality of your code early in the development cycle.
请记住还有其他许多可用的Eclipse插件(比如pmd和FindBugs)能够帮助您在开发周期的早期改进代码质量。
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会报告出现一个违规),但是如果您喜欢的话,可以降低该阈值。
应用推荐