Using PMD for Static code analysis for apex

PMD is very well known source code analyzer for Java, android and many more languages. It supports now Apex. You might be thinking how can we make PMD as part of our daily life ?

There are many ways

  1. We can run static code analysis standalone
  2. It can be part of ANT build to generate error reports
  3. Eclipse/IntelliJ IDEA IDE can use it as a plugin to show the bugs/violations while you are working on it.

Permanent link to this article: https://salesforcebuddy.com/2019/01/using-pmd-for-static-code-analysis-for-apex/

Leave a Reply

Your email address will not be published.