Commit 561a921
authored
Bump pmd.version from 7.17.0 to 7.18.0 (#113)
Bumps `pmd.version` from 7.17.0 to 7.18.0.
Updates `net.sourceforge.pmd:pmd-java` from 7.17.0 to 7.18.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.18.0 (31-October-2025)</h2>
<h2>31-October-2025 - 7.18.0</h2>
<p>The PMD team is pleased to announce PMD 7.18.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/#build-requirement-is-java-17">Build
Requirement is Java 17</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/#deprecated-rules">Deprecated
Rules</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>
</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>Build Requirement is Java 17</h4>
<p>From now on, Java 17 or newer is required to build PMD. PMD itself
still remains compatible with Java 8,
so that it still can be used in a pure Java 8 environment. This allows
us to use the latest
checkstyle version during the build.</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.18.0/pmd_rules_java_errorprone.html#identicalconditionalbranches"><code>IdenticalConditionalBranches</code></a>
finds conditional statements
that do the same thing when the condition is true and false. This is
either incorrect or redundant.</li>
<li>The new Java rule <a
href="https://docs.pmd-code.org/pmd-doc-7.18.0/pmd_rules_java_bestpractices.html#labeledstatement"><code>LabeledStatement</code></a>
finds labeled statements in code.
Labels make control flow difficult to understand and should be avoided.
By default, the rule allows labeled
loops (do, while, for). But it has a property to flag also those labeled
loops.</li>
<li>The new Java rule <a
href="https://docs.pmd-code.org/pmd-doc-7.18.0/pmd_rules_java_bestpractices.html#unusedlabel"><code>UnusedLabel</code></a>
finds unused labels which are unnecessary and
only make the code hard to read. This new rule will be part of the
quickstart ruleset.</li>
</ul>
<h4>Changed Rules</h4>
<ul>
<li><a
href="https://docs.pmd-code.org/pmd-doc-7.18.0/pmd_rules_java_codestyle.html#confusingternary"><code>ConfusingTernary</code></a>
has a new property <code>nullCheckBranch</code> to control, whether
null-checks
should be allowed (the default case) or should lead to a violation.</li>
<li><a
href="https://docs.pmd-code.org/pmd-doc-7.18.0/pmd_rules_java_errorprone.html#avoidcatchinggenericexception"><code>AvoidCatchingGenericException</code></a>
is now configurable with the new property
<code>typesThatShouldNotBeCaught</code>.<br />
File tree
2 files changed
+7
-6
lines changed- src/main/resources/net/sourceforge/pmd
2 files changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
| |||
291 | 296 | | |
292 | 297 | | |
293 | 298 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| |||
0 commit comments