Apex Code Quality

The open source PMD static code analyzer can identify over 40 different types of common programming flaws in Apex Code. The Metazoa Snapshot Change and Release Management product has an Apex Code Quality Report that allows a Salesforce developer or administrator to run PMD on their Apex Classes and look for potential problems. The report can be shared with team members or archived for compliance documentation.

Apex Code Quality Report

PMD Static Code Analysis for Salesforce Developers

The open source PMD static code analyzer can identify over 40 different types of common programming flaws in Apex Code. PMD finds problems like unused variables, empty catch blocks, unnecessary object creation, and so forth. PMD has seven Rule Sets for Apex, including: Best Practices, Code Style, Design, Documentation, Error Prone, Performance, and Security. There are 46 individual Rules available that can identify common programming flaws in your Apex Classes. Strangely enough, nobody is quite sure what the acronym PMD stands for. This popular open source project has several unofficial names, the most appropriate is probably Programming Mistake Detector.

Our Metazoa Snapshot product has a report that analyzes code quality for selected Apex Tests in any Salesforce Org. The Snapshot Apex Code Quality report shows detailed information about each problem reported for the selected Apex Class. This report is used by Salesforce Administrators and Developers to find Apex Classes that have programming flaws. The priority level for individual rules can be edited by an administrator to customize the types of programming problems that are detected. The report can be shared with team members or archived for compliance documentation. You can also set up the report to monitor a Salesforce Org and send out an email or Chatter notification if Apex Code Quality falls below the desired level.

Snapshot can also analyze code quality before any Apex Class is deployed. Administrators can set up a code quality gateway which guarantees a certain level of Apex Code Quality for any Org. The short movie below shows how the Snapshot Apex Code Quality report works, and also shows the Code Quality options in the metadata deployment interface.

Snapshot provides powerful tools for Salesforce Administrators that help manage the change and release process, visualize org complexity, improve security and compliance, and lower the total cost of Org ownership. Visit the AppExchange to start a 14 day free trial or click the button below to schedule a demo.