Update release notes, refs #585

This commit is contained in:
Andreas Dangel
2017-09-05 18:03:15 +02:00
parent cc362d764f
commit a41df604e5
3 changed files with 29 additions and 2 deletions

View File

@ -19,7 +19,9 @@ This is a major release.
* [Configuration Error Reporting](#configuration-error-reporting) * [Configuration Error Reporting](#configuration-error-reporting)
* [Java Symbol Table](#java-symbol-table) * [Java Symbol Table](#java-symbol-table)
* [Apex Parser Update](#apex-parser-update) * [Apex Parser Update](#apex-parser-update)
* [New Rules](#new-rules)
* [Modified Rules](#modified-rules) * [Modified Rules](#modified-rules)
* [Deprecated Rules](#deprecated-rules)
* [Removed Rules](#removed-rules) * [Removed Rules](#removed-rules)
* [Fixed Issues](#fixed-issues) * [Fixed Issues](#fixed-issues)
* [API Changes](#api-changes) * [API Changes](#api-changes)
@ -77,6 +79,12 @@ providing configuration error reporting are:
As we move forward we will be able to detect and report more configuration errors (ie: incomplete `auxclasspath`) As we move forward we will be able to detect and report more configuration errors (ie: incomplete `auxclasspath`)
and include them to such reports. and include them to such reports.
#### New Rules
* The rule `NcssCount` (ruleset `java-codesize`) replaces the three rules "NcssConstructorCount", "NcssMethodCount",
and "NcssTypeCount". The new rule uses the metrics framework to achieve the same. It has two properties, to
define the report level for method and class sizes separately. Constructors and methods are considered the same.
#### Modified Rules #### Modified Rules
* The rule `UnnecessaryFinalModifier` (ruleset `java-unnecessarycode`) has been revamped to detect more cases. * The rule `UnnecessaryFinalModifier` (ruleset `java-unnecessarycode`) has been revamped to detect more cases.
@ -94,6 +102,11 @@ and include them to such reports.
* The rule `GodClass` (ruleset `java-design`) has been revamped to use the new metrics framework. * The rule `GodClass` (ruleset `java-design`) has been revamped to use the new metrics framework.
#### Deprecated Rules
* The rules `NcssConstructorCount`, `NcssMethodCount`, and `NcssTypeCount` (ruleset `java-codesize`) have been
deprecated. They will be replaced by the new rule `NcssCount` in the same ruleset.
#### Removed Rules #### Removed Rules
* The deprecated rule `UseSingleton` has been removed from the ruleset `java-design`. The rule has been renamed * The deprecated rule `UseSingleton` has been removed from the ruleset `java-design`. The rule has been renamed
@ -249,4 +262,4 @@ All existing rules have been updated to reflect these changes. If you have custo
* [#579](https://github.com/pmd/pmd/pull/579): \[java] Update parsing to produce upper and lower bounds - [Bendegúz Nagy](https://github.com/WinterGrascph) * [#579](https://github.com/pmd/pmd/pull/579): \[java] Update parsing to produce upper and lower bounds - [Bendegúz Nagy](https://github.com/WinterGrascph)
* [#580](https://github.com/pmd/pmd/pull/580): \[core] Add AbstractMetric to topple the class hierarchy of metrics - [Clément Fournier](https://github.com/oowekyala) * [#580](https://github.com/pmd/pmd/pull/580): \[core] Add AbstractMetric to topple the class hierarchy of metrics - [Clément Fournier](https://github.com/oowekyala)
* [#581](https://github.com/pmd/pmd/pull/581): \[java] Relax AbstractClassWithoutAnyMethod when class is annotated by @AutoValue - [Niklas Baudy](https://github.com/vanniktech) * [#581](https://github.com/pmd/pmd/pull/581): \[java] Relax AbstractClassWithoutAnyMethod when class is annotated by @AutoValue - [Niklas Baudy](https://github.com/vanniktech)
* [#585](https://github.com/pmd/pmd/pull/585): \[java] Moved NcssCountRule to codesize.xml - [Clément Fournier](https://github.com/oowekyala)

View File

@ -0,0 +1,14 @@
<?xml version="1.0"?>
<ruleset name="600"
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 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>
This ruleset contains links to rules that are new in PMD v6.0.0
</description>
<rule ref="rulesets/java/codesize.xml/NcssCount"/>
</ruleset>

View File

@ -453,7 +453,7 @@ public class Foo extends Bar {
<rule name="NcssCount" <rule name="NcssCount"
message="The {0} ''{1}'' has a NCSS line count of {2}." message="The {0} ''{1}'' has a NCSS line count of {2}."
since="3.9" since="6.0"
class="net.sourceforge.pmd.lang.java.rule.codesize.NcssCountRule" class="net.sourceforge.pmd.lang.java.rule.codesize.NcssCountRule"
metrics="true" metrics="true"
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_java_codesize.html#ncsscount"> externalInfoUrl="${pmd.website.baseurl}/pmd_rules_java_codesize.html#ncsscount">