PMD 5.5.1 发布了,PMD是一款采用BSD协议发布的Java程序代码检查工具。该工具可以做到检查Java代码中是否含有未使用的变量、是否含有空的抓取块、是否含有不必要的对象等。该软件功能强大,扫描效率高,是Java程序员debug的好帮手。
该版本主要改进记录如下:
Pull Requests:
#101: [java] Improve multithreading performance: do not lock on classloader
#102: [apex] Restrict AvoidLogicInTrigger rule to max. 1 violation per file
#103: [java] [apex] Fix for 1501: CyclomaticComplexity rule causes OOM when class reporting is disabled
#104: [core] [java] Close opened file handles
apex #43: [apex] Basic apex unit test rules
Bugfixes:
Apex
#1501: [java] [apex] CyclomaticComplexity rule causes OOM when class reporting is disabled
Java
#1501: [java] [apex] CyclomaticComplexity rule causes OOM when class reporting is disabled
General
#1499: [core] CPD test break PMD 5.5.1 build on Windows
#1508: [core] [java] PMD is leaking file handles
PMD支持的编辑器包括:
JDeveloper、 Eclipse、JEdit、JBuilder、BlueJ、CodeGuide、NetBeans/Sun Java Studio Enterprise/Creator、IntelliJ IDEA、TextPad、Maven、Ant,、Gel、JCreator和Emacs。
下载地址:https://github.com/pmd/pmd/releases/download/pmd_releases%2F5.5.1/pmd-bin-5.5.1.zip
来自:开源中国社区

