Custom PMD Rules for Static Code Analysis

Updated 4 weeks ago by Copado Solutions

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:

  1. In Salesforce, navigate to Setup > Create Objects (Classic) or Object Manager (Lightning experience) > Static Code Analysis Rule.
  2. In Fields and Relationships, click on the Rule Name field.
  3. Add the new rule names as picklist values (note this name is case sensitive).
  4. 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.


How did we do?