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

PMD 6.19.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.

It is noteworthy updates include:

Updated PMD Designer

  • This PMD release a new version of pmd-designer

Java Metrics

  • Adding a new metric "Class Fan Out Complexity"

The revised rules

  • Java rules InvalidLogMessageFormat and MoreThanOneLogger (java-errorprone) now support Log4j2
  • Java rules LawOfDemeter (java-design) is now ignored Builders, that is not assigned to a local variable, but the use of the direct method in the call chain
  • Java rules DataflowAnomalyAnalysis (java-errorprone) does not check UR abnormalities (undefined, then reference)
  • Java rules DoNotUseThreads (java-multithreading) has changed from its report on the use of java.lang.Runnable

This release also fixes a lot of bug, Details for update instructions .

Guess you like

Origin www.oschina.net/news/111053/pmd-6-19-0-released