PdfPrep.com

How you can set this?

The PMD rule Avoid SOQL queries inside loops should have the highest priority when running a static code analysis scan.

How you can set this?
A . Set the rule violation score in the PMD Default RuleSet to 1.
B . Change the rule priority in the PMD Default RuleSet to 1. (I think this is correct as priority start from 1 still we need to check in PMD doc)
C . Change the rule priority in the PMD Default RuleSet to 0.
D . Create a new rule and set the priority to Blocker. Then, add it to the Default RuleSet.

Answer: B

Exit mobile version