- 目前版本5.7.0
- 更新日期2017-05-23
- 檔案大小56.14MB
- 檔案名稱pmd-bin-5.7.0.zip
- 作業系統Windows (All Versions)
- 支援語系Multiple languages
- 授權型式開源軟體
- 開發商 PMD
- 軟體分類Windows 軟體 / 開發者工具
軟體介紹
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.
更新日誌
5.7.0 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.
- 2019-01-29 PMD 6.11.0 43.91MB
- 2018-12-12 PMD 6.10.0 42.27MB
- 2018-10-30 PMD 6.9.0 42.18MB
- 2018-07-30 PMD 6.6.0 41.92MB
- 2018-03-28 PMD 6.2.0 41.04MB
- 2018-01-22 PMD 6.0.1 43.35MB
- 2017-07-03 PMD 5.8.1 56.19MB
- 2017-05-23 PMD 5.7.0 56.14MB