24 October 2020
The PMD team is pleased to announce PMD 6.29.0.
This is a minor release.
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”.DoNotCallSystemExit has been renamed to
DoNotTerminateVM, since it checks for all the following calls:
System.exit(int), Runtime.exit(int), Runtime.halt(int). All these calls terminate
the Java VM, which is bad, if the VM runs an application server which many independent applications.AvoidDmlStatementsInLoops,
AvoidSoqlInLoops and AvoidSoslInLoops
(apex-performance) are deprecated in favour of the new rule
OperationWithLimitsInLoop. The deprecated rules will be removed
with PMD 7.0.0.