PMD is a static analysis tool that provides a variety of checkers for many languages.
PMD can be installed through many system package managers, or downloaded and installed manually.
Because there are a variety of methods to install PMD, there’s no consistent location (or name) of the PMD executable. If installed through a package manager, it can often be invoked via pmd. If installed manually, it’s invoked via run.sh.
The path and name of the executable has to be configured in the Review Bot worker config file.
pmd_path = '/usr/local/bin/pmd'