Custom PMD Rules for Static Code Analysis
To contribute your own rules please follow instructions here.
Once Copado has merged and released the custom rules provided by our community of users, you need to implement the following changes in your org in order to make sure the new rules are available:
- In Salesforce, navigate to Setup > Object Manager > Static Code Analysis Rule.
- In Fields & Relationships, click on the Rule Name field.
- Add the new rule names as picklist values (note this name is case sensitive).
- You can now select the new rules in your SCA settings records.
Once these settings have been completed, you will be ready to use the new rules available in our PMD Static Code Analysis integration.