forked from phoedos/pmd
Update documentation
https://github.com/pmd/pmd/actions/runs/8552155579
b1c40f1e33...280b1a1ee3
This commit is contained in:
2
404.html
2
404.html
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</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://docs.pmd-code.org/latest/</link>
|
||||
<atom:link href="https://docs.pmd-code.org/latest/feed.xml" rel="self" type="application/rss+xml"/>
|
||||
<pubDate>Thu, 04 Apr 2024 07:53:36 +0000</pubDate>
|
||||
<lastBuildDate>Thu, 04 Apr 2024 07:53:36 +0000</lastBuildDate>
|
||||
<pubDate>Thu, 04 Apr 2024 09:31:58 +0000</pubDate>
|
||||
<lastBuildDate>Thu, 04 Apr 2024 09:31:58 +0000</lastBuildDate>
|
||||
<generator>Jekyll v3.9.5</generator>
|
||||
|
||||
</channel>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1887,22 +1887,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-7.0.1-SNAPSHOT.zip
|
||||
[tom@hal building]$ unzip -q pmd-src-7.0.1-SNAPSHOT.zip
|
||||
-rw-rw-r-- 1 tom tom 5837216 Jul 17 13:09 pmd-src-7.1.0-SNAPSHOT.zip
|
||||
[tom@hal building]$ unzip -q pmd-src-7.1.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-7.0.1-SNAPSHOT
|
||||
[tom@hal pmd-src-7.0.1-SNAPSHOT]$ ls -l | grep pom.xml
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[tom@hal building]$ cd pmd-src-7.1.0-SNAPSHOT
|
||||
[tom@hal pmd-src-7.1.0-SNAPSHOT]$ ls -l | grep pom.xml
|
||||
-rw-rw-r-- 1 tom tom 36482 14\. Nov 17:36 pom.xml
|
||||
[tom@hal pmd-src-7.0.1-SNAPSHOT]$
|
||||
[tom@hal pmd-src-7.1.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-7.0.1-SNAPSHOT]$ ./mvnw clean verify
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[tom@hal pmd-src-7.1.0-SNAPSHOT]$ ./mvnw clean verify
|
||||
[INFO] Scanning for projects...
|
||||
[INFO] ------------------------------------------------------------------------
|
||||
[INFO] Reactor Build Order:
|
||||
@ -1942,7 +1942,7 @@ total 5716
|
||||
[INFO] Finished at: 2015-11-14T17:46:06+01:00
|
||||
[INFO] Final Memory: 63M/765M
|
||||
[INFO] ------------------------------------------------------------------------
|
||||
[tom@hal pmd-src-7.0.1-SNAPSHOT]$
|
||||
[tom@hal pmd-src-7.1.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>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1875,7 +1875,7 @@
|
||||
|
||||
<h2 id="overview">Overview</h2>
|
||||
|
||||
<p>The processing starts with the main class <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/PmdAnalysis.html#"><code>PmdAnalysis</code></a>.</p>
|
||||
<p>The processing starts with the main class <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/PmdAnalysis.html#"><code>PmdAnalysis</code></a>.</p>
|
||||
|
||||
<ul>
|
||||
<li>Parse command line parameters (see net.sourceforge.pmd.cli.PMDParameters)
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1875,7 +1875,7 @@
|
||||
|
||||
<h2 id="adding-support-for-a-cpd-language">Adding support for a CPD language</h2>
|
||||
|
||||
<p>CPD works generically on the tokens produced by a <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CpdLexer.html#"><code>CpdLexer</code></a>.
|
||||
<p>CPD works generically on the tokens produced by a <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CpdLexer.html#"><code>CpdLexer</code></a>.
|
||||
To add support for a new language, the crucial piece is writing a CpdLexer that
|
||||
splits the source file into the tokens specific to your language. Thankfully you
|
||||
can use a stock <a href="https://github.com/antlr/grammars-v4">Antlr grammar</a> or JavaCC
|
||||
@ -1894,14 +1894,14 @@ other languages.</li>
|
||||
is automatically available in the binary distribution (pmd-dist).</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Implement a <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CpdLexer.html#"><code>CpdLexer</code></a>.
|
||||
<li>Implement a <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CpdLexer.html#"><code>CpdLexer</code></a>.
|
||||
<ul>
|
||||
<li>
|
||||
<p>For Antlr grammars you can take the grammar from <a href="https://github.com/antlr/grammars-v4">antlr/grammars-v4</a> and place it in <code class="language-plaintext highlighter-rouge">src/main/antlr4</code> followed by the package name of the language. You then need to call the appropriate ant wrapper to generate
|
||||
the lexer from the grammar. To do so, edit <code class="language-plaintext highlighter-rouge">pom.xml</code> (eg like <a href="https://github.com/pmd/pmd/tree/master/pmd-go/pom.xml">the Golang module</a>).
|
||||
Once that is done, <code class="language-plaintext highlighter-rouge">mvn generate-sources</code> should generate the lexer sources for you.</p>
|
||||
|
||||
<p>You can now implement a CpdLexer, for instance by extending <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/impl/AntlrCpdLexer.html#"><code>AntlrCpdLexer</code></a>. The following reproduces the Go implementation:
|
||||
<p>You can now implement a CpdLexer, for instance by extending <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/impl/AntlrCpdLexer.html#"><code>AntlrCpdLexer</code></a>. The following reproduces the Go implementation:
|
||||
```java
|
||||
// mind the package convention if you are going to make a PR
|
||||
package net.sourceforge.pmd.lang.go.cpd;</p>
|
||||
@ -1918,13 +1918,13 @@ Once that is done, <code class="language-plaintext highlighter-rouge">mvn genera
|
||||
|
||||
<ul>
|
||||
<li>For JavaCC grammars, place your grammar in <code class="language-plaintext highlighter-rouge">etc/grammar</code> and edit the <code class="language-plaintext highlighter-rouge">pom.xml</code> like the <a href="https://github.com/pmd/pmd/blob/master/pmd-python/pom.xml">Python implementation</a> does.
|
||||
You can then subclass <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/impl/JavaccCpdLexer.html#"><code>JavaccCpdLexer</code></a> instead of AntlrCpdLexer.</li>
|
||||
You can then subclass <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/impl/JavaccCpdLexer.html#"><code>JavaccCpdLexer</code></a> instead of AntlrCpdLexer.</li>
|
||||
<li>For any other scenario just implement the interface however you can. Look at the Scala or Apex module for existing implementations.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<p>Create a <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/Language.html#"><code>Language</code></a> implementation, and make it implement <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CpdCapableLanguage.html#"><code>CpdCapableLanguage</code></a>.
|
||||
If your language only supports CPD, then you can subclass <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/impl/CpdOnlyLanguageModuleBase.html#"><code>CpdOnlyLanguageModuleBase</code></a> to get going:</p>
|
||||
<p>Create a <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/Language.html#"><code>Language</code></a> implementation, and make it implement <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CpdCapableLanguage.html#"><code>CpdCapableLanguage</code></a>.
|
||||
If your language only supports CPD, then you can subclass <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/impl/CpdOnlyLanguageModuleBase.html#"><code>CpdOnlyLanguageModuleBase</code></a> to get going:</p>
|
||||
|
||||
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code> <span class="c1">// mind the package convention if you are going to make a PR</span>
|
||||
<span class="kn">package</span> <span class="nn">net.sourceforge.pmd.lang.go</span><span class="o">;</span>
|
||||
@ -1946,7 +1946,7 @@ If your language only supports CPD, then you can subclass <a href="https://docs.
|
||||
|
||||
<p>To make PMD find the language module at runtime, write the fully-qualified name of your language class into the file <code class="language-plaintext highlighter-rouge">src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language</code>.</p>
|
||||
|
||||
<p>At this point the new language module should be available in <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/LanguageRegistry.html#CPD"><code>CPD</code></a> and usable by CPD like any other language.</p>
|
||||
<p>At this point the new language module should be available in <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/LanguageRegistry.html#CPD"><code>CPD</code></a> and usable by CPD like any other language.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Update the test that asserts the list of supported languages by updating the <code class="language-plaintext highlighter-rouge">SUPPORTED_LANGUAGES</code> constant in <a href="https://github.com/pmd/pmd/blob/master/pmd-dist/src/test/java/net/sourceforge/pmd/dist/BinaryDistributionIT.java">BinaryDistributionIT</a>.</p>
|
||||
@ -1979,15 +1979,15 @@ There is also the following Jekyll Include, that creates summary box for the lan
|
||||
<h3 id="declaring-cpdlexer-options">Declaring CpdLexer options</h3>
|
||||
|
||||
<p>To make the CpdLexer configurable, first define some property descriptors using
|
||||
<a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/properties/PropertyFactory.html#"><code>PropertyFactory</code></a>. Look at <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CpdLanguageProperties.html#"><code>CpdLanguageProperties</code></a>
|
||||
<a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/properties/PropertyFactory.html#"><code>PropertyFactory</code></a>. Look at <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CpdLanguageProperties.html#"><code>CpdLanguageProperties</code></a>
|
||||
for some predefined ones which you can reuse (prefer reusing property descriptors if you can).
|
||||
You need to override <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/Language.html#newPropertyBundle()"><code>newPropertyBundle</code></a>
|
||||
You need to override <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/Language.html#newPropertyBundle()"><code>newPropertyBundle</code></a>
|
||||
and call <code class="language-plaintext highlighter-rouge">definePropertyDescriptor</code> to register the descriptors.
|
||||
After that you can access the values of the properties from the parameter
|
||||
of <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CpdCapableLanguage.html#createCpdTokenizer(net.sourceforge.pmd.lang.LanguagePropertyBundle)"><code>createCpdTokenizer</code></a>.</p>
|
||||
of <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CpdCapableLanguage.html#createCpdTokenizer(net.sourceforge.pmd.lang.LanguagePropertyBundle)"><code>createCpdTokenizer</code></a>.</p>
|
||||
|
||||
<p>To implement simple token filtering, you can use <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/impl/BaseTokenFilter.html#"><code>BaseTokenFilter</code></a>
|
||||
as a base class, or another base class in <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/impl/package-summary.html#"><code>net.sourceforge.pmd.cpd.impl</code></a>.
|
||||
<p>To implement simple token filtering, you can use <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/impl/BaseTokenFilter.html#"><code>BaseTokenFilter</code></a>
|
||||
as a base class, or another base class in <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/impl/package-summary.html#"><code>net.sourceforge.pmd.cpd.impl</code></a>.
|
||||
Take a look at the <a href="https://github.com/pmd/pmd/blob/master/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/cpd/KotlinCpdLexer.java">Kotlin token filter implementation</a>, or the <a href="https://github.com/pmd/pmd/blob/master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/cpd/JavaCpdLexer.java">Java one</a>.</p>
|
||||
|
||||
<h3 id="testing-your-implementation">Testing your implementation</h3>
|
||||
@ -1995,7 +1995,7 @@ Take a look at the <a href="https://github.com/pmd/pmd/blob/master/pmd-kotlin/sr
|
||||
<p>Add a Maven dependency on <code class="language-plaintext highlighter-rouge">pmd-lang-test</code> (scope <code class="language-plaintext highlighter-rouge">test</code>) in your <code class="language-plaintext highlighter-rouge">pom.xml</code>.
|
||||
This contains utilities to test your CpdLexer.</p>
|
||||
|
||||
<p>Create a test class extending from <a href="https://docs.pmd-code.org/apidocs/pmd-lang-test/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/test/cpd/CpdTextComparisonTest.html#"><code>CpdTextComparisonTest</code></a>.
|
||||
<p>Create a test class extending from <a href="https://docs.pmd-code.org/apidocs/pmd-lang-test/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/test/cpd/CpdTextComparisonTest.html#"><code>CpdTextComparisonTest</code></a>.
|
||||
To add tests, you need to write regular JUnit <code class="language-plaintext highlighter-rouge">@Test</code>-annotated methods, and
|
||||
call the method <code class="language-plaintext highlighter-rouge">doTest</code> with the name of the test file.</p>
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -2029,7 +2029,7 @@ implementation that you need to extend to create your own adapter as we do with
|
||||
<li>It can be used to provide other features for your language like
|
||||
<ul>
|
||||
<li>violation suppression logic</li>
|
||||
<li><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/reporting/ViolationDecorator.html#"><code>ViolationDecorator</code></a>s, to add additional language specific information to the
|
||||
<li><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/reporting/ViolationDecorator.html#"><code>ViolationDecorator</code></a>s, to add additional language specific information to the
|
||||
created violations. The <a href="pmd_languages_java.html#violation-decorators">Java language module</a> uses this to
|
||||
provide the method name or class name, where the violation occurred.</li>
|
||||
<li>metrics</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1965,7 +1965,7 @@ all the available tokens in the field <code class="language-plaintext highlighte
|
||||
<li>It can be used to provide other features for your language like
|
||||
<ul>
|
||||
<li>violation suppression logic</li>
|
||||
<li><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/reporting/ViolationDecorator.html#"><code>ViolationDecorator</code></a>s, to add additional language specific information to the
|
||||
<li><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/reporting/ViolationDecorator.html#"><code>ViolationDecorator</code></a>s, to add additional language specific information to the
|
||||
created violations. The <a href="pmd_languages_java.html#violation-decorators">Java language module</a> uses this to
|
||||
provide the method name or class name, where the violation occurred.</li>
|
||||
<li>metrics (see below “Optional features”)</li>
|
||||
@ -2120,7 +2120,7 @@ have more control over this, there are two annotations that can be used for AST
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<p><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/rule/xpath/DeprecatedAttribute.html#"><code>DeprecatedAttribute</code></a>: Getters might be annotated with that indicating, that
|
||||
<p><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/xpath/DeprecatedAttribute.html#"><code>DeprecatedAttribute</code></a>: Getters might be annotated with that indicating, that
|
||||
this getter method should not be used in XPath rules. When a XPath rule uses such a method, a warning is
|
||||
issued. If the method additionally has the standard Java <code class="language-plaintext highlighter-rouge">@Deprecated</code> annotation, then the getter is also
|
||||
deprecated for java usage. Otherwise, the getter is only deprecated for usage in XPath rules.</p>
|
||||
@ -2129,7 +2129,7 @@ deprecated for java usage. Otherwise, the getter is only deprecated for usage in
|
||||
attribute <code class="language-plaintext highlighter-rouge">replaceWith</code> should be used.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/rule/xpath/NoAttribute.html#"><code>NoAttribute</code></a>: This annotation can be used on an AST node type or on individual
|
||||
<p><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/xpath/NoAttribute.html#"><code>NoAttribute</code></a>: This annotation can be used on an AST node type or on individual
|
||||
methods in order to filter out which methods are available for XPath rules.
|
||||
When used on a type, either all methods can be filtered or only inherited methods (see attribute <code class="language-plaintext highlighter-rouge">scope</code>).
|
||||
When used directly on an individual method, then only this method will be filtered out.
|
||||
@ -2179,10 +2179,10 @@ This can be achieved with Rule Designer:</p>
|
||||
<li>Create a package <code class="language-plaintext highlighter-rouge">lang.<langname>.metrics</code></li>
|
||||
<li>Create a utility class <code class="language-plaintext highlighter-rouge"><langname>Metrics</code></li>
|
||||
<li>Implement new metrics and add them as static constants. Be sure to document them.</li>
|
||||
<li>Implement <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/LanguageVersionHandler.html#getLanguageMetricsProvider()"><code>getLanguageMetricsProvider</code></a>, to make the metrics available in the designer.</li>
|
||||
<li>Implement <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/LanguageVersionHandler.html#getLanguageMetricsProvider()"><code>getLanguageMetricsProvider</code></a>, to make the metrics available in the designer.</li>
|
||||
</ul>
|
||||
|
||||
<p>See <a href="https://docs.pmd-code.org/apidocs/pmd-java/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/java/metrics/JavaMetrics.html#"><code>JavaMetrics</code></a> for an example.</p>
|
||||
<p>See <a href="https://docs.pmd-code.org/apidocs/pmd-java/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/java/metrics/JavaMetrics.html#"><code>JavaMetrics</code></a> for an example.</p>
|
||||
|
||||
<h3 id="symbol-table">Symbol table</h3>
|
||||
|
||||
@ -2200,7 +2200,7 @@ see <a href="pmd_languages_java.html">Java-specific features and guidance</a>.</
|
||||
<div class="alert alert-info" role="alert"><i class="fas fa-info-circle"></i> <b>Note:</b>
|
||||
With PMD 7.0.0 the symbol table and type resolution implementation has been
|
||||
rewritten from scratch. There is still an old API for symbol table support, that is used by PLSQL,
|
||||
see <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/symboltable/package-summary.html#"><code>net.sourceforge.pmd.lang.symboltable</code></a>. This will be deprecated and should not be used.
|
||||
see <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/symboltable/package-summary.html#"><code>net.sourceforge.pmd.lang.symboltable</code></a>. This will be deprecated and should not be used.
|
||||
</div>
|
||||
|
||||
<h3 id="type-resolution">Type resolution</h3>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1945,43 +1945,43 @@ 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::lang.rule.Rule %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/rule/Rule.html#"><code>Rule</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/Rule.html#"><code>Rule</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc !q!core::lang.rule.Rule %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/rule/Rule.html#"><code>net.sourceforge.pmd.lang.rule.Rule</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/Rule.html#"><code>net.sourceforge.pmd.lang.rule.Rule</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left"><code class="language-plaintext highlighter-rouge">{% jdoc core::lang.rule.Rule#setName(java.lang.String) %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/rule/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/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/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::lang.rule.Rule#setName(java.lang.String) %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/rule/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/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/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::lang.rule.Rule#setName(java.lang.String) %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/rule/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/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/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::lang.rule.Rule#setName(java.lang.String) %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/rule/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/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/rule/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/7.0.1-SNAPSHOT/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/7.1.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::ASTTypeDeclaration %}</code></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-java/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/java/ast/ASTTypeDeclaration.html#"><code>ASTTypeDeclaration</code></a></td>
|
||||
<td style="text-align: left"><a href="https://docs.pmd-code.org/apidocs/pmd-java/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/java/ast/ASTTypeDeclaration.html#"><code>ASTTypeDeclaration</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/7.0.1-SNAPSHOT/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/7.1.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/7.0.1-SNAPSHOT/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/7.1.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>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1886,7 +1886,7 @@ transaction control statements on the Salesforce Platform server, in conjunction
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 5.5.0</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-apex/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/apex/ApexLanguageModule.html#"><code>ApexLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-apex/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/apex/ApexLanguageModule.html#"><code>ApexLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: apex</li>
|
||||
<li class="list-group-item">PMD: ✔️</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
@ -1896,12 +1896,12 @@ transaction control statements on the Salesforce Platform server, in conjunction
|
||||
|
||||
<h2 id="metrics-framework">Metrics framework</h2>
|
||||
|
||||
<p>In order to use code metrics in Apex, use the metrics constants in <a href="https://docs.pmd-code.org/apidocs/pmd-apex/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/apex/metrics/ApexMetrics.html#"><code>ApexMetrics</code></a>,
|
||||
together with <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/metrics/MetricsUtil.html#"><code>MetricsUtil</code></a>.</p>
|
||||
<p>In order to use code metrics in Apex, use the metrics constants in <a href="https://docs.pmd-code.org/apidocs/pmd-apex/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/apex/metrics/ApexMetrics.html#"><code>ApexMetrics</code></a>,
|
||||
together with <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/metrics/MetricsUtil.html#"><code>MetricsUtil</code></a>.</p>
|
||||
|
||||
<h2 id="multifile-analysis">Multifile Analysis</h2>
|
||||
|
||||
<p>Integration happens in <a href="https://docs.pmd-code.org/apidocs/pmd-apex/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/apex/multifile/ApexMultifileAnalysis.html#"><code>ApexMultifileAnalysis</code></a>. It uses
|
||||
<p>Integration happens in <a href="https://docs.pmd-code.org/apidocs/pmd-apex/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/apex/multifile/ApexMultifileAnalysis.html#"><code>ApexMultifileAnalysis</code></a>. It uses
|
||||
<a href="https://github.com/nawforce/apex-link">ApexLink</a>. For detailed information, see also <a href="https://github.com/pmd/pmd/pull/2830">Apexlink POC #2830</a>.</p>
|
||||
|
||||
<div class="alert alert-info" role="alert"><i class="fas fa-info-circle"></i> <b>Note:</b> ApexLink’s new home: <a href="https://github.com/apex-dev-tools">https://github.com/apex-dev-tools</a></div>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1885,7 +1885,7 @@ It is part of the Coco Platform from <a href="https://cocotec.io/">https://cocot
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 7.0.0</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-coco/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/coco/CocoLanguageModule.html#"><code>CocoLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-coco/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/coco/CocoLanguageModule.html#"><code>CocoLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: coco</li>
|
||||
<li class="list-group-item">PMD: ❌</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1893,7 +1893,7 @@ completely in uppercase:</p>
|
||||
<p>Properties whose name start with <strong>CPD</strong> are used to configure CPD CpdLexer options.</p>
|
||||
|
||||
<p>Programmatically, the language properties can be set on <code class="language-plaintext highlighter-rouge">PMDConfiguration</code> (or <code class="language-plaintext highlighter-rouge">CPDConfiguration</code>) before using the
|
||||
<a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/PmdAnalysis.html#"><code>PmdAnalysis</code></a> (or <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CpdAnalysis.html#"><code>CpdAnalysis</code></a>) instance
|
||||
<a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/PmdAnalysis.html#"><code>PmdAnalysis</code></a> (or <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CpdAnalysis.html#"><code>CpdAnalysis</code></a>) instance
|
||||
to start the analysis:</p>
|
||||
|
||||
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nc">PMDConfiguration</span> <span class="n">configuration</span> <span class="o">=</span> <span class="k">new</span> <span class="nc">PMDConfiguration</span><span class="o">();</span>
|
||||
@ -1923,7 +1923,7 @@ version of the language will be used.</p>
|
||||
|
||||
<h2 id="cpd-language-properties">CPD language properties</h2>
|
||||
|
||||
<p>Many languages support the following properties, which are centrally defined in <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CpdLanguageProperties.html#"><code>CpdLanguageProperties</code></a>:</p>
|
||||
<p>Many languages support the following properties, which are centrally defined in <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CpdLanguageProperties.html#"><code>CpdLanguageProperties</code></a>:</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
@ -1960,8 +1960,8 @@ appear to have the same value.</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>Note: <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CPDConfiguration.html#"><code>CPDConfiguration</code></a> has convenience methods to control these options, e.g.
|
||||
<a href="https://docs.pmd-code.org/apidocs/pmd-core/7.0.1-SNAPSHOT/net/sourceforge/pmd/cpd/CPDConfiguration.html#setIgnoreAnnotations(boolean)"><code>setIgnoreAnnotations</code></a>.</p>
|
||||
<p>Note: <a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CPDConfiguration.html#"><code>CPDConfiguration</code></a> has convenience methods to control these options, e.g.
|
||||
<a href="https://docs.pmd-code.org/apidocs/pmd-core/7.1.0-SNAPSHOT/net/sourceforge/pmd/cpd/CPDConfiguration.html#setIgnoreAnnotations(boolean)"><code>setIgnoreAnnotations</code></a>.</p>
|
||||
|
||||
<h2 id="java-language-properties">Java language properties</h2>
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1880,7 +1880,7 @@
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 3.5</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-cpp/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/cpp/CppLanguageModule.html#"><code>CppLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-cpp/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/cpp/CppLanguageModule.html#"><code>CppLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: cpp</li>
|
||||
<li class="list-group-item">PMD: ❌</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1880,7 +1880,7 @@
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 4.3</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-cs/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/cs/CsLanguageModule.html#"><code>CsLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-cs/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/cs/CsLanguageModule.html#"><code>CsLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: cs</li>
|
||||
<li class="list-group-item">PMD: ❌</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1884,7 +1884,7 @@
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 6.14.0</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-dart/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/dart/DartLanguageModule.html#"><code>DartLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-dart/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/dart/DartLanguageModule.html#"><code>DartLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: dart</li>
|
||||
<li class="list-group-item">PMD: ❌</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1880,7 +1880,7 @@
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-fortran/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/fortran/FortranLanguageModule.html#"><code>FortranLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-fortran/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/fortran/FortranLanguageModule.html#"><code>FortranLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: fortran</li>
|
||||
<li class="list-group-item">PMD: ❌</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1884,7 +1884,7 @@ The Gherkin syntax is designed to be non-technical, making it human-readable for
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 6.48.0</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-gherkin/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/gherkin/GherkinLanguageModule.html#"><code>GherkinLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-gherkin/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/gherkin/GherkinLanguageModule.html#"><code>GherkinLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: gherkin</li>
|
||||
<li class="list-group-item">PMD: ❌</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1884,7 +1884,7 @@
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 5.2.0</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-go/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/go/GoLanguageModule.html#"><code>GoLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-go/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/go/GoLanguageModule.html#"><code>GoLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: go</li>
|
||||
<li class="list-group-item">PMD: ❌</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1886,7 +1886,7 @@ familiar and easy to learn syntax.</p>
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 5.5.2</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-groovy/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/groovy/GroovyLanguageModule.html#"><code>GroovyLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-groovy/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/groovy/GroovyLanguageModule.html#"><code>GroovyLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: groovy</li>
|
||||
<li class="list-group-item">PMD: ❌</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
<li class="sidebarTitle">PMD 7.0.1-SNAPSHOT</li>
|
||||
<li class="sidebarTitle">PMD 7.1.0-SNAPSHOT</li>
|
||||
<div class="sidebarTitleDate">Release date: 26-April-2024</div>
|
||||
|
||||
|
||||
@ -1880,7 +1880,7 @@
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Since PMD 6.45.0</li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-html/7.0.1-SNAPSHOT/net/sourceforge/pmd/lang/html/HtmlLanguageModule.html#"><code>HtmlLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Implementation: <a href="https://docs.pmd-code.org/apidocs/pmd-html/7.1.0-SNAPSHOT/net/sourceforge/pmd/lang/html/HtmlLanguageModule.html#"><code>HtmlLanguageModule</code></a></li>
|
||||
<li class="list-group-item">Id: html</li>
|
||||
<li class="list-group-item">PMD: ✔️</li>
|
||||
<li class="list-group-item">CPD: ✔️</li>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user