发布于 2016-11-06 01:01:27 | 205 次阅读 | 评论: 0 | 来源: 网友投递
PMD Java代码检查工具
PMD是一种开源分析Java代码错误的工具。与其他分析工具不同的是,PMD通过静态分析获知代码错误。也就是说,在不运行Java程序的情况下报告错误。PMD附带了许多可以直接使用的规则,利用这些规则可以找出Java源程序的许多问题。此外,用户还可以自己定义规则,检查Java代码是否符合某些特定的编码规范。
PMD 5.5.2 发布了。更新如下:
概要:
1 new language for CPD: Groovy
1 new rule: plsql-strictsyntax/MisplacedPragma
12 pull requests
17 bug fixes
新支持的语言:
CPD now supports Groovy. See PR#107.
Feature Requests and Improvements:
plsql
#1539: [plsql] Create new rule for strict syntax checking: MisplacedPragma
New Rules:
New Rules for plsql
plsql-strictsyntax: MisplacedPragma
Pull Requests:
#106: [java] CPD: Keep constructor names under ignoreIdentifiers
#107: [groovy] Initial support for CPD Groovy
#110: [java] Fix parser error (issue 1530)
#111: [java] Fix BooleanInstantiationRule for Java 8
#112: [java] Fix ClassCastException on CloneMethodMustImplementCloneable
#113: [java] Fix ClassCastException on SignatureDeclareThrowsException
#114: [core] Remove multihreading workaround for JRE5, as no PMD version supports running on JRE5 anymore
#115: [java] Simplify lambda parsing
#116: [core] [java] Improve collection usage
#117: [java] Improve symboltable performance
#118: [java] Simplify VariableDeclaratorId parsing
#119: [plsql] Fix PMD issue 1531- endless loop followed by OOM while parsing (PL)SQL
Bugfixes:
apex-apexunit
#1521: [apex] ApexUnitTestClassShouldHaveAsserts: Parsing error on APEX class: expected one element but was:
Java
java-basic/BooleanInstantiation
#1533: [java] BooleanInstantiation: ClassCastException with Annotation
java-comments
#1522: [java] CommentRequired: false positive
java-design/SingularField
#1494: [java] SingularField: lombok.Data false positive
java-imports/UnusedImports
#1529: [java] UnusedImports: The created rule violation has no class name
java-logging-java
java-typeresolution/CloneMethodMustImplementCloneable
java-typeresolution/SignatureDeclareThrowsException
#1535: [java] SignatureDeclareThrowsException: ClassCastException with Annotation
PLSQL
General
下载地址: