C:\pmd-bin-7.0.0-rc1\binto PATH, either
pmd.bat check -d c:\src -R rulesets/java/quickstart.xml -f text
choco install -y pmd
pmd check -d c:\src -R rulesets/java/quickstart.xml -f text
See How to contribute to PMD and How to build PMD.
Our license: BSD-style.
Source Code: Check it out on github