[doc] Document changes on report location

Refs #4439
Refs #730
Refs #3123
This commit is contained in:
Andreas Dangel committed 2023-04-27 08:35:53 +02:00
1 parent 90642972ab
commit d718d3fecc
2 files changed
+24

No files matched your search

+12
View File
@@ -190,6 +190,18 @@ Contributors: [Lucas Soncini](https://github.com/lsoncini) (@lsoncini),
#### Changed Rules
**General changes**
* Violations reported on methods or classes previously reported the line range of the entire method
or class. With PMD 7.0.0, the reported location is now just the identifier of the method or class.
This affects various rules, e.g. {% rule java/design/CognitiveComplexity %}.
The report location is controlled by the overrides of the method {% jdoc core::lang.ast.Node#getReportLocation() %}
in different node types.
See [issue #4439](https://github.com/pmd/pmd/issues/4439) and [issue #730](https://github.com/pmd/pmd/issues/730)
for more details.
**Java Best Practices**
* {% rule java/bestpractices/AvoidReassigningLoopVariables %}: This rule might not report anymore all
+12
View File
@@ -525,6 +525,18 @@ Related issue: [[core] Explicitly name all language versions (#4120)](https://gi
### Changed Rules
**General changes**
* Violations reported on methods or classes previously reported the line range of the entire method
or class. With PMD 7.0.0, the reported location is now just the identifier of the method or class.
This affects various rules, e.g. {% rule java/design/CognitiveComplexity %}.
The report location is controlled by the overrides of the method {% jdoc core::lang.ast.Node#getReportLocation() %}
in different node types.
See [issue #4439](https://github.com/pmd/pmd/issues/4439) and [issue #730](https://github.com/pmd/pmd/issues/730)
for more details.
**Java Best Practices**
* {% rule java/bestpractices/AvoidReassigningLoopVariables %}: This rule might not report anymore all