← Back to changelog

Salesforce devs, this one’s for you.

It’s with the utmost pleasure that we introduce our latest community engine, ApexMetrics, for Salesforce.com’s Apex programming language.

ApexMetrics runs checks for complexity, performance, and style, to help you find technical debt, identify hot spots for refactoring, and show improvements in your Apex code.

To enable ApexMetrics for your analysis on codeclimate.com or Code Climate Enterprise, add the following to your .codeclimate.yml configuration file:

  engines:
   apexmetrics:
      enabled: true
  ratings:
    paths:
      - "**.cls"
      - "**.trigger"

You can also enable the engine via the CLI with codeclimate engines:enable apexmetrics. This will create a default configuration file if you don’t have one already.

The ApexMetrics engine was built by our friends at Up2Go, with some help from their friends – isn’t open source great?

Actionable metrics for engineering leaders. Try Velocity Free