Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Run PMD as part of your CI build.

    1. Download and install PMD to use on your CI server. Or use a PMD plugin for your build system, like Maven or Gradle

    2. Run the PMD as part of the build for every pull request. See the configuration for Bamboo.

    3. The print the PMD results to the build log. Either by using the --format xml flag or by printing the report XML, like cat ./target/pmd.xml

  2. Configure and enable the log analysis.

  3. Ensure the log analysis reports the PMD warnings as you expect in your pull request as code insight annotations.

  4. Disable the deprecated built-in PMD analyzer, as you get the results duplicated otherwise.

Migrate Other Analyzers

  1. Checkout all supported analyzers.

  2. For analyzers not listed there, you can still use them if they support the

    Checkstyle output format.

  3. For other analyzers, tell us what you use. We will help you with the migration.

...