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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.