PMD 5.4.2 发布,Java 程序代码检查工具

oschina
 oschina
发布于 2016年05月30日
收藏 42

PMD 5.4.2 发布了,该版本一些提升:

  • A JSON-renderer for PMD which is compatible with CodeClimate. See PR#83.

  • #1360: Provide backwards compatibility for PMD configuration file

  • CPD supports now Swift (see PR#33).

  • java-design/UseVargs: public static void main method is ignored now and so are methods, that are annotated with Override. See PR#79.

CLI 改进:

  • CPD: If a complete filename is specified, the language dependent filename filter is not applied. This allows to scan files, that are not using the standard file extension. If a directory is specified, the filename filter is still applied and only those files with the correct file extension of the language are scanned.

  • CPD: If no problems found, an empty report will be output instead of nothing. See also #1481

  • New command line parameter for PMD: -norulesetcompatibility - this disables the ruleset factory compatibility filter and fails, if e.g. an old rule name is used in the ruleset. See also #1360. This option is also available for the ant task: <noRuleSetCompatibility>true</noRuleSetCompatibility>.

PMD是一款采用BSD协议发布的Java程序代码检查工具。该工具可以做到检查Java代码中是否含有未使用的变量、是否含有空的抓取块、是否含有不必要的对象等。该软件功能强大,扫描效率高,是Java程序员debug的好帮手。

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/tag/pmd_releases%2F5.4.2

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 OSCHINA 社区 [http://www.oschina.net]
本文标题:PMD 5.4.2 发布,Java 程序代码检查工具
加载中

最新评论(3

风中蜡烛
风中蜡烛
使用sonar吧。里面集成了checkstyle,pmd等
noday
noday
好用吗?
CodingNew
CodingNew
好用吗?
返回顶部
顶部