PMD

PMD 6.6.0

PMD
開源軟體

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, XML, XSL.

Available Plugins include:

  • Maven PMD.
  • Eclipse.
  • NetBeans.
  • JBuilder.
  • JDeveloper.
  • IntelliJ IDEA.

PMD additionally includes CPD, the copy-paste-detector. CPD finds duplicated code in Java, C, C++, C#, PHP, Ruby, Fortran, JavaScript, PLSQL, Apache Velocity, Scala, Objective C, Matlab, Python, Go.

軟體資訊
檔案版本 PMD 6.6.0
檔案名稱 pmd-bin-6.6.0.zip
檔案大小 41.92MB
系統 Windows (All Versions)
支援語系 Multiple languages
軟體類型 開源軟體
更新日期 2018-07-30
更新日誌

Java 11 Support.
New Rules:
The new Java rule LocalVariableNamingConventions (java-codestyle) detects local variable names that don’t comply to a given convention. It defaults to standard Java convention of using camelCase, but can be configured. Special cases can be configured for final variables and caught exceptions’ names.
The new Java rule FormalParameterNamingConventions (java-codestyle) detects formal parameter names that don’t comply to a given convention. It defaults to standard Java convention of using camelCase, but can be configured. Special cases can be configured for final parameters and lambda parameters (considering whether they are explicitly typed or not).
Modified Rules:
The Java rules AccessorClassGeneration and AccessorMethodGeneration (both in category java-bestpractices) have been modified to be only valid up until Java 10. Java 11 adds support for JEP 181: Nest-Based Access Control which avoids the generation of accessor classes / methods altogether.
Fixed Issues:
Core -
“Unsupported build listener” in gradle build.
Error in sed expression on line 82 of run.sh while detecting installed version of Java.
Doc -
TOC links don’t work?
Java-codestyle -
CommentDefaultAccessModifier false positive with nested interfaces (regression from 6.4.0).
UnnecessaryFullyQualifiedName false positive for the same name method.
Java-design-
CyclomaticComplexityRule counts ?-operator twice.
NPath complexity false negative due to overflow.
Plsql-
ParseException for CREATE TABLE.
ParseException when parsing VIEW.
ParseException when parsing EXECUTE IMMEDIATE.
UI
XPath autocomplete arrows on first and last items.
API Changes:
The findDescendantsOfType methods in net.sourceforge.pmd.lang.ast.AbstractNode no longer search for exact type matches, but will match subclasses, too. That means, it’s now possible to look for abstract node types such as AbstractJavaTypeNode and not only for it’s concrete subtypes.
External Contributions:
[UI] XPath AutoComplete.
[Doc] Minor typo fix in installation.md.
[Ci] [GSoC] Upload baseline of pmdtester automatically.

作者 PMD
官網 暫無資訊