[doc] Update release notes and releases ruleset
This commit is contained in:
@ -21,6 +21,9 @@ This is useful to find duplicated sections in XML files.
|
|||||||
|
|
||||||
#### New Rules
|
#### 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`)
|
* 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
|
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.
|
as the receiver of e.g. `equals` helps to avoid NullPointerExceptions.
|
||||||
|
13
pmd-core/src/main/resources/rulesets/releases/6250.xml
Normal file
13
pmd-core/src/main/resources/rulesets/releases/6250.xml
Normal 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>
|
@ -105,6 +105,7 @@
|
|||||||
<!-- <rule ref="category/java/codestyle.xml/SuspiciousConstantFieldName" /> -->
|
<!-- <rule ref="category/java/codestyle.xml/SuspiciousConstantFieldName" /> -->
|
||||||
<!-- <rule ref="category/java/codestyle.xml/TooManyStaticImports" /> -->
|
<!-- <rule ref="category/java/codestyle.xml/TooManyStaticImports" /> -->
|
||||||
<rule ref="category/java/codestyle.xml/UnnecessaryAnnotationValueElement"/>
|
<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/UnnecessaryConstructor"/>
|
||||||
<rule ref="category/java/codestyle.xml/UnnecessaryFullyQualifiedName"/>
|
<rule ref="category/java/codestyle.xml/UnnecessaryFullyQualifiedName"/>
|
||||||
<rule ref="category/java/codestyle.xml/UnnecessaryLocalBeforeReturn"/>
|
<rule ref="category/java/codestyle.xml/UnnecessaryLocalBeforeReturn"/>
|
||||||
|
Reference in New Issue
Block a user