Files
pmd/docs/pages/release_notes.md
Andreas Dangel 01c48e1ca7 [doc] Update release notes (#3960)
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-05-26 10:26:03 +02:00

1.8 KiB

title, permalink, keywords
title permalink keywords
PMD Release Notes pmd_release_notes.html changelog, release notes

{{ site.pmd.date }} - {{ site.pmd.version }}

The PMD team is pleased to announce PMD {{ site.pmd.version }}.

This is a {{ site.pmd.release_type }} release.

{% tocmaker is_release_notes_processor %}

New and noteworthy

CLI improvements

The PMD CLI now allows repeating the --dir (-d) and --rulesets (-R) options, as well as providing several space-separated arguments to either of them. For instance:

pmd -d src/main/java src/test/java -R rset1.xml -R rset2.xml

This also allows globs to be used on the CLI if your shell supports shell expansion. For instance, the above can be written

pmd -d src/*/java -R rset*.xml

Please use theses new forms instead of using comma-separated lists as argument to these options.

Fixed Issues

  • cli
    • #1445: [core] Allow CLI to take globs as parameters
  • html
    • #3955: [html] Improvements for handling text and comment nodes
  • java-design
    • #3874: [java] ImmutableField reports fields annotated with @Autowired (Spring) and @Mock (Mockito)
  • javascript
    • #3948: [js] Invalid operator error for method property in object literal

API Changes

Deprecated API

  • {% jdoc core::PMDConfiguration#getInputPaths() %} and {% jdoc core::PMDConfiguration#setInputPaths(java.lang.String) %} are now deprecated. A new set of methods have been added, which use lists and do not rely on comma splitting.

External Contributions

  • #3964: [java] Fix #3874 - ImmutableField: fix mockito/spring false positives - @lukelukes

{% endtocmaker %}