PMD 6.8.0 釋出,跨語言靜態程式碼自動分析工具
PMD 6.8.0 已釋出,PMD 是一個程式碼分析器,能夠幫助發現常見的程式設計瑕疵,像是未使用的變數、空的 catch 塊、不必要的物件建立等等。最初僅支援 Java 程式碼,目前還可支援 JavaScript、Salesforce.com Apex 和 Visualforce、PLSQL、Apache Velocity、XML 和 XSL 。
此次更新主要包括:
New Rules
-
The new Apex ruleofollow,noindex" target="_blank">
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 modifiedin 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.
下載地址: