[doc] Update release notes and releases ruleset

This commit is contained in:
Andreas Dangel
2020-06-12 13:54:40 +02:00
parent 7820c17435
commit a171ab8512
3 changed files with 17 additions and 0 deletions

View File

@ -21,6 +21,9 @@ This is useful to find duplicated sections in XML files.
#### New Rules
* The new Java Rule {% rule "java/codestyle/UnnecessaryCast" %} (`java-codestyle`)
finds casts that are unnecessary while accessing collection elements.
* The new Java Rule {% rule "java/bestpractices/LiteralsFirstInComparisons" %} (`java-bestpractices`)
find String literals, that are used in comparisons and are not positioned first. Using the String literal
as the receiver of e.g. `equals` helps to avoid NullPointerExceptions.

View File

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<ruleset name="6250"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description>
This ruleset contains links to rules that are new in PMD v6.25.0
</description>
<rule ref="category/java/codestyle.xml/UnnecessaryCast" />
</ruleset>

View File

@ -105,6 +105,7 @@
<!-- <rule ref="category/java/codestyle.xml/SuspiciousConstantFieldName" /> -->
<!-- <rule ref="category/java/codestyle.xml/TooManyStaticImports" /> -->
<rule ref="category/java/codestyle.xml/UnnecessaryAnnotationValueElement"/>
<!-- <rule ref="category/java/codestyle.xml/UnnecessaryCast" /> -->
<rule ref="category/java/codestyle.xml/UnnecessaryConstructor"/>
<rule ref="category/java/codestyle.xml/UnnecessaryFullyQualifiedName"/>
<rule ref="category/java/codestyle.xml/UnnecessaryLocalBeforeReturn"/>