From 888fe3b15e3cb919011362f31a78a2ce8b25dd96 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 22 Oct 2020 18:07:01 +0200 Subject: [PATCH] [doc] Update release notes, refs #2816, fixes #1713 --- docs/pages/release_notes.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index ecf46b450d..7c34b1ff11 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -14,14 +14,33 @@ This is a {{ site.pmd.release_type }} release. ### New and noteworthy +#### New Rules + +* The new Apex rule {% rule "apex/performance/OperationWithLimitsInLoop" %} (`apex-performance`) + finds operations in loops that may hit governor limits such as DML operations, SOQL + queries and more. The rule replaces the three rules "AvoidDmlStatementsInLoops", "AvoidSoqlInLoops", + and "AvoidSoslInLoops". + +#### Deprecated Rules + +* The Apex rules {% rule "apex/performance/AvoidDmlStatementsInLoops" %}, + {% rule "apex/performance/AvoidSoqlInLoops" %} and {% rule "apex/performance/AvoidSoslInLoops" %} + (`apex-performance`) are deprecated in favour of the new rule + {% rule "apex/performance/OperationWithLimitsInLoop" %}. The deprecated rules will be removed + with PMD 7.0.0. + ### Fixed Issues +* apex-performance + * [#1713](https://github.com/pmd/pmd/issues/1713): \[apex] Mark Database DML statements in For Loop + ### API Changes ### External Contributions * [#2809](https://github.com/pmd/pmd/pull/2809): \[java] Move test config from file to test class - [Stefan Birkner](https://github.com/stefanbirkner) * [#2810](https://github.com/pmd/pmd/pull/2810): \[core] Move method "renderTempFile" to XMLRendererTest - [Stefan Birkner](https://github.com/stefanbirkner) +* [#2816](https://github.com/pmd/pmd/pull/2816): \[apex] Detect 'Database' method invocations inside loops - [Jeff Bartolotta](https://github.com/jbartolotta-sfdc) {% endtocmaker %}