dependabot[bot] opened a new pull request, #711: URL: https://github.com/apache/maven-pmd-plugin/pull/711
Bumps `pmdVersion` from 7.23.0 to 7.25.0. Updates `net.sourceforge.pmd:pmd-core` from 7.23.0 to 7.25.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pmd/pmd/releases">net.sourceforge.pmd:pmd-core's releases</a>.</em></p> <blockquote> <h2>PMD 7.25.0 (29-May-2026)</h2> <h2>29-May-2026 - 7.25.0</h2> <p>The PMD team is pleased to announce PMD 7.25.0.</p> <p>This is a minor release.</p> <h3>Table Of Contents</h3> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-and-noteworthy">ποΈ New and noteworthy</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#updated-antlr-library-to-4132">Updated ANTLR library to 4.13.2</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-and-changed-rules">ποΈ New and Changed Rules</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-rules">New Rules</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#changed-rules">Changed Rules</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#renamed-rules-and-properties">Renamed rules and properties</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#fixed-issues">ποΈ Fixed Issues</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#api-changes">π¨οΈ API Changes</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#deprecations">Deprecations</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#experimental-api">Experimental API</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#merged-pull-requests">β¨οΈ Merged pull requests</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#dependency-updates">π¦οΈ Dependency updates</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#stats">ποΈ Stats</a></li> </ul> <h3>ποΈ New and noteworthy</h3> <h4>Updated ANTLR library to 4.13.2</h4> <p>We have updated the ANTLR library (parser generator) from 4.9.3 to the latest version 4.13.2, in order to be able to use the latest version of Apex parser library.</p> <p>This is an incompatible update: In case you use custom language modules based on ANTLR, you need to make sure to regenerate all of your lexers and parsers with the new ANTLR version.</p> <p>For the ANTLR based language modules, that PMD ships (kotlin and swift and various CPD modules), this is already done.</p> <h3>ποΈ New and Changed Rules</h3> <h4>New Rules</h4> <ul> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_errorprone.html#junitjupitertestnoprivatemodifier"><code>JUnitJupiterTestNoPrivateModifier</code></a> find JUnit test classes and methods that are private. Test classes, test methods, and lifecycle methods are not required to be public, but they must not be private. Otherwise, they wonβt be found by the test framework.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_codestyle.html#unnecessaryblock"><code>UnnecessaryBlock</code></a> reports blocks that are unnecessary as they don't introduce a new scope. This rule helps simplify code structure by identifying and flagging redundant blocks that can make code harder to read and may be misleading.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_codestyle.html#variabledeclarationusagedistance"><code>VariableDeclarationUsageDistance</code></a> flags local variables that are declared far from their usage, which can make code harder to read. The rule has a property <code>maxDistance</code> that allows to configure the maximum allowed distance between declaration and usage.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_bestpractices.html#assertstatementintest"><code>AssertStatementInTest</code></a> detects usages of <code>assert</code> statement in tests. These should be replaced by framework assertion methods such as <code>assertEquals</code>.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pmd/pmd/commit/418f8b7413a1c0ecb3ee409b6edeedeae5c8df39"><code>418f8b7</code></a> [release] prepare release pmd_releases/7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/ba31ce2d90b3038a965baca8e8010a03cca77f71"><code>ba31ce2</code></a> Prepare pmd release 7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/ced4fdc8e55f7edccf02f1593c7efcad1ad31b38"><code>ced4fdc</code></a> Update contributors for 7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/3c6536137877beaf82d3ec82e523648c321ba88e"><code>3c65361</code></a> chore(deps-dev): bump build-tools from 37 to 38 (<a href="https://redirect.github.com/pmd/pmd/issues/6729">#6729</a>)</li> <li><a href="https://github.com/pmd/pmd/commit/f60c490b735ae83045f415816e896e657f3222b9"><code>f60c490</code></a> chore(deps-dev): bump build-tools from 37 to 38</li> <li><a href="https://github.com/pmd/pmd/commit/6736c6028bf90dd64cfae0fc8a593b3702d2a82e"><code>6736c60</code></a> [java] UnnecessaryBooleanAssertion: Use InvocationMatcher to find assertions ...</li> <li><a href="https://github.com/pmd/pmd/commit/3f1de359a719b2f6cd27178a7134a951e690504f"><code>3f1de35</code></a> [doc] Update release notes (<a href="https://redirect.github.com/pmd/pmd/issues/6712">#6712</a>)</li> <li><a href="https://github.com/pmd/pmd/commit/25f30fe83331ebb529a793ddd8ebad515e34b535"><code>25f30fe</code></a> [java] Fix <a href="https://redirect.github.com/pmd/pmd/issues/4350">#4350</a>: Fix ClassNamingConventions by teaching TestFrameworkUtil ab...</li> <li><a href="https://github.com/pmd/pmd/commit/f306438a4f0de55179db80816f082fa290b2df5e"><code>f306438</code></a> [java] Part of <a href="https://redirect.github.com/pmd/pmd/issues/4841">#4841</a>: Deprecate unnecessary public methods in FieldDeclaratio...</li> <li><a href="https://github.com/pmd/pmd/commit/ca5bfe4a6660f48fe42278092162ed5f5c7b414e"><code>ca5bfe4</code></a> [java] Fix <a href="https://redirect.github.com/pmd/pmd/issues/6719">#6719</a>: UseStandardCharsets UTF-32 on Java >= 22 (<a href="https://redirect.github.com/pmd/pmd/issues/6726">#6726</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pmd/pmd/compare/pmd_releases/7.23.0...pmd_releases/7.25.0">compare view</a></li> </ul> </details> <br /> Updates `net.sourceforge.pmd:pmd-java` from 7.23.0 to 7.25.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pmd/pmd/releases">net.sourceforge.pmd:pmd-java's releases</a>.</em></p> <blockquote> <h2>PMD 7.25.0 (29-May-2026)</h2> <h2>29-May-2026 - 7.25.0</h2> <p>The PMD team is pleased to announce PMD 7.25.0.</p> <p>This is a minor release.</p> <h3>Table Of Contents</h3> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-and-noteworthy">ποΈ New and noteworthy</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#updated-antlr-library-to-4132">Updated ANTLR library to 4.13.2</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-and-changed-rules">ποΈ New and Changed Rules</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-rules">New Rules</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#changed-rules">Changed Rules</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#renamed-rules-and-properties">Renamed rules and properties</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#fixed-issues">ποΈ Fixed Issues</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#api-changes">π¨οΈ API Changes</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#deprecations">Deprecations</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#experimental-api">Experimental API</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#merged-pull-requests">β¨οΈ Merged pull requests</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#dependency-updates">π¦οΈ Dependency updates</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#stats">ποΈ Stats</a></li> </ul> <h3>ποΈ New and noteworthy</h3> <h4>Updated ANTLR library to 4.13.2</h4> <p>We have updated the ANTLR library (parser generator) from 4.9.3 to the latest version 4.13.2, in order to be able to use the latest version of Apex parser library.</p> <p>This is an incompatible update: In case you use custom language modules based on ANTLR, you need to make sure to regenerate all of your lexers and parsers with the new ANTLR version.</p> <p>For the ANTLR based language modules, that PMD ships (kotlin and swift and various CPD modules), this is already done.</p> <h3>ποΈ New and Changed Rules</h3> <h4>New Rules</h4> <ul> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_errorprone.html#junitjupitertestnoprivatemodifier"><code>JUnitJupiterTestNoPrivateModifier</code></a> find JUnit test classes and methods that are private. Test classes, test methods, and lifecycle methods are not required to be public, but they must not be private. Otherwise, they wonβt be found by the test framework.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_codestyle.html#unnecessaryblock"><code>UnnecessaryBlock</code></a> reports blocks that are unnecessary as they don't introduce a new scope. This rule helps simplify code structure by identifying and flagging redundant blocks that can make code harder to read and may be misleading.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_codestyle.html#variabledeclarationusagedistance"><code>VariableDeclarationUsageDistance</code></a> flags local variables that are declared far from their usage, which can make code harder to read. The rule has a property <code>maxDistance</code> that allows to configure the maximum allowed distance between declaration and usage.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_bestpractices.html#assertstatementintest"><code>AssertStatementInTest</code></a> detects usages of <code>assert</code> statement in tests. These should be replaced by framework assertion methods such as <code>assertEquals</code>.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pmd/pmd/commit/418f8b7413a1c0ecb3ee409b6edeedeae5c8df39"><code>418f8b7</code></a> [release] prepare release pmd_releases/7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/ba31ce2d90b3038a965baca8e8010a03cca77f71"><code>ba31ce2</code></a> Prepare pmd release 7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/ced4fdc8e55f7edccf02f1593c7efcad1ad31b38"><code>ced4fdc</code></a> Update contributors for 7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/3c6536137877beaf82d3ec82e523648c321ba88e"><code>3c65361</code></a> chore(deps-dev): bump build-tools from 37 to 38 (<a href="https://redirect.github.com/pmd/pmd/issues/6729">#6729</a>)</li> <li><a href="https://github.com/pmd/pmd/commit/f60c490b735ae83045f415816e896e657f3222b9"><code>f60c490</code></a> chore(deps-dev): bump build-tools from 37 to 38</li> <li><a href="https://github.com/pmd/pmd/commit/6736c6028bf90dd64cfae0fc8a593b3702d2a82e"><code>6736c60</code></a> [java] UnnecessaryBooleanAssertion: Use InvocationMatcher to find assertions ...</li> <li><a href="https://github.com/pmd/pmd/commit/3f1de359a719b2f6cd27178a7134a951e690504f"><code>3f1de35</code></a> [doc] Update release notes (<a href="https://redirect.github.com/pmd/pmd/issues/6712">#6712</a>)</li> <li><a href="https://github.com/pmd/pmd/commit/25f30fe83331ebb529a793ddd8ebad515e34b535"><code>25f30fe</code></a> [java] Fix <a href="https://redirect.github.com/pmd/pmd/issues/4350">#4350</a>: Fix ClassNamingConventions by teaching TestFrameworkUtil ab...</li> <li><a href="https://github.com/pmd/pmd/commit/f306438a4f0de55179db80816f082fa290b2df5e"><code>f306438</code></a> [java] Part of <a href="https://redirect.github.com/pmd/pmd/issues/4841">#4841</a>: Deprecate unnecessary public methods in FieldDeclaratio...</li> <li><a href="https://github.com/pmd/pmd/commit/ca5bfe4a6660f48fe42278092162ed5f5c7b414e"><code>ca5bfe4</code></a> [java] Fix <a href="https://redirect.github.com/pmd/pmd/issues/6719">#6719</a>: UseStandardCharsets UTF-32 on Java >= 22 (<a href="https://redirect.github.com/pmd/pmd/issues/6726">#6726</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pmd/pmd/compare/pmd_releases/7.23.0...pmd_releases/7.25.0">compare view</a></li> </ul> </details> <br /> Updates `net.sourceforge.pmd:pmd-javascript` from 7.23.0 to 7.25.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pmd/pmd/releases">net.sourceforge.pmd:pmd-javascript's releases</a>.</em></p> <blockquote> <h2>PMD 7.25.0 (29-May-2026)</h2> <h2>29-May-2026 - 7.25.0</h2> <p>The PMD team is pleased to announce PMD 7.25.0.</p> <p>This is a minor release.</p> <h3>Table Of Contents</h3> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-and-noteworthy">ποΈ New and noteworthy</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#updated-antlr-library-to-4132">Updated ANTLR library to 4.13.2</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-and-changed-rules">ποΈ New and Changed Rules</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-rules">New Rules</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#changed-rules">Changed Rules</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#renamed-rules-and-properties">Renamed rules and properties</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#fixed-issues">ποΈ Fixed Issues</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#api-changes">π¨οΈ API Changes</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#deprecations">Deprecations</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#experimental-api">Experimental API</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#merged-pull-requests">β¨οΈ Merged pull requests</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#dependency-updates">π¦οΈ Dependency updates</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#stats">ποΈ Stats</a></li> </ul> <h3>ποΈ New and noteworthy</h3> <h4>Updated ANTLR library to 4.13.2</h4> <p>We have updated the ANTLR library (parser generator) from 4.9.3 to the latest version 4.13.2, in order to be able to use the latest version of Apex parser library.</p> <p>This is an incompatible update: In case you use custom language modules based on ANTLR, you need to make sure to regenerate all of your lexers and parsers with the new ANTLR version.</p> <p>For the ANTLR based language modules, that PMD ships (kotlin and swift and various CPD modules), this is already done.</p> <h3>ποΈ New and Changed Rules</h3> <h4>New Rules</h4> <ul> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_errorprone.html#junitjupitertestnoprivatemodifier"><code>JUnitJupiterTestNoPrivateModifier</code></a> find JUnit test classes and methods that are private. Test classes, test methods, and lifecycle methods are not required to be public, but they must not be private. Otherwise, they wonβt be found by the test framework.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_codestyle.html#unnecessaryblock"><code>UnnecessaryBlock</code></a> reports blocks that are unnecessary as they don't introduce a new scope. This rule helps simplify code structure by identifying and flagging redundant blocks that can make code harder to read and may be misleading.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_codestyle.html#variabledeclarationusagedistance"><code>VariableDeclarationUsageDistance</code></a> flags local variables that are declared far from their usage, which can make code harder to read. The rule has a property <code>maxDistance</code> that allows to configure the maximum allowed distance between declaration and usage.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_bestpractices.html#assertstatementintest"><code>AssertStatementInTest</code></a> detects usages of <code>assert</code> statement in tests. These should be replaced by framework assertion methods such as <code>assertEquals</code>.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pmd/pmd/commit/418f8b7413a1c0ecb3ee409b6edeedeae5c8df39"><code>418f8b7</code></a> [release] prepare release pmd_releases/7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/ba31ce2d90b3038a965baca8e8010a03cca77f71"><code>ba31ce2</code></a> Prepare pmd release 7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/ced4fdc8e55f7edccf02f1593c7efcad1ad31b38"><code>ced4fdc</code></a> Update contributors for 7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/3c6536137877beaf82d3ec82e523648c321ba88e"><code>3c65361</code></a> chore(deps-dev): bump build-tools from 37 to 38 (<a href="https://redirect.github.com/pmd/pmd/issues/6729">#6729</a>)</li> <li><a href="https://github.com/pmd/pmd/commit/f60c490b735ae83045f415816e896e657f3222b9"><code>f60c490</code></a> chore(deps-dev): bump build-tools from 37 to 38</li> <li><a href="https://github.com/pmd/pmd/commit/6736c6028bf90dd64cfae0fc8a593b3702d2a82e"><code>6736c60</code></a> [java] UnnecessaryBooleanAssertion: Use InvocationMatcher to find assertions ...</li> <li><a href="https://github.com/pmd/pmd/commit/3f1de359a719b2f6cd27178a7134a951e690504f"><code>3f1de35</code></a> [doc] Update release notes (<a href="https://redirect.github.com/pmd/pmd/issues/6712">#6712</a>)</li> <li><a href="https://github.com/pmd/pmd/commit/25f30fe83331ebb529a793ddd8ebad515e34b535"><code>25f30fe</code></a> [java] Fix <a href="https://redirect.github.com/pmd/pmd/issues/4350">#4350</a>: Fix ClassNamingConventions by teaching TestFrameworkUtil ab...</li> <li><a href="https://github.com/pmd/pmd/commit/f306438a4f0de55179db80816f082fa290b2df5e"><code>f306438</code></a> [java] Part of <a href="https://redirect.github.com/pmd/pmd/issues/4841">#4841</a>: Deprecate unnecessary public methods in FieldDeclaratio...</li> <li><a href="https://github.com/pmd/pmd/commit/ca5bfe4a6660f48fe42278092162ed5f5c7b414e"><code>ca5bfe4</code></a> [java] Fix <a href="https://redirect.github.com/pmd/pmd/issues/6719">#6719</a>: UseStandardCharsets UTF-32 on Java >= 22 (<a href="https://redirect.github.com/pmd/pmd/issues/6726">#6726</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pmd/pmd/compare/pmd_releases/7.23.0...pmd_releases/7.25.0">compare view</a></li> </ul> </details> <br /> Updates `net.sourceforge.pmd:pmd-jsp` from 7.23.0 to 7.25.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pmd/pmd/releases">net.sourceforge.pmd:pmd-jsp's releases</a>.</em></p> <blockquote> <h2>PMD 7.25.0 (29-May-2026)</h2> <h2>29-May-2026 - 7.25.0</h2> <p>The PMD team is pleased to announce PMD 7.25.0.</p> <p>This is a minor release.</p> <h3>Table Of Contents</h3> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-and-noteworthy">ποΈ New and noteworthy</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#updated-antlr-library-to-4132">Updated ANTLR library to 4.13.2</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-and-changed-rules">ποΈ New and Changed Rules</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#new-rules">New Rules</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#changed-rules">Changed Rules</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#renamed-rules-and-properties">Renamed rules and properties</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#fixed-issues">ποΈ Fixed Issues</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#api-changes">π¨οΈ API Changes</a> <ul> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#deprecations">Deprecations</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#experimental-api">Experimental API</a></li> </ul> </li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#merged-pull-requests">β¨οΈ Merged pull requests</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#dependency-updates">π¦οΈ Dependency updates</a></li> <li><a href="https://github.com/pmd/pmd/blob/HEAD/#stats">ποΈ Stats</a></li> </ul> <h3>ποΈ New and noteworthy</h3> <h4>Updated ANTLR library to 4.13.2</h4> <p>We have updated the ANTLR library (parser generator) from 4.9.3 to the latest version 4.13.2, in order to be able to use the latest version of Apex parser library.</p> <p>This is an incompatible update: In case you use custom language modules based on ANTLR, you need to make sure to regenerate all of your lexers and parsers with the new ANTLR version.</p> <p>For the ANTLR based language modules, that PMD ships (kotlin and swift and various CPD modules), this is already done.</p> <h3>ποΈ New and Changed Rules</h3> <h4>New Rules</h4> <ul> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_errorprone.html#junitjupitertestnoprivatemodifier"><code>JUnitJupiterTestNoPrivateModifier</code></a> find JUnit test classes and methods that are private. Test classes, test methods, and lifecycle methods are not required to be public, but they must not be private. Otherwise, they wonβt be found by the test framework.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_codestyle.html#unnecessaryblock"><code>UnnecessaryBlock</code></a> reports blocks that are unnecessary as they don't introduce a new scope. This rule helps simplify code structure by identifying and flagging redundant blocks that can make code harder to read and may be misleading.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_codestyle.html#variabledeclarationusagedistance"><code>VariableDeclarationUsageDistance</code></a> flags local variables that are declared far from their usage, which can make code harder to read. The rule has a property <code>maxDistance</code> that allows to configure the maximum allowed distance between declaration and usage.</li> <li>The new Java rule <a href="https://docs.pmd-code.org/pmd-doc-7.25.0/pmd_rules_java_bestpractices.html#assertstatementintest"><code>AssertStatementInTest</code></a> detects usages of <code>assert</code> statement in tests. These should be replaced by framework assertion methods such as <code>assertEquals</code>.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pmd/pmd/commit/418f8b7413a1c0ecb3ee409b6edeedeae5c8df39"><code>418f8b7</code></a> [release] prepare release pmd_releases/7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/ba31ce2d90b3038a965baca8e8010a03cca77f71"><code>ba31ce2</code></a> Prepare pmd release 7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/ced4fdc8e55f7edccf02f1593c7efcad1ad31b38"><code>ced4fdc</code></a> Update contributors for 7.25.0</li> <li><a href="https://github.com/pmd/pmd/commit/3c6536137877beaf82d3ec82e523648c321ba88e"><code>3c65361</code></a> chore(deps-dev): bump build-tools from 37 to 38 (<a href="https://redirect.github.com/pmd/pmd/issues/6729">#6729</a>)</li> <li><a href="https://github.com/pmd/pmd/commit/f60c490b735ae83045f415816e896e657f3222b9"><code>f60c490</code></a> chore(deps-dev): bump build-tools from 37 to 38</li> <li><a href="https://github.com/pmd/pmd/commit/6736c6028bf90dd64cfae0fc8a593b3702d2a82e"><code>6736c60</code></a> [java] UnnecessaryBooleanAssertion: Use InvocationMatcher to find assertions ...</li> <li><a href="https://github.com/pmd/pmd/commit/3f1de359a719b2f6cd27178a7134a951e690504f"><code>3f1de35</code></a> [doc] Update release notes (<a href="https://redirect.github.com/pmd/pmd/issues/6712">#6712</a>)</li> <li><a href="https://github.com/pmd/pmd/commit/25f30fe83331ebb529a793ddd8ebad515e34b535"><code>25f30fe</code></a> [java] Fix <a href="https://redirect.github.com/pmd/pmd/issues/4350">#4350</a>: Fix ClassNamingConventions by teaching TestFrameworkUtil ab...</li> <li><a href="https://github.com/pmd/pmd/commit/f306438a4f0de55179db80816f082fa290b2df5e"><code>f306438</code></a> [java] Part of <a href="https://redirect.github.com/pmd/pmd/issues/4841">#4841</a>: Deprecate unnecessary public methods in FieldDeclaratio...</li> <li><a href="https://github.com/pmd/pmd/commit/ca5bfe4a6660f48fe42278092162ed5f5c7b414e"><code>ca5bfe4</code></a> [java] Fix <a href="https://redirect.github.com/pmd/pmd/issues/6719">#6719</a>: UseStandardCharsets UTF-32 on Java >= 22 (<a href="https://redirect.github.com/pmd/pmd/issues/6726">#6726</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pmd/pmd/compare/pmd_releases/7.23.0...pmd_releases/7.25.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
