forked from phoedos/pmd
Update documentation
https://github.com/pmd/pmd/actions/runs/11863750490
b6f45ed618...15cab177d2
This commit is contained in:
4
feed.xml
4
feed.xml
@ -5,8 +5,8 @@
|
||||
<description>Intended as a documentation theme based on Jekyll for technical writers documenting software and other technical products, this theme has all the elements you would need to handle multiple products with both multi-level sidebar navigation, tags, and other documentation features.</description>
|
||||
<link>https://docs.pmd-code.org/latest/</link>
|
||||
<atom:link href="https://docs.pmd-code.org/latest/feed.xml" rel="self" type="application/rss+xml"/>
|
||||
<pubDate>Fri, 15 Nov 2024 15:35:52 +0000</pubDate>
|
||||
<lastBuildDate>Fri, 15 Nov 2024 15:35:52 +0000</lastBuildDate>
|
||||
<pubDate>Fri, 15 Nov 2024 21:47:57 +0000</pubDate>
|
||||
<lastBuildDate>Fri, 15 Nov 2024 21:47:57 +0000</lastBuildDate>
|
||||
<generator>Jekyll v3.10.0</generator>
|
||||
|
||||
</channel>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1933,8 +1933,15 @@
|
||||
<li><a href="https://github.com/pmd/pmd/issues/5329">#5329</a>: [java] Type inference issue with unknown method ref in call chain</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>java-bestpractices
|
||||
<ul>
|
||||
<li><a href="https://github.com/pmd/pmd/issues/5083">#5083</a>: [java] UnusedPrivateMethod false positive when method reference has no target type</li>
|
||||
<li><a href="https://github.com/pmd/pmd/issues/5318">#5318</a>: [java] PreserveStackTraceRule: false-positive on Pattern Matching with instanceof</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>java-performance
|
||||
<ul>
|
||||
<li><a href="https://github.com/pmd/pmd/issues/5287">#5287</a>: [java] TooFewBranchesForSwitch false-positive with switch using list of case constants</li>
|
||||
<li><a href="https://github.com/pmd/pmd/issues/5314">#5314</a>: [java] InsufficientStringBufferDeclarationRule: Lack of handling for char type parameters</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
@ -2547,7 +2547,7 @@ if-else statement to increase code readability.</p>
|
||||
|
||||
<p><strong>This rule is defined by the following XPath expression:</strong></p>
|
||||
<div class="language-xpath highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="err">//</span><span class="p">(</span><span class="nt">SwitchStatement</span><span class="w"> </span><span class="p">|</span><span class="w"> </span><span class="nt">SwitchExpression</span><span class="p">)</span><span class="w">
|
||||
</span><span class="p">[</span><span class="w"> </span><span class="p">(</span><span class="nf">count</span><span class="p">(</span><span class="err">*</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="m">1</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="nv">$minimumNumberCaseForASwitch</span><span class="w"> </span><span class="p">]</span><span class="w">
|
||||
</span><span class="p">[</span><span class="w"> </span><span class="p">(</span><span class="nf">count</span><span class="p">(</span><span class="err">*</span><span class="o">/</span><span class="nt">SwitchLabel</span><span class="err">/*</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nf">count</span><span class="p">(</span><span class="err">*</span><span class="o">/</span><span class="nt">SwitchLabel</span><span class="p">[</span><span class="na">@Default</span><span class="w"> </span><span class="err">=</span><span class="w"> </span><span class="nf">true</span><span class="p">()]))</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="nv">$minimumNumberCaseForASwitch</span><span class="w"> </span><span class="p">]</span><span class="w">
|
||||
</span><span class="c">(: only consider if no pattern matching is used :)</span><span class="w">
|
||||
</span><span class="p">[</span><span class="err">*</span><span class="o">/</span><span class="nt">SwitchLabel</span><span class="p">[</span><span class="na">@PatternLabel</span><span class="w"> </span><span class="err">=</span><span class="w"> </span><span class="nf">false</span><span class="p">()]]</span><span class="w">
|
||||
</span></code></pre></div></div>
|
||||
@ -2613,7 +2613,7 @@ if-else statement to increase code readability.</p>
|
||||
|
||||
<p><strong>This rule is defined by the following XPath expression:</strong></p>
|
||||
<div class="language-xpath highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="err">//</span><span class="p">(</span><span class="nt">SwitchStatement</span><span class="w"> </span><span class="p">|</span><span class="w"> </span><span class="nt">SwitchExpression</span><span class="p">)</span><span class="w">
|
||||
</span><span class="p">[</span><span class="w"> </span><span class="p">(</span><span class="nf">count</span><span class="p">(</span><span class="err">*</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="m">1</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="nv">$minimumNumberCaseForASwitch</span><span class="w"> </span><span class="p">]</span><span class="w">
|
||||
</span><span class="p">[</span><span class="w"> </span><span class="p">(</span><span class="nf">count</span><span class="p">(</span><span class="err">*</span><span class="o">/</span><span class="nt">SwitchLabel</span><span class="err">/*</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nf">count</span><span class="p">(</span><span class="err">*</span><span class="o">/</span><span class="nt">SwitchLabel</span><span class="p">[</span><span class="na">@Default</span><span class="w"> </span><span class="err">=</span><span class="w"> </span><span class="nf">true</span><span class="p">()]))</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="nv">$minimumNumberCaseForASwitch</span><span class="w"> </span><span class="p">]</span><span class="w">
|
||||
</span><span class="c">(: only consider if no pattern matching is used :)</span><span class="w">
|
||||
</span><span class="p">[</span><span class="err">*</span><span class="o">/</span><span class="nt">SwitchLabel</span><span class="p">[</span><span class="na">@PatternLabel</span><span class="w"> </span><span class="err">=</span><span class="w"> </span><span class="nf">false</span><span class="p">()]]</span><span class="w">
|
||||
</span></code></pre></div></div>
|
||||
|
Reference in New Issue
Block a user