...
Run PMD as part of your CI build.
Download and install PMD to use on your CI server. Or use a PMD plugin for your build system, like Maven or Gradle
Run the PMD as part of the build for every pull request. See the configuration for Bamboo.
The print the PMD results to the build log. Either by using the
--format xml
flag or by printing the report XML, likecat ./target/pmd.xml
Configure and enable the log analysis.
Ensure the log analysis reports the PMD warnings as you expect in your pull request as code insight annotations.
Disable the deprecated built-in PMD analyzer, as you get the results duplicated otherwise.
Migrate Other Analyzers
For analyzers not listed there, you can still use them if they support the
For other analyzers, tell us what you use. We will help you with the migration.
...