Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>PMD 6.x LinterNew to Visual Studio Code? Get it now.
PMD 6.x Linter

PMD 6.x Linter

wmejia

|
1 install
| (0) | Free
Runs PMD 6.x on Java files on save, parses XML output, and shows diagnostics inline.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PMD 6.x Linter VS Code Extension

PMD Settings

This extension automatically runs PMD 6.x on your Java files every time you save, parses the XML output, and highlights any issues both inline and in the Problems panel.

Features

  • ✅ Runs PMD 6.x (run.sh) on the saved .java file only
  • ⚙️ Configurable PMD path, ruleset, and extra arguments
  • 🔍 Parses PMD XML output and displays findings as VS Code diagnostics
  • 📍 Highlights problems inline and in the Problems panel; clicking a problem jumps to the affected line
  • 🖥️ Works on macOS and Linux (UNIX platforms)

Requirements

  • PMD 6.x installed and accessible (e.g., /Users/usuario/tools/pmd-bin-6.55.0/bin/run.sh)
  • Java installed (required by PMD)

How to Install PMD 6.x (macOS / Linux)

Follow these steps to install PMD 6.x and make it available for this extension:

1. Download PMD 6.55.0

Go to the official GitHub Releases page:
Download PMD 6.55.0

Download the file named:
pmd-bin-6.55.0.zip

2. Unzip the Downloaded File

Extract the ZIP file to your preferred tools directory:

mkdir -p ~/tools
cd ~/tools
unzip ~/Downloads/pmd-bin-6.55.0.zip

3. Make run.sh Executable

Give execution permissions to the PMD script:

chmod +x ~/tools/pmd-bin-6.55.0/bin/run.sh

Extension Settings

To configure the extension, add the following to your settings.json:

"pmd6.path": "~/tools/pmd-bin-6.55.0/bin/run.sh",
"pmd6.ruleset": ".code_quality/pmd_rules.xml",
"pmd6.extraArgs": ""

You can also set these options from the extension settings page in VS Code:

  • Open “Settings” and search for “PMD6”

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft