This plugin provides PMD support within IntelliJ and allows you to scan your code.
To enable PMD, configure a pmd ruleset in the plugin settings and select the appropriate pmd version.
PMD is integrated as an inspection, so that the currently opened file is scanned "on the fly". Quick fixes are available for some common rules.
To scan your code manually, open the toolbar window and scan your entire project or the currently open file.
PMD versions 6.0.1 to 6.34.0 are supported and bundled.
-
Using IDE built-in plugin system:
Preferences > Plugins > Marketplace > Search for "pmd-idea" > Install Plugin
-
Manually:
Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.