Your company has had many issues with governor limits in the past, so you have been
requested to give the highest relevance to the PMD rule Avoid making DML operations in
Apex Class. How can you do this?
Set the rule priority in the PMD Default RuleSet to 5.
Set the rule violation score in the PMD Default RuleSet to 1.
Create a new rule and set the priority to Blocker. Then, add it to the Default RuleSet.
Change the rule priority in the PMD Default RuleSet to 1.
Submit