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 5.7.0 |
檔案名稱 |
pmd-bin-5.7.0.zip
|
檔案大小 |
56.14MB |
系統 |
Windows (All Versions) |
支援語系 |
Multiple languages |
軟體類型 |
開源軟體 |
更新日期 |
2017-05-23 |
更新日誌 |
Modified Rules: The rule “FieldDeclarationsShouldBeAtStartOfClass” of the java-design ruleset has a new property ignoreInterfaceDeclarations. Setting this property to true ignores interface declarations, that precede fields. Renderers: Added the ‘empty’ renderer which will write nothing. Does not affect other behaviors, for example the command line PMD exit status will still indicate whether violations were found. Fixed Issues: General [core] Use maven wrapper and upgrade to maven 3.5.0. [core] Improve build time on travis. [java] Parser Error for empty statements. java-coupling [java] Law of Demeter violations for the Builder pattern. Java-design [java] FieldDeclarationsShouldBeAtStartOfClass: Add ability to ignore interfaces. [java] RuleSetCompatibility - not taking rename of UnusedModifier into account. Java-junit [java] Mockito verify method is not taken into account in JUnitTestsShouldIncludeAssert rule. Java-strings [java] [doc] Add suggestion to use StringUtils#isBlank for InefficientEmptyStringCheck. Jsp-basic [jsp] Wrong issue “JSP file should use UTF-8 encoding”. API Changes: The method net.sourceforge.pmd.util.StringUtil#htmlEncode(String) is deprecated. org.apache.commons.lang3.StringEscapeUtils#escapeHtml4(String) should be used instead. External Contributions: [vf] Adding proper AST support for negation expressions. [core] Fix XSS in HTML renderer. [java] Add property to ignore interfaces in FieldDeclarationsShouldBeAtStartOfClassRule. [core] Fix broken link in the site’s doc. [java] Added documentation details on InefficientEmptyStringCheck. [jsp] Fixed JspEncoding false positive. [java] Remove trailing whitespaces in design.xml. [apex] Fix documentation typo. [java] False positive for Law Of Demeter (Builder pattern). [java] Mockito verify method is not taken into account in JUnitTestsShouldIncludeAssert rule. |
作者 |
PMD |
官網 |
暫無資訊 |