Custom PMD Rules for Static Code Analysis

Updated 10 months ago by Alberto Ojedo

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:

  1. Go to the Setup > Create Objects or Object Manager > Static Code Analysis Rule.
  2. In the Fields and Relationships, access 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 this 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?