[pmd-devel] [ANNOUNCE] PMD 6.17.0 Released
A source code analyzer
Brought to you by:
adangel,
juansotuyo
|
From: Andreas D. <and...@pm...> - 2019-07-28 08:58:48
|
* Downloads: https://github.com/pmd/pmd/releases/tag/pmd_releases%2F6.17.0 * Documentation: https://pmd.github.io/pmd-6.17.0/ 28-July-2019 - 6.17.0 // The PMD team is pleased to announce PMD 6.17.0. This is a minor release. New and noteworthy Updated PMD Designer This PMD release ships a new version of the pmd-designer. For the changes, see PMD Designer Changelog <https://github.com/pmd/pmd-designer/releases/tag/6.17.0>. It contains a new feature to edit test cases directly within the designer. Any feedback is highly appreciated. Lua support Thanks to the contribution from Maikel Steneker <https://github.com/maikelsteneker>, and built on top of the ongoing efforts to fully support Antlr-based languages, PMD now has CPD support for Lua <https://www.lua.org/>. Being based on a proper Antlr grammar, CPD can: * ignore comments * honor comment-based suppressions <https://pmd.sourceforge.io/pmd-6.17.0/pmd_userdocs_cpd.html#suppression> Modified Rules * The Java rule |CloseResource| <https://pmd.sourceforge.io/pmd-6.17.0/pmd_rules_java_errorprone.html#closeresource> (|java-errorprone|) ignores now by default |java.io.ByteArrayInputStream| and |java.io.CharArrayWriter|. Such streams/writers do not need to be closed. * The Java rule |MissingStaticMethodInNonInstantiatableClass| <https://pmd.sourceforge.io/pmd-6.17.0/pmd_rules_java_errorprone.html#missingstaticmethodinnoninstantiatableclass> (|java-errorprone|) has now the new property |annotations|. When one of the private constructors is annotated with one of the annotations, then the class is not considered non-instantiatable anymore and no violation will be reported. By default, Spring’s |@Autowired| and Java EE’s |@Inject| annotations are recognized. Fixed Issues * core o #1913 <https://github.com/pmd/pmd/issues/1913>: [core] “-help” CLI option ends with status code != 0 * doc o #1896 <https://github.com/pmd/pmd/issues/1896>: [doc] Error in changelog 6.16.0 due to not properly closed rule tag o #1898 <https://github.com/pmd/pmd/issues/1898>: [doc] Incorrect code example for DoubleBraceInitialization in documentation on website o #1906 <https://github.com/pmd/pmd/issues/1906>: [doc] Broken link for adding own CPD languages o #1909 <https://github.com/pmd/pmd/issues/1909>: [doc] Sample usage example refers to deprecated ruleset “basic.xml” instead of “quickstart.xml” * java o #1910 <https://github.com/pmd/pmd/issues/1910>: [java] ATFD calculation problem * java-errorprone o #1749 <https://github.com/pmd/pmd/issues/1749>: [java] DD False Positive in DataflowAnomalyAnalysis o #1832 <https://github.com/pmd/pmd/issues/1832>: [java] False positives for MissingStaticMethodInNonInstantiatableClass when DI is used o #1921 <https://github.com/pmd/pmd/issues/1921>: [java] CloseResource false positive with ByteArrayInputStream * java-multithreading o #1903 <https://github.com/pmd/pmd/issues/1903>: [java] UnsynchronizedStaticFormatter doesn’t allow block-level synchronization when using allowMethodLevelSynchronization=true * plsql o #1902 <https://github.com/pmd/pmd/issues/1902>: [pslql] ParseException when parsing (+) * xml o #1666 <https://github.com/pmd/pmd/issues/1666>: [xml] wrong cdata rule description and examples External Contributions * #1869 <https://github.com/pmd/pmd/pull/1869>: [xml] fix #1666 wrong cdata rule description and examples - Artem <https://github.com/KroArtem> * #1892 <https://github.com/pmd/pmd/pull/1892>: [lua] [cpd] Added CPD support for Lua - Maikel Steneker <https://github.com/maikelsteneker> * #1905 <https://github.com/pmd/pmd/pull/1905>: [java] DataflowAnomalyAnalysis Rule in right order - YoonhoChoi96 <https://github.com/YoonhoChoi96> * #1908 <https://github.com/pmd/pmd/pull/1908>: [doc] Update ruleset filename from deprecated basic.xml to quickstart.xml - crunsk <https://github.com/crunsk> * #1916 <https://github.com/pmd/pmd/pull/1916>: [java] Exclude Autowired and Inject for MissingStaticMethodInNonInstantiatableClass - AnthonyKot <https://github.com/AnthonyKot> * #1917 <https://github.com/pmd/pmd/pull/1917>: [core] Add ‘no error’ return option, and assign it to the cli when the help command is invoked - Renato Oliveira <https://github.com/renatoliveira> |