Custom PMD Rules for Static Code Analysis
To contribute your own rules please follow instructions here.
After 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 that the new rules are available:
- Go to the Setup > Create Objects or Object Manager > Static Code Analysis Rule.
- In the Fields and Relationships, access 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 this settings have been completed, you will be ready to use the new rules available in our PMD Static Code Analysis integration.