PMD 6.8.0 发布,跨语言静态代码自动分析工具

栏目: Java · 发布时间: 5年前

内容简介:PMD 6.8.0 已发布,PMD 是一个代码分析器,能够帮助发现常见的编程瑕疵,像是未使用的变量、空的 catch 块、不必要的对象创建等等。最初仅支持 Java 代码,目前还可支持 JavaScript、Salesforce.com Apex 和 Visualforce、PLSQL、Apache Velocity、XML 和 XSL 。此次更新主要包括:

PMD 6.8.0 已发布,PMD 是一个代码分析器,能够帮助发现常见的编程瑕疵,像是未使用的变量、空的 catch 块、不必要的对象创建等等。最初仅支持 Java 代码,目前还可支持 JavaScript、Salesforce.com Apex 和 Visualforce、PLSQL、Apache Velocity、XML 和 XSL 。

此次更新主要包括:

New Rules

  • The new Apex rule ApexDoc ( apex-documentation )

    enforces the inclusion of ApexDoc on classes, interfaces, properties and methods; as well as some

    sanity rules for such docs (no missing parameters, parameters' order, and return value). By default,

    method overrides and test classes are allowed to not include ApexDoc.

Modified Rules

  • The rule MissingSerialVersionUID ( java-errorprone ) has been modified

    in order to recognize also missing  serialVersionUID fields in abstract classes, if they are serializable.

    Each individual class in the inheritance chain needs an own serialVersionUID field. See also  Should an abstract class have a serialVersionUID .

    This change might lead to additional violations in existing code bases.

更多细节可查阅发行说明

下载地址:


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

算法设计技巧与分析

算法设计技巧与分析

阿苏外耶 / 电子工业出版社 / 2003-01-01 / 40.0

本书由World Scienti一起来看看 《算法设计技巧与分析》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换