PMD 6.16.0 release, cross-language automatic static code analysis tool

PMD 6.16.0 released. PMD is a code analyzer that can help find common programming problems, such as unused variables, empty catch blocks, unnecessary object creation and so on. Initially only supports Java code, currently also supports JavaScript, Salesforce.com Apex and Visualforce, PLSQL, Apache Velocity, XML and XSL.

This is a minor update version Major update includes:

Update PMD Designer

PLSQL syntax update

Syntax has been updated to support inline constraints CREATE TABLE statement. Furthermore, CREATE TABLE statement can now follow the physical attributes and attribute tables. However, the resolution process will skip these properties.

CREATE VIEW statement now supports sub-query view.

EXTRACT function can now parse correctly. It is used to extract a value from a specified date and time field. You can now also resolve the correct date and time text.

CASE expression can now be used in the SELECT statement correctly.

When the specified column in the INSERT INTO clause now supports table alias.

New Rules

Java rules  DoubleBraceInitialization( ) java-bestpracticesnon-static initialization program detects anonymous class, also known as "double parentheses initialization."

Deprecated rules

Java rules AvoidFinalLocalVariable( java-codestyle) is now deprecated.

This release also change some rules, and fix a lot of bug, Details for update instructions .

Guess you like

Origin www.oschina.net/news/107899/pmd-6-16-0-released