PMD is a code analyzer that can help find common programming problems such as unused variables, empty catch blocks, unnecessary object creation, and more. Initially supporting Java code only, JavaScript, Salesforce.com Apex and Visualforce, PLSQL, Apache Velocity, XML and XSL are now also supported.
PMD 6.52 is officially released, and the content of this update is as follows:
new rules
- New Java Rules
InvalidJavaBeanBeans that do not conform to the JavaBeans API specification, such as beans that lack getters or setters, can be identified.
<rule ref="category/java/design.xml/InvalidJavaBean"/>
renaming rules
Java rules
BeanMembersShouldSerializehas been renamed toNonSerializableClass.It has been modified to only check forSerializableclass and report every field in it that is not serializable.Attributes
prefixDeprecated because in a serializable class all fields must be serializable regardless of their name.
modified rules
- rule
ClassNamingConventionshas a new attributetestClassPatternwhich is applied to the test class - rule
ImmutableFieldproperties ofignoredAnnotationsObsolete and no longer serves any purpose
For more details, please check: https://github.com/pmd/pmd/releases/tag/pmd_releases%2F6.52.0
#PMD #Released #Code #Analyzer #News Fast Delivery