Code Analyzer prerequisites
The PMD and CPD engines require a Java runtime and the Code Analyzer engine libraries. This page covers what to download and where to put it.
Requirement
Version
# config/code-analyzer.yml
engines:
pmd:
java_command: /usr/lib/jvm/java-21-openjdk/bin/javaStep 1: Download the engine libraries
curl -sL https://registry.npmjs.org/@salesforce/code-analyzer-pmd-engine/-/code-analyzer-pmd-engine-0.40.0.tgz \
| tar -xz -C /tmpStep 2: Copy them into place
Linux
macOS
Windows
Step 3: Verify
If the libraries are missing
Upgrading sfp
Last updated
Was this helpful?