Salesforce Code Analyzer (sfdx-scanner)
By Salesforce
What It Does
Official Salesforce static analysis tool. Runs PMD, ESLint, RetireJS, and custom rules against your Apex, LWC, and Visualforce code.
Glen's Take
The official code quality gate for CI/CD pipelines. Bundles PMD for Apex, ESLint for LWC, and RetireJS for dependency scanning into one CLI command. Add 'sf scanner run' to your GitHub Actions workflow and catch problems before they merge.
Tags
Need help with your Salesforce tooling stack?
I'll help you pick and configure the right tools for your team.
View Consulting →Enjoyed this? Get more like it.
Glen's Musings — AI, investing, and building things. Occasional. Free.
More CLI Tools
Salesforce CLI (sf)
The official Salesforce command-line interface. Deploy metadata, run tests, manage orgs, execute SOQL, and automate everything.
Read moreOpen Sourcesfdx-git-delta (sgd)
Generate a Salesforce deployment package.xml by comparing two git commits. Deploy only what changed instead of the entire project.
Read moreOpen SourceTexei SFDX Plugin
Swiss army knife CLI plugin. Manage connected apps, sharing rules, user permissions, scratch org setup, and more — all from the command line.
Read more