Table of Contents
25-October-2024 - 7.7.0-SNAPSHOT
The PMD team is pleased to announce PMD 7.7.0-SNAPSHOT.
This is a minor release.
🚀 New and noteworthy
🌟 Rule Changes
Renamed Rules
Several rules for unit testing have been renamed to better reflect their actual scope. Lots of them were called after JUnit / JUnit 4, even when they applied to JUnit 5 and / or TestNG.
UnitTestShouldUseAfterAnnotation
(Java Best Practices) has been renamed fromJUnit4TestShouldUseAfterAnnotation
.UnitTestShouldUseBeforeAnnotation
(Java Best Practices) has been renamed fromJUnit4TestShouldUseBeforeAnnotation
.UnitTestShouldUseTestAnnotation
(Java Best Practices) has been renamed fromJUnit4TestShouldUseTestAnnotation
.UnitTestAssertionsShouldIncludeMessage
(Java Best Practices) has been renamed fromJUnitAssertionsShouldIncludeMessage
.UnitTestContainsTooManyAsserts
(Java Best Practices) has been renamed fromJUnitTestContainsTooManyAsserts
.UnitTestsShouldIncludeAssert
(Java Best Practices) has been renamed fromJUnitTestsShouldIncludeAssert
.
The old rule names still work but are deprecated.
🐛 Fixed Issues
- java
- #4532: [java] Rule misnomer for JUnit* rules
🚨 API Changes
✨ Merged pull requests
- #4965: [java] Rename JUnit rules with overly restrictive names - Juan Martín Sotuyo Dodero (@jsotuyod)
- #5241: \Ignore javacc code in coverage report - Juan Martín Sotuyo Dodero (@jsotuyod)