To get started scanning your code with Salesforce Code Analyzer, follow this developer workflow and choose resources that match your learning style.
1. Discover
Salesforce Code Analyzer is a unified tool for source code analysis available in Salesforce CLI, VS Code, GitHub Actions, and DevOps Testing. Code Analyzer analyzes multiple languages. It provides a consistent experience to help you identify rule violations.
Engines. Check out all the supported engines, such as ESLint, PMD, and more.
Migrate from v4. If you previously used Code Analyzer v4, read the migration guide to help you easily move to v5.
As of August 2025, Code Analyzer v4 is retired and we no longer support it.
Important
2. Set Up Code Analyzer and Start Scanning
To get started with Code Analyzer, follow these instructions for your tool of choice.
Salesforce CLI. You must install Salesforce CLI to use the Code Analyzer CLI commands. Complete the prerequisties, install the Code Analyzer CLI plugin, and get started.
After you understand how to view and run Code Analyzer rules on your code, play around with more advanced features: customize the Code Analyzer configuration, create new engine rules, and integrate Code Analyzer into your continuous integration/continuous delivery (CI/CD) process.
Configuration. Customize how Code Analyzer works by creating a configuration file.