PMD static analysis for Salesforce Apex using a Visual Studio (VS) Code extension

Here, we will learn to analyze directly in VS Code on Apex and Visual force files. First, you have to install Visual Studio Code on your machine. (We already learned how to install VS Code in Chapter 3, Deployment in Salesforce).

You need to perform the following steps:

  1. Open Visual Studio Code and click on Extensions (Ctrl + Shift + X):
  1. In Search extension in Market Place, enter pmd:
  1. Select Apex PMD and click Install:
  1. Once installation is complete, click ...

Get DevOps for Salesforce now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.