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.
Working with PMD can be described in a couple steps:
- define a ruleset which you'd like to use,
- point PMD to your files, and get scan results,
- analyze the results and resolve the issues.
In this section:
|
In this section: |
This also may be useful: |