From 47aca01dfab8eabffced1719819baca8e8cf90c5 Mon Sep 17 00:00:00 2001 From: "Travis CI (pmd-bot)" Date: Sun, 17 Feb 2019 21:56:36 +0000 Subject: [PATCH] Update documentation TRAVIS_JOB_NUMBER=3454.2 TRAVIS_COMMIT_RANGE=b74527cb8ea4...91e3f699f5b7 --- feed.xml | 4 ++-- pmd_release_notes.html | 21 +++++++++++++++++++++ pmd_userdocs_cpd.html | 4 ++-- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/feed.xml b/feed.xml index ae26cfc6b8..294b2ac1c1 100644 --- a/feed.xml +++ b/feed.xml @@ -5,8 +5,8 @@ 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. https://pmd.github.io/pmd/ - Sun, 17 Feb 2019 19:37:08 +0000 - Sun, 17 Feb 2019 19:37:08 +0000 + Sun, 17 Feb 2019 21:55:28 +0000 + Sun, 17 Feb 2019 21:55:28 +0000 Jekyll v3.7.4 diff --git a/pmd_release_notes.html b/pmd_release_notes.html index ecc5d93ba2..ff914697ad 100644 --- a/pmd_release_notes.html +++ b/pmd_release_notes.html @@ -1286,6 +1286,26 @@ $('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3

New and noteworthy

+

CPD Suppression for Antlr-based languages

+ +

ITBA students Matías Fraga, +Tomi De Lucca and Lucas Soncini +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 CPD-OFF and CPD-ON comments for all Antlr-based languages.

+ +

This means, you can now ignore arbitrary blocks of code on:

+ + +

Simply start the suppression with any comment (single or multiline) containing CPD-OFF, +and resume again with a comment containing CPD-ON.

+ +

More information is available in the user documentation.

+

New Rules

diff --git a/pmd_userdocs_cpd.html b/pmd_userdocs_cpd.html index 033a6bc50b..9fd6fa8368 100644 --- a/pmd_userdocs_cpd.html +++ b/pmd_userdocs_cpd.html @@ -2217,8 +2217,8 @@ the CPD task as usual and right after it invoke the Ant XSLT script like this:Suppression -

Arbitrary blocks of code can be ignored through comments on Java, C/C++, Javascript, Matlab, -Objective-C, PL/SQL and Python by including the keywords CPD-OFF and CPD-ON.

+

Arbitrary blocks of code can be ignored through comments on Java, C/C++, Go, Javascript, +Kotlin, Matlab, Objective-C, PL/SQL, Python and Swift by including the keywords CPD-OFF and CPD-ON.

    public Object someParameterizedFactoryMethod(int x) throws Exception {
         // some unignored code