PMD – Apex Trigger Rules

< 1 min read

The following table shows the list of PMD Apex Trigger rules that are checked by Quality Clouds.

DescriptionSeverityArea of impact
Avoid implementing business logic in triggersHighManageability
Avoid excessive cyclomatic complexityMediumManageability
Variable names should start with a lowercase characterMediumManageability
Avoid directly accessing Trigger.old and Trigger.newMediumManageability
Avoid excessive standard cyclomatic complexityMediumManageability
Access permissions should be checked before a SOQL/SOSL/DML operationMediumManageability

PMD Copyright

This product includes software developed in part by support from the Defense Advanced Research Project Agency (DARPA).

Updated on March 21, 2025
Was it helpful ?