PMD is a static code analysis tool for Salesforce apex code review process. When you wanted to review your apex coding standard and security vulnerability. PMD is a Salesforce Developer Tools and productivity booster. Please subscribe to your channel bit.ly/3wU6G7i
Step 1 : Download PMD from pmd.github.io
Step 2 : Environment Variable path setting for PMD CLI
Step 3 : Generate CSV report for Apex code analysis for "quickstart"
pmd -dir . -f csv -R rulesets/apex/quickstart.xml
Step 4 : Understating security violation and priority
pmd -dir . -format csv -R category/apex/security.xml/ApexCRUDViolation
Step 5 : Reference URL : pmd.github.io/...
6 окт 2024