Update documentation
https://github.com/pmd/pmd/actions/runs/2249455714
b5dfd05c00...86891b0c6d
This commit is contained in:
4
404.html
4
404.html
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
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://pmd.github.io/pmd/</link>
|
||||
<atom:link href="https://pmd.github.io/pmd/feed.xml" rel="self" type="application/rss+xml"/>
|
||||
<pubDate>Sat, 30 Apr 2022 07:51:51 +0000</pubDate>
|
||||
<lastBuildDate>Sat, 30 Apr 2022 07:51:51 +0000</lastBuildDate>
|
||||
<pubDate>Sat, 30 Apr 2022 08:46:57 +0000</pubDate>
|
||||
<lastBuildDate>Sat, 30 Apr 2022 08:46:57 +0000</lastBuildDate>
|
||||
<generator>Jekyll v3.9.2</generator>
|
||||
|
||||
</channel>
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
@ -1528,22 +1528,22 @@
|
||||
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[tom@hal building]$ ls -l
|
||||
total 5716
|
||||
-rw-rw-r-- 1 tom tom 5837216 Jul 17 13:09 pmd-src-6.45.0.zip
|
||||
[tom@hal building]$ unzip -q pmd-src-6.45.0.zip
|
||||
-rw-rw-r-- 1 tom tom 5837216 Jul 17 13:09 pmd-src-6.46.0-SNAPSHOT.zip
|
||||
[tom@hal building]$ unzip -q pmd-src-6.46.0-SNAPSHOT.zip
|
||||
[tom@hal building]$
|
||||
</code></pre></div></div>
|
||||
|
||||
<p>Now cd down into the <code class="language-plaintext highlighter-rouge">pmd</code> directory:</p>
|
||||
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[tom@hal building]$ cd pmd-src-6.45.0
|
||||
[tom@hal pmd-src-6.45.0]$ ls -l | grep pom.xml
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[tom@hal building]$ cd pmd-src-6.46.0-SNAPSHOT
|
||||
[tom@hal pmd-src-6.46.0-SNAPSHOT]$ ls -l | grep pom.xml
|
||||
-rw-rw-r-- 1 tom tom 36482 14\. Nov 17:36 pom.xml
|
||||
[tom@hal pmd-src-6.45.0]$
|
||||
[tom@hal pmd-src-6.46.0-SNAPSHOT]$
|
||||
</code></pre></div></div>
|
||||
|
||||
<p>That’s the project configuration for maven… let’s compile!</p>
|
||||
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[tom@hal pmd-src-6.45.0]$ ./mvnw clean verify
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[tom@hal pmd-src-6.46.0-SNAPSHOT]$ ./mvnw clean verify
|
||||
[INFO] Scanning for projects...
|
||||
[INFO] ------------------------------------------------------------------------
|
||||
[INFO] Reactor Build Order:
|
||||
@ -1583,7 +1583,7 @@ total 5716
|
||||
[INFO] Finished at: 2015-11-14T17:46:06+01:00
|
||||
[INFO] Final Memory: 63M/765M
|
||||
[INFO] ------------------------------------------------------------------------
|
||||
[tom@hal pmd-src-6.45.0]$
|
||||
[tom@hal pmd-src-6.46.0-SNAPSHOT]$
|
||||
</code></pre></div></div>
|
||||
|
||||
<p>Now the source and binary distribution zip files can be found in the folder <code class="language-plaintext highlighter-rouge">pmd-dist/target</code>.</p>
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
@ -1517,7 +1517,7 @@
|
||||
<h2 id="internal-architecture-of-the-metrics-framework">Internal architecture of the metrics framework</h2>
|
||||
|
||||
<p>The framework is pretty simple. On a high level, a <code class="language-plaintext highlighter-rouge">Metric<N></code> describes some numeric computation on a node of type <code class="language-plaintext highlighter-rouge">N</code>.
|
||||
You should wrap it into a <code class="language-plaintext highlighter-rouge">MetricKey<N></code>, so that it can be cached on nodes (implemented by <a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/lang/metrics/MetricsUtil.html#"><code>MetricsUtil</code></a>).</p>
|
||||
You should wrap it into a <code class="language-plaintext highlighter-rouge">MetricKey<N></code>, so that it can be cached on nodes (implemented by <a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/lang/metrics/MetricsUtil.html#"><code>MetricsUtil</code></a>).</p>
|
||||
|
||||
<p>At the very least, a metrics framework has those two components and is just a convenient way to compute and memoize
|
||||
metrics on a single file. The expressive power of metrics can be improved by implementing <em>signature matching</em> capabilities,
|
||||
@ -1530,8 +1530,8 @@ harder than it looks, and has been rescheduled to another project.</p>
|
||||
<ul>
|
||||
<li>Implement metrics (typically in an internal package)</li>
|
||||
<li>Create some public enums/ utility classes to expose metric keys</li>
|
||||
<li>Implement a <a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/lang/metrics/LanguageMetricsProvider.html#"><code>LanguageMetricsProvider</code></a>, to expose your metrics to the designer</li>
|
||||
<li>Use your metric keys in rules with <a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/lang/metrics/MetricsUtil.html#"><code>MetricsUtil</code></a></li>
|
||||
<li>Implement a <a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/lang/metrics/LanguageMetricsProvider.html#"><code>LanguageMetricsProvider</code></a>, to expose your metrics to the designer</li>
|
||||
<li>Use your metric keys in rules with <a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/lang/metrics/MetricsUtil.html#"><code>MetricsUtil</code></a></li>
|
||||
</ul>
|
||||
|
||||
<h3 id="optional-signature-matching">Optional: Signature matching</h3>
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
@ -1586,47 +1586,47 @@ all formatting inside the delimiters, and allow to write code samples without
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc core::Rule %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/Rule.html#"><code>Rule</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/Rule.html#"><code>Rule</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc !q!core::Rule %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/Rule.html#"><code>net.sourceforge.pmd.Rule</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/Rule.html#"><code>net.sourceforge.pmd.Rule</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc core::Rule#setName(java.lang.String) %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/Rule.html#setName(java.lang.String)"><code>setName</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/Rule.html#setName(java.lang.String)"><code>setName</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc !c!core::Rule#setName(java.lang.String) %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/Rule.html#setName(java.lang.String)"><code>Rule#setName</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/Rule.html#setName(java.lang.String)"><code>Rule#setName</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc !a!core::Rule#setName(java.lang.String) %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/Rule.html#setName(java.lang.String)"><code>setName(String)</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/Rule.html#setName(java.lang.String)"><code>setName(String)</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc !ac!core::Rule#setName(java.lang.String) %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/Rule.html#setName(java.lang.String)"><code>Rule#setName(String)</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/Rule.html#setName(java.lang.String)"><code>Rule#setName(String)</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc core::properties.PropertyDescriptor %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/properties/PropertyDescriptor.html#"><code>PropertyDescriptor</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/properties/PropertyDescriptor.html#"><code>PropertyDescriptor</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc_nspace :jast java::lang.java.ast %}{% jdoc jast::ASTAnyTypeDeclaration %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-java/6.45.0/net/sourceforge/pmd/lang/java/ast/ASTAnyTypeDeclaration.html#"><code>ASTAnyTypeDeclaration</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-java/6.46.0-SNAPSHOT/net/sourceforge/pmd/lang/java/ast/ASTAnyTypeDeclaration.html#"><code>ASTAnyTypeDeclaration</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc_nspace :jast java::lang.java.ast %}{% jdoc_package :jast %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-java/6.45.0/net/sourceforge/pmd/lang/java/ast/package-summary.html#"><code>net.sourceforge.pmd.lang.java.ast</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-java/6.46.0-SNAPSHOT/net/sourceforge/pmd/lang/java/ast/package-summary.html#"><code>net.sourceforge.pmd.lang.java.ast</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc_nspace :PrD core::properties.PropertyDescriptor %}{% jdoc !ac!:PrD#uiOrder() %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/properties/PropertyDescriptor.html#uiOrder()"><code>PropertyDescriptor#uiOrder()</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/properties/PropertyDescriptor.html#uiOrder()"><code>PropertyDescriptor#uiOrder()</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc_old core::Rule %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.44.0/net/sourceforge/pmd/Rule.html#"><code>Rule</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/Rule.html#"><code>Rule</code></a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
@ -1565,9 +1565,9 @@ for more examples.</p>
|
||||
|
||||
<h3 id="xpath-rules-in-xml">XPath rules in XML</h3>
|
||||
|
||||
<p>While other languages use <a href="https://docs.pmd-code.org/apidocs/pmd-core/6.45.0/net/sourceforge/pmd/lang/rule/XPathRule.html#"><code>XPathRule</code></a> to create XPath rules,
|
||||
<p>While other languages use <a href="https://docs.pmd-code.org/apidocs/pmd-core/6.46.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/XPathRule.html#"><code>XPathRule</code></a> to create XPath rules,
|
||||
the use of this class is not recommended for XML languages. Instead, since 6.44.0, you
|
||||
are advised to use <a href="https://docs.pmd-code.org/apidocs/pmd-xml/6.45.0/net/sourceforge/pmd/lang/xml/rule/DomXPathRule.html#"><code>DomXPathRule</code></a>. This rule class interprets
|
||||
are advised to use <a href="https://docs.pmd-code.org/apidocs/pmd-xml/6.46.0-SNAPSHOT/net/sourceforge/pmd/lang/xml/rule/DomXPathRule.html#"><code>DomXPathRule</code></a>. This rule class interprets
|
||||
XPath queries exactly as regular XPath, while <code class="language-plaintext highlighter-rouge">XPathRule</code> works on a wrapper for the
|
||||
DOM which is inconsistent with the XPath spec. Since <code class="language-plaintext highlighter-rouge">DomXPathRule</code> conforms to the
|
||||
XPath spec, you can</p>
|
||||
@ -1597,7 +1597,7 @@ to help you write XPath queries.</li>
|
||||
<span class="nt"></rule></span>
|
||||
</code></pre></div></div>
|
||||
<p>The most important change is the <code class="language-plaintext highlighter-rouge">class</code> attribute, which doesn’t point to <code class="language-plaintext highlighter-rouge">XPathRule</code>
|
||||
but to <code class="language-plaintext highlighter-rouge">DomXPathRule</code>. Please see the Javadoc for <a href="https://docs.pmd-code.org/apidocs/pmd-xml/6.45.0/net/sourceforge/pmd/lang/xml/rule/DomXPathRule.html#"><code>DomXPathRule</code></a>
|
||||
but to <code class="language-plaintext highlighter-rouge">DomXPathRule</code>. Please see the Javadoc for <a href="https://docs.pmd-code.org/apidocs/pmd-xml/6.46.0-SNAPSHOT/net/sourceforge/pmd/lang/xml/rule/DomXPathRule.html#"><code>DomXPathRule</code></a>
|
||||
for more info about the differences with <code class="language-plaintext highlighter-rouge">XPathRule</code>.</p>
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -174,8 +174,8 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 6.45.0</li>
|
||||
<div class="sidebarTitleDate">Release date: 30-April-2022</div>
|
||||
<li class="sidebarTitle">PMD 6.46.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 28-May-2022</div>
|
||||
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user