PMD Apex Support

Detect all the errors and warnings in the changed files right before sending them to an org. The Welkin Suite provides out-of-the-box support for tools, that allow you to check code quality, performance, and maintainability, and accomplish this quickly and in a user-friendly way.

In general, PMD is a standalone source code scanning tool designed for finding various potential issues in your codebase according to the ruleset that you configure. PMD Apex in its turn is a set of rules, which you can use for Apex code inspection. The bundled PMD supports the 6.0.1 version of PMD and offers 43 rules for Apex in the following categories:

  • Best practices — 4 rules,
  • Code styling — 7 rules,
  • Design — 10 rules,
  • Performance — 3 rules,
  • Security — 11 rules ('must have' for those who are going to submit their packages to the AppExchange),
  • Error prone — 8 rules.

PMD Apex Support


Working with PMD can be described in a couple steps:

  1. define a ruleset which you'd like to use,
  2. point PMD to your files, and get scan results,
  3. analyze the results and resolve the issues.

In this section:

  • Ruleset configuration — all about an ability to configure the necessary rulesets,
  • PMD settings — how to set different rules for PMD globally as well as for each project separately,
  • PMD execution — how to run PMD scanning manually or automatically,
  • PMD report — explore all the issues in a PMD Report window.

In this section:

This also may be useful:

Last modified: 2018/03/14 14:23

footer image