56 lines
1.8 KiB
Markdown
56 lines
1.8 KiB
Markdown
---
|
|
title: PMD Release Notes
|
|
permalink: pmd_release_notes.html
|
|
keywords: 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:
|
|
```shell
|
|
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
|
|
```shell
|
|
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](https://github.com/pmd/pmd/issues/1445): \[core] Allow CLI to take globs as parameters
|
|
* html
|
|
* [#3955](https://github.com/pmd/pmd/pull/3955): \[html] Improvements for handling text and comment nodes
|
|
* java-design
|
|
* [#3874](https://github.com/pmd/pmd/issues/3874): \[java] ImmutableField reports fields annotated with @Autowired (Spring) and @Mock (Mockito)
|
|
* javascript
|
|
* [#3948](https://github.com/pmd/pmd/issues/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](https://github.com/pmd/pmd/pull/3964): \[java] Fix #3874 - ImmutableField: fix mockito/spring false positives - [@lukelukes](https://github.com/lukelukes)
|
|
|
|
{% endtocmaker %}
|
|
|