Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
pmd-doc-5.7.0.zip | 2017-05-20 | 62.9 MB | |
pmd-src-5.7.0.zip | 2017-05-20 | 28.5 MB | |
pmd-bin-5.7.0.zip | 2017-05-20 | 58.9 MB | |
PMD 5.7.0 (20-May-2017).tar.gz | 2017-05-20 | 27.1 MB | |
PMD 5.7.0 (20-May-2017).zip | 2017-05-20 | 28.5 MB | |
README.md | 2017-05-20 | 3.5 kB | |
Totals: 6 Items | 205.8 MB | 0 |
20-Mai-2017 - 5.7.0
The PMD team is pleased to announce PMD 5.7.0.
This is a minor release.
Table Of Contents
New and noteworthy
Modified Rules
-
The rule "FieldDeclarationsShouldBeAtStartOfClass" of the java-design ruleset has a new property
ignoreInterfaceDeclarations
. Setting this property totrue
ignores interface declarations, that precede fields. Example usage:<rule ref="rulesets/java/design.xml/FieldDeclarationsShouldBeAtStartOfClass"> <properties> <property name="ignoreInterfaceDeclarations" value="true"/> </properties> </rule>
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
- java
- #378: [java] Parser Error for empty statements
- java-coupling
- #1427: [java] Law of Demeter violations for the Builder pattern
- java-design
- java-junit
- #358: [java] Mockito verify method is not taken into account in JUnitTestsShouldIncludeAssert rule
- java-strings
- #334: [java] [doc] Add suggestion to use StringUtils#isBlank for InefficientEmptyStringCheck
- jsp-basic
- #369: [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
- #368: [vf] Adding proper AST support for negation expressions
- #372: [core] Fix XSS in HTML renderer
- #374: [java] Add property to ignore interfaces in FieldDeclarationsShouldBeAtStartOfClassRule
- #381: [core] Fix broken link in the site's doc
- #382: [java] Added documentation details on InefficientEmptyStringCheck
- #383: [jsp] Fixed JspEncoding false positive
- #390: [java] Remove trailing whitespaces in design.xml
- #391: [apex] Fix documentation typo
- #392: [java] False positive for Law Of Demeter (Builder pattern)
- #395: [java] Mockito verify method is not taken into account in JUnitTestsShouldIncludeAssert rule