Update documentation

TRAVIS_JOB_NUMBER=3454.2
TRAVIS_COMMIT_RANGE=b74527cb8ea4...91e3f699f5b7
This commit is contained in:
Travis CI (pmd-bot)
2019-02-17 21:56:36 +00:00
parent e3ca31fa9b
commit 47aca01dfa
3 changed files with 25 additions and 4 deletions

View File

@ -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>Sun, 17 Feb 2019 19:37:08 +0000</pubDate>
<lastBuildDate>Sun, 17 Feb 2019 19:37:08 +0000</lastBuildDate>
<pubDate>Sun, 17 Feb 2019 21:55:28 +0000</pubDate>
<lastBuildDate>Sun, 17 Feb 2019 21:55:28 +0000</lastBuildDate>
<generator>Jekyll v3.7.4</generator>
</channel>

View File

@ -1286,6 +1286,26 @@ $('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3
<h3 id="new-and-noteworthy">New and noteworthy</h3>
<h3 id="cpd-suppression-for-antlr-based-languages">CPD Suppression for Antlr-based languages</h3>
<p><a href="https://www.itba.edu.ar/">ITBA</a> students <a href="https://github.com/matifraga">Matías Fraga</a>,
<a href="https://github.com/tomidelucca">Tomi De Lucca</a> and <a href="https://github.com/lsoncini">Lucas Soncini</a>
keep working on bringing full Antlr support to PMD. For this release, they have implemented
token filtering in an equivalent way as we did for JavaCC languages, adding support for CPD
suppressions through <code class="highlighter-rouge">CPD-OFF</code> and <code class="highlighter-rouge">CPD-ON</code> comments for all Antlr-based languages.</p>
<p>This means, you can now ignore arbitrary blocks of code on:</p>
<ul>
<li>Go</li>
<li>Kotlin</li>
<li>Swift</li>
</ul>
<p>Simply start the suppression with any comment (single or multiline) containing <code class="highlighter-rouge">CPD-OFF</code>,
and resume again with a comment containing <code class="highlighter-rouge">CPD-ON</code>.</p>
<p>More information is available in <a href="pmd_userdocs_cpd.html#suppression">the user documentation</a>.</p>
<h4 id="new-rules">New Rules</h4>
<ul>
@ -1353,6 +1373,7 @@ all test methods, either using the <code class="highlighter-rouge">testMethod</c
<li><a href="https://github.com/pmd/pmd/pull/1644">#1644</a>: [apex] Add property to allow apex test methods to contain underscores - <a href="https://github.com/tomdaly">Tom</a></li>
<li><a href="https://github.com/pmd/pmd/pull/1645">#1645</a>: [java] ConsecutiveLiteralAppends false positive - <a href="https://github.com/Shubham-2k17">Shubham</a></li>
<li><a href="https://github.com/pmd/pmd/pull/1646">#1646</a>: [java] UseDiamondOperator doesnt work with var - <a href="https://github.com/Shubham-2k17">Shubham</a></li>
<li><a href="https://github.com/pmd/pmd/pull/1654">#1654</a>: [core] Antlr token filter - <a href="https://github.com/tomidelucca">Tomi De Lucca</a></li>
</ul>

View File

@ -2217,8 +2217,8 @@ the CPD task as usual and right after it invoke the Ant XSLT script like this:</
<h2 id="suppression">Suppression</h2>
<p>Arbitrary blocks of code can be ignored through comments on <strong>Java</strong>, <strong>C/C++</strong>, <strong>Javascript</strong>, <strong>Matlab</strong>,
<strong>Objective-C</strong>, <strong>PL/SQL</strong> and <strong>Python</strong> by including the keywords <code class="highlighter-rouge">CPD-OFF</code> and <code class="highlighter-rouge">CPD-ON</code>.</p>
<p>Arbitrary blocks of code can be ignored through comments on <strong>Java</strong>, <strong>C/C++</strong>, <strong>Go</strong>, <strong>Javascript</strong>,
<strong>Kotlin</strong>, <strong>Matlab</strong>, <strong>Objective-C</strong>, <strong>PL/SQL</strong>, <strong>Python</strong> and <strong>Swift</strong> by including the keywords <code class="highlighter-rouge">CPD-OFF</code> and <code class="highlighter-rouge">CPD-ON</code>.</p>
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code> <span class="kd">public</span> <span class="n">Object</span> <span class="nf">someParameterizedFactoryMethod</span><span class="o">(</span><span class="kt">int</span> <span class="n">x</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
<span class="c1">// some unignored code</span>