Static analyzers executed on Bitbucket are deprecated as of app version 5.0.

Checkout all supported analyzers for app versions >= 5.0.

For migration, follow the guide below to move onto the newer CI log based analysis.

Migration Example: PMD

Before app version 5.x, static analyzers were executed on Bitbucket.
Now, you have to execute them during your CI build:

  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.

Reason for Deprecating Static Analyzers

The running static Analyzers on Bitbucket itself has inherent issues:

Therefore, we decided that running the Analyzers on the CI system and showing the results in Bitbucket is the better way going forward.